User Tools

Site Tools


l33t_h4x0r_code_snippets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

l33t_h4x0r_code_snippets [2025/03/06 20:51] – created joepl33t_h4x0r_code_snippets [2025/09/06 14:00] (current) joep
Line 1: Line 1:
- 
 Cutting a video segment with fading in and out using ffmpeg: Cutting a video segment with fading in and out using ffmpeg:
 <code> <code>
 ffmpeg -i tp.mp4 -ss 1:18 -to 3:20.5 -vf "fade=type=in:start_time=0:duration=3,fade=type=out:start_time=193:duration=3" output_tp.mp4 ffmpeg -i tp.mp4 -ss 1:18 -to 3:20.5 -vf "fade=type=in:start_time=0:duration=3,fade=type=out:start_time=193:duration=3" output_tp.mp4
 </code> </code>
 +
 +
 +Creating a Spotify canvas video (720x1280) using ffmpeg:
 +<code>
 +ffmpeg -i "$1" -vf "scale=720:-1,pad=720:1280:(ow-iw)/2:(oh-ih)/2:black" -c:a copy "$2"
 +</code>
 +
l33t_h4x0r_code_snippets.1741290693.txt.gz · Last modified: 2025/03/06 20:51 by joep

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki