accept "chapters" as segment_times
|Reported by:||dave rice||Owned by:|
|Blocking:||Reproduced by developer:||yes|
|Analyzed by developer:||yes|
Summary of the bug:
FFmpeg adds recent support for "chapters" within -force-key-frames.
If one of the times is "chapters[delta]", it is expanded into the time of the beginning of all chapters in the file, shifted by delta, expressed as a time in seconds. This option can be useful to ensure that a seek point is present at a chapter mark or any other designated place in the output file.
Could "chapters" be similarly supported in -segment_times, so that this would be feasible (segment input based on embedded chapters):
ffmpeg -i file_with_chapters.mov -map 0 -c:v libx264 -c:a libfaac -force_key_frames chapters-0.1 -f segment -segment_list tout.csv -segment_times chapters-0.1 chaptered_%03d.mp4
Currently to do the same the user must parse out the chapter start values and do this:
ffmpeg -i /Users/davidrice/SoundieF.mpeg -map 0 -c:v libx264 -c:a libfaac -force_key_frames chapters-0.1 -f segment -segment_list tout.csv -segment_times 10,20,30 chaptered_%03d.mp4