Daner
29th June 2008, 09:55
I'm trying to split a Quicktime .mov file into pieces using ffmpeg and have been having trouble getting the start and stop times to match the exact numbers that I'm specifying. I've discovered that the problem seems to be in splitting the audio, so for now I'm focusing on just getting the audio to work, with video disabled. Here is the command-line I am using:
ffmpeg -ss 3.75 -t 1.083 -vn -i input.mov output.wav
Here is what ffmpeg outputs:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov':
Duration: 00:01:48.5, start: 0.000000, bitrate: 5497 kb/s
Stream #0.0(eng): Audio: pcm_s16be, 48000 Hz, stereo, 1536 kb/s
Stream #0.1(eng): Video: h264, yuv420p, 720x486, 24.00 tb(r)
Output #0, wav, to 'output.wav':
Stream #0.0(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 281kB time=1.5 bitrate=1536.2kbits/s
video:0kB audio:281kB global headers:0kB muxing overhead 0.015278%
The problem is that ffmpeg is not obeying the -ss and -t numbers I am passing. The resulting output.wav audio file begins too early and has a length of 1.50 seconds rather than 1.083 seconds. What is causing this?
Thanks for your help!
ffmpeg -ss 3.75 -t 1.083 -vn -i input.mov output.wav
Here is what ffmpeg outputs:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov':
Duration: 00:01:48.5, start: 0.000000, bitrate: 5497 kb/s
Stream #0.0(eng): Audio: pcm_s16be, 48000 Hz, stereo, 1536 kb/s
Stream #0.1(eng): Video: h264, yuv420p, 720x486, 24.00 tb(r)
Output #0, wav, to 'output.wav':
Stream #0.0(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 281kB time=1.5 bitrate=1536.2kbits/s
video:0kB audio:281kB global headers:0kB muxing overhead 0.015278%
The problem is that ffmpeg is not obeying the -ss and -t numbers I am passing. The resulting output.wav audio file begins too early and has a length of 1.50 seconds rather than 1.083 seconds. What is causing this?
Thanks for your help!