Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use ffmpeg to break long video files (circa 60mins) with the following requirements: 30sec chunks (fairly exact chunks, no frame loss between chunks) Transcoded to html 5 compatible video Filenames in time code format eg first chunk 00:00:00 second chunk 00:00:30 etc (it would be great if first chunk time could be specified by this would be the cherry on top!)

So far the closest working script I got was

    ffmpeg -i VID_20130417_140328_555.mp4 -s 480x360 -map 0 -keyint_min 10 -vcodec libx264 -g 60 -vb 500000 -strict experimental -acodec libfaac -f ssegment -segment_list out.list out%03d.ts 

This segments the file into the correct format but I can't control duration or naming.

Any help greatly appreciated.

share|improve this question

migrated from stackoverflow.com Oct 11 '13 at 8:57

This question came from our site for professional and enthusiast programmers.

    
Refer to -segment_time in the segment muxer docs. – LordNeckbeard Oct 10 '13 at 20:57
1  
Also, you should always include the complete console output, you don't need -strict experimental, and -f ssegment looks like a typo. Stack Overflow is off-topic, so I voted for migration to Super User. – LordNeckbeard Oct 10 '13 at 21:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.