0

I'm trying to split a long video in mp4 format into 60 second sections:

ffmpeg -i YDXJ0028.mp4 -c copy -segment_time 60 -f segment YDXJ0028_%03d.mp4

This kind produces the segmented video files, but depending on the player they show various problems:

  • VLC: The first segement plays fine. For all other segments the timebar is not working.
  • Quicktime: The first segement plays fine. For all other segments the screen remains black.

Any ideas how to fix this?

2

Use

ffmpeg -i YDXJ0028.mp4 -c copy -segment_time 60 -reset_timestamps 1 -f segment YDXJ0028_%03d.mp4

This makes each segment start with timestamp 0. Safe for broad compatibility.

  • Works Perfec! For Quicktime and VLC. – BetaRide Apr 10 '16 at 18:44

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.