>> everything is working (configure, make of both libs), but if you<br/>>> want to start encoding with a call like:<br/>>> "ffmpeg -i test.XXX -vcodec libx264 test_new.XXX"<br/>>> there is an error "Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height "<br/>>> the error message is thrown by the avcodec_open function of ffmpeg.<br/>><br/>> Look up at the actual error message that x264 prints, not at the line<br/>> ffmpeg prints, which roughly translates to "x264 printed an error,<br/>> look up and read it!"<br/>><br/>> Dark Shikari<br/><br/>I can confirm I'm have the same issue as the op.  Here is my command line:<br/><br/>ffmpeg -y -i test_material.mpg -f matroska -an -pass 1 -vcodec libx264 -vpre lossless_fast -threads 0 /dev/null && ffmpeg -y -i test_material.mpg -acodec copy -pass 2 -vcodec libx264 -vpre lossless_fast -threads 0 ffmpeg_2pass_lossless_fast.mkv<br/><br/>The contents of the lossless_fast preset:<br/><br/>coder=0<br/>flags=+loop<br/>cmp=+chroma<br/>partitions=-parti8x8+parti4x4+partp8x8-partp4x4-partb8x8<br/>me_method=hex<br/>subq=3<br/>me_range=16<br/>g=250<br/>keyint_min=25<br/>sc_threshold=40<br/>i_qfactor=0.71<br/>b_strategy=1<br/>qcomp=0.6<br/>qmin=10<br/>qmax=51<br/>qdiff=4<br/>directpred=1<br/>flags2=+fastpskip<br/>cqp=0<br/><br/>and the specific libx264 error (separated for ease of reading):<br/><br/>Input #0, mpeg, from 'test_material.mpg':<br/>  Duration: 00:00:30.17, start: 0.502000, bitrate: 14787 kb/s<br/>    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 65000 kb/s, 29.97 tbr, 90k tbn, 59.94 tbc<br/>    Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s<br/><br/>[libx264 @ 0x869c760]no ratecontrol method specified<br/><br/>Output #0, matroska, to 'ffmpeg_2pass_lossless_fast.mkv':<br/>    Stream #0.0: Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=10-51, pass 2, 200 kb/s, 90k tbn, 29.97 tbc<br/>    Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s<br/>Stream mapping:<br/>  Stream #0.0 -> #0.0<br/>  Stream #0.1 -> #0.1<br/>Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height<br/><br/>The version of x264 installed (I'm running an Arch Linux derived OS) is a snapshot from 2009-04-16.<br/><br/>Any ideas what could be causing x264 to complain about a ratecontrol method?<br/><br/>Thank you,<br/>mihanson