ffmpeg help

Discussion in 'iPad' started by iohass, Mar 19, 2012.

  1. iohass macrumors regular

    Joined:
    Mar 11, 2012
    Location:
    Canada
    #1
    As suggested by someone in the forums, I'm trying to transcode a tv show that I have in mkv format.

    i downloaded ffmpeg and used the command ffmpeg -i file.mkv file.m4v

    after doing so, i got two errors:

    [libvo_aacent @30194B80] Unable to set encoding parameters

    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as _bit_rate, rate, width or height


    What am i doing wrong?
     
  2. iohass thread starter macrumors regular

    Joined:
    Mar 11, 2012
    Location:
    Canada
  3. felixroqu3 macrumors regular

    felixroqu3

    Joined:
    Mar 5, 2012
    Location:
    New York, NY
  4. iohass thread starter macrumors regular

    Joined:
    Mar 11, 2012
    Location:
    Canada
    #4
    handbreak takes 5 hours to convert a video..
     
  5. dffdce macrumors member

    Joined:
    Jun 30, 2010
    #5
    It's probably not able to determine bit rate. You might try adding "-ab 256k -ar 96000" (without the quotes).
     
  6. greytmom macrumors 68040

    greytmom

    Joined:
    Jun 23, 2010
    #6
    What? Last one I converted took about 30 minutes.
     
  7. brand macrumors 601

    brand

    Joined:
    Oct 3, 2006
    Location:
    127.0.0.1
    #7
    Why not ask ask this in a ffmpeg forum or a least a forum that specializes in video encoding? That would make a lot more sense than posting in an iPad forum. You would probably even get a better answer too.


    It depends on what hardware you are doing the encoding on.
     
  8. gquiring macrumors regular

    gquiring

    Joined:
    Oct 19, 2007
    Location:
    SC
    #8
    It depends on your CPU. But I agree HandBrake is very slow. I have a Core i7 and it takes hours to convert a 2 hour HD movie.
     
  9. iohass thread starter macrumors regular

    Joined:
    Mar 11, 2012
    Location:
    Canada
    #9
    I exaggerated with 5 hours, but it definitely takes very, very long.

    Reason why I asked here over an ffmpeg forum is because I need to convert specifically to ipad..
     
  10. jayfehr macrumors member

    Joined:
    Nov 24, 2008
    #10
    Try this:

    ffmpeg -i file.mkv -vcodec copy file.m4v

    The vcodec copy part tells it to just swap containers, and doesn't actually convert anything.
     
  11. iohass thread starter macrumors regular

    Joined:
    Mar 11, 2012
    Location:
    Canada
    #11
    thanks! this worked for one of the files, but another returned some errors:

    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height


    i'm guessing it wasn't converted properly to begin with, so i'll try some others. this process was definitely faster than using handbrake though.. took maybe 3 minutes!
     

Share This Page