FFMEPG kullanarak
ffmpeg -ss 00:15:20 -i asil.mp4 -f avi -vcodec mpeg1video -b 1000k -acodec copy sonuc.mpg
uzunluk belirterek
ffmpeg -ss 00:00:30.00 -t 00:00:25 -i bar.mp3 -acodec copy bar-new.mp3
Not: -ss baslangic -t uzunluğu belirtir.
Ayrıca -ss ile -t nin -i den önce gelmesi önemlidir.(
Man ffmpeg ile:
-t duration
Restrict the transcoded/captured video sequence to the duration specified in seconds. “hh:mm:ss[.xxx]” syntax is also supported.
-ss position
Seek to given time position in seconds. “hh:mm:ss[.xxx]” syntax is also supported.
ffmpegin desteklediği format bilgileri için
ffmpeg -formats
vlc ile videonun belirli bir aralığını kesmek
vlc --intf rc --rc-show-pos --rc-fake-tty --start-time=888 --stop-time=999 /home/skaas/Desktop/4144_20090603073103.mp4 :sout='#transcode{vcodec=mp1v,vb=1024,fps=25,acodec=mpga,ab=128,scale=1,channels=6,deinterlace,audio-sync}:std{access=file,mux=mpeg1,url=/home/skaas/Desktop/deneme4.mpg}' vlc://quit
mp4box ile dosya kesmek (saniye cinsinden baslangıc ve bitis zamanı)
mp4box -splitx 66.240:80.120 input.mpeg4
Bir cevap yazın