If I have an .mp4 file with a video stream and an audio stream. I f I execute this command:
ffmpeg -i input.mp4 -ss 00:00:14.000 -t 00:00:01.000 -vn -c:a libfaac audio.m4a
The result is Duration: 00:00:01.02, start: 0.021179. I want to make sure the start time begins at 0 so I resample it using:
ffmpeg -i audio.m4a -ss 00:00:00.000 -t 00:00:01.000 -c:a libfaac audio2.m4a
The result of this command has Duration: 00:00:01.02, start: 0.000000. Is there a way to get exactly 1 second as the final result with a 0 value for the start?
I in previous attempts I have used the flags -map 0:1 -ab 128k -ar 44100 but it provides the same results.
I can provide the full output from ffmpeg if need be.
Thanks.