Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 using ffmpeg to split videos to comply with their length but whenever I upload them it says "failed to convert". I'm using this settings

ffmpeg -i "${file}" -ar 22050 -vcodec libx264 -acodec libmp3lame -ss 00:00:00 -t 00:13:00 -f mp4 "/home/ras/education/${args[0]}_${startingfrom}_Parte_01_04.mp4"

ffmpeg -i "${file}" -ar 22050 -vcodec libx264 -acodec libmp3lame -ss 00:13:00 -f mp4 "/home/ras/education/${args[0]}_${startingfrom}_Parte_02_04.mp4"
and so on...

Thing is I really have tried different codecs but it fails miserably.. tried with -vcodec copy -acodec copy, mjpeg and still don't get it right.. so I'm asking if any users have worked this out.

any help, suggestion, etc is really appreciated, note that I would really like to keep it in command line since there's a good amount to convert, btw if someone has a better title feel free to edit it

share|improve this question

try this:

ffmpeg -i mymovie.mpg -ar 22050 -acodec libmp3lame -ab 32K -r 25 -s 320x240 -vcodec flv -ss 00:00:00 -t 00:13:00 new.flv
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .