[FFmpeg-user] Cut-edits with ffmpeg
jpboard2 at yahoo.com
Thu Jul 25 17:26:35 CEST 2013
> ffmpeg.exe -i SOURCEFILE.avi -vf
> -c:v libx264 -preset veryfast -b:v 700k -profile:v main -af
> aselect='-between(n,0,100)-between(n,130,200)',asetpts=N/SR/TB -c:a
> libvo_aacenc -b:a 96k -ac 2 OUT.mp4
I tried this, and it didn't work. It complained about a missing ')' or too many
args in 'between(n'
ffmpeg -i IN.avi -vf select = 'between(n,32,42)' OUT.avi
I also tried this, and it produced an output file, but that was the same as the
original: the select filter didn't do anything:
ffmpeg -i IN.avi -vf select = 'between(n,32,42)' -vcodec copy -acodec copy OUT.avi
So, what's an example of something that would work for me? I have raw pixels
as input and I want raw pixels as output (no mpeg encoding).
I don't know what options like 'setpts=N/FRAME_RATE/TB' mean. I'm
more used to mencoder, not ffmpeg, but trying to learn.
More information about the ffmpeg-user