Source video: 1280x720p.mp4
Download:
o Source video disini
o ffpmeg.exe disini
1. Memotong video dari detik ke 5 sd detik 15
ffmpeg -i 1280x720p.mp4 -ss 00:00:05 -t 00:00:15 output.mp4 |
2. Resolusi source 1280x720, crop seluas 300x300 mulai dari pixel 0,0
ffmpeg -i 1280x720p.mp4 -filter:v "crop=300:300:0:0" crop1.mp4 |
3. Mengambil 1/4 bagian layar dari bawah
ffmpeg -i 1280x720p.mp4 -filter:v "crop=in_w/2:in_h/2:in_w/2:in_h/2" crop.mp4 |
Perintah diatas sama dengan
ffmpeg -i 1280x720p.mp4 -filter:v "crop=1280/2:720/2:1280/2:720/2" crop.mp4 |
Atau sama dengan
ffmpeg -i 1280x720p.mp4 -filter:v "crop=640:360:
crop.mp4 |
4. Me mirror file video
ffmpeg -i 1280x720p.mp4 -filter:v "split [main][tmp]; [tmp] crop=iw:ih/2:0:0, vflip [flip]; [main][flip] overlay=0:H/2" mirror.mp4 |
5. Megambil file suara saja
ffmpeg -i 1280x720p.mp4 suara.mp3 |
ffmpeg -i 1280x720p.mp4 -b:v 128k -s:v 426x240 -r 16 -filter:v "setpts=0.25*PTS" kencang4x.mp4 |
7. Memperlambat video 4x (audio tetap) : PTS Presentation Time Stamp 4
ffmpeg -i 1280x720p.mp4 -b:v 128k -s:v 426x240 -filter:v "setpts=4*PTS" lambat4x.mp4 |
8.1 Mengganti music di source dengan file music lain (Kalimba.mp3)
ffmpeg -i 1280x720p.mp4 -i Kalimba.mp3 -map 0:v -map 1:a gantimusic.mp4 |
8.2 Membuang semua suara di file video
ffmpeg -i 1280x720p.mp4 -i Kalimba.mp3 -c copy -an videonosound.mp4 |
8.3 Menghilangkan sepotong suara video (volume=0, suara hilang) pada detik 5 sd 10 dan detik 15 sd 20
ffmpeg.exe -i 1280x720p.mp4 -af "volume=enable='between(t,5,10)':volume=0, volume=enable='between(t,15,20)':volume=0" -vcodec libx264 -b:v copy -acodec libvo_aacenc mutesebagian.mp4 |
9. Membuat 2 buah thumbnail dengan 50% perubahan picture dari rentang menit 2:00 sd 2:59
ffmpeg -ss 00:02:00 -t 00:2:59 -i 1280x720p.mp4 select=gt(scene\,0.5)" -frames:v 2 -vsync vfr out2%02d.jpg
|
10. Membuat thumnail tiap I-frame
ffmpeg -i video.mp4 -vf "select=eq(pict_type\,I),scale=73:-1" -vsync vfr -qscale:v 20 out-%02d.jpg
11. Merekam HLS jadi file
ffmpeg -i http://example.org/index.m3u8 -t 180 -bsf:a aac_adtstoasc -c copy rekaman.mp4
12. Upload ke Youtube agar bisa HD 720p
ffmpeg -i FILE-input -vcodec libx264 -acodec libvo_aacenc -b:v 1794k -s:v 1280x720 -pix_fmt yuv420p -r 25 OUTPUT.mp4
ffmpeg -i FILE-input -vcodec libx264 -acodec libvo_aacenc OUTPUT.mp4
2 comments:
bikin fade in / fade out baik audio ato video gmn ya mas
sama gabungin gbr dng audio?
Post a Comment