Glam Prestige Journal

Bright entertainment trends with youth appeal.

I have a 2 hour video. I want to make 30 minute sections but avoid re-encoding. So 2 hours of video into four 30 minute videos. How can I do this using a single ffmpeg command?

I am using Ubuntu 16.04 64-bit.

4

1 Answer

You can use the segment muxer:

ffmpeg -i input.mp4 -map 0 -c copy -f segment -segment_time 1800 -reset_timestamps 1 output_%03d.mp4
  • In this example output files will be named output_000.mp4, output_001.mp4, etc.

  • Segments may not be exactly 30 minutes long because it must cut on keyframes only.

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy