Anyone familiar with ffmpeg

McJenkins

BANNED
Joined
Jul 29, 2013
Messages
210
Reaction score
70
I need code to cut and combine video,anyone knows how to put the code properly?
 
Ffmpeg works great once you crack it.
Stackoverflow is your friend, concat with complex variables are the told you need.

If the videos are in a non-standard format things can be more tricky.
 
Code:
ffmpeg -i 'input.mp4' -map 0 -codec copy -f segment -segment_time 10:00 'output%03d.mp4'

The options are as follows:
  • -i ‘input.mp4’ → the name of the input file
  • -map 0 → use the first input file for all outputs
  • -codec copy → do not recompress the video
  • -f segment → the output file will be multiple segments
  • -segment_time 10:00 → create segments of this duration (10 minutes in the example)
  • output%03d.mp4’ → name the output files like output001.mp4 etc. (3 is the number of digits in the counter)
 
I've tried avconv for streaming video and that was good, with ffmpeg i have a big latency.
 
Back
Top