Open PeterKMcN opened 3 years ago
Hmmm. I'm not seeing the same behavior. I'm running this version:
ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
And this command
ffmpeg -i input.mp3 -acodec copy -ss 01:09:08.000 -to 5000.00.00.000 output.mp3'
and getting this result:
ffmpeg -i input.mp3 -acodec copy -ss 01:09:08.000 -to 5000.00.00.000 output.mp3'
I don't know that I have any VBR files to experiment on, so I'm not sure if this is only possible on VBR files?
When I ran this on my test file which had VBR it kept returning from ffmpeg with error 1 because the start time for the last section was after the end time. This is because audio.info.time_secs estimates the duration from file length on VBR files and can be extremely inaccurate.
However, ffmpeg is extremely tolerant of reaching the end of audio before the end time specified. So there is a simple fix - make end_time too big. I set it for "5000.00.00.000" on the assumption if my audio files every got longer than 5000 hours I probably wasn't going to listen to the end anyway!
Hope this helps Peter