Page 8 of 236 FirstFirst ... 6789101858108 ... LastLast
Results 71 to 80 of 2358

Thread: HOWTO: Install and use the latest FFmpeg and x264

  1. #71
    Join Date
    Sep 2006
    Beans
    548

    Re: HOWTO: Compile the latest ffmpeg and x264 from source

    Quote Originally Posted by lunaz View Post
    Ok i tried changing the -b option to 768 then 1200 on both passes.

    all it does is make a 48byte file that doesnt work; and it freezes up the terminal. i was using that script in the tutorial first page.

    the input files are both ogg files & tried using output mp4 and avi neither work.
    You should take a look at WinFF. It's a frontend to ffmpeg. Don't install the one from the repository, get the deb from the author's website. It comes with tons of presets. Just make sure to point it at "/usr/local/bin/ffmpeg" in the preferences.

  2. #72
    Join Date
    Sep 2006
    Beans
    548

    Re: HOWTO: Compile the latest ffmpeg and x264 from source

    Can someone give me a hand? Please do a fresh pull of x264 and ffmpeg, then try to encode any video with ffmpeg using libx264 and verify that you get a segmentation fault. It seems there is a new bug either in ffmpeg or x264. If you search google, there is 1 or 2 threads about this on the ffmpeg mailing list from August 2008. In one of the messages the ffmpeg dev says it 'probably' has something to do with x264.

    Can someone also tell me the last SVN of ffmpeg that they successfully got working with x264? I temporairily went back to 13060 which was the last version I was using prior to rebuilding x264 and ffmpeg last night, but I'm sure there's probably a later version that will still work. Thanks.

  3. #73
    Join Date
    Sep 2006
    Beans
    3,588

    Re: HOWTO: Compile the latest ffmpeg and x264 from source

    What is the command that you used to get the segmentation fault? A patch has been released 6 1/2 hours ago regarding a rc_eq default value bug: [PATCH] Fix crash in libx264 when rc_eq is not set. It will probably be applied to SVN, but I don't know how long that will take.

  4. #74
    Join Date
    Sep 2006
    Beans
    548

    Re: HOWTO: Compile the latest ffmpeg and x264 from source

    Quote Originally Posted by FakeOutdoorsman View Post
    What is the command that you used to get the segmentation fault? A patch has been released 6 1/2 hours ago regarding a rc_eq default value bug: [PATCH] Fix crash in libx264 when rc_eq is not set. It will probably be applied to SVN, but I don't know how long that will take.
    heheh.. Yep, the thread that patch refers to is the same one I was talking about. I don't specify a rc_eq in my command line. Well at least now I know the SVN number where this regression occurred. Thanks!

  5. #75
    Join Date
    Sep 2006
    Beans
    548

    Re: HOWTO: Compile the latest ffmpeg and x264 from source

    Quote Originally Posted by FakeOutdoorsman View Post
    What is the command that you used to get the segmentation fault? A patch has been released 6 1/2 hours ago regarding a rc_eq default value bug: [PATCH] Fix crash in libx264 when rc_eq is not set. It will probably be applied to SVN, but I don't know how long that will take.
    So I downloaded 14787 and compilied, and it doesn't have the seg fault problem. However, this version has a different issue. I use the following command line:

    Code:
    ffmpeg -threads 2 -i INPUT_FILE -vcodec libx264 -s 320x240 -aspect 4:3 -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -b 800k -maxrate 1250k -bufsize 4M -bt 256k -refs 1 -coder 0 -me umh -me_range 16 -subq 7 -partitions +parti4x4+parti8x8+partp8x8 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -qcomp 0.6 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 -acodec libfaac -ac 2 -ab 128k OUTPUT_FILE
    The 14787 version insists on only encoding at 150 kbits/s, if I remove the "-maxrate xxxx" then it encodes at the specified bitrate. Was this yet another change in ffmpeg? Version 13060 doesn't have any problems with the above command line.

  6. #76
    Join Date
    Sep 2006
    Beans
    3,588

    Re: HOWTO: Compile the latest ffmpeg and x264 from source

    I updated to 14872 and the latest x264. Your command seg faulted while converting a dv avi, but it worked when I added -rc_eq 'blurCplx^(1-qComp)' and it encoded at the proper bitrate. I don't know if that's helpful since I updated to a different revision.

  7. #77
    Join Date
    Sep 2006
    Beans
    548

    Red face Re: HOWTO: Compile the latest ffmpeg and x264 from source

    Quote Originally Posted by FakeOutdoorsman View Post
    I updated to 14872 and the latest x264. Your command seg faulted while converting a dv avi, but it worked when I added -rc_eq 'blurCplx^(1-qComp)' and it encoded at the proper bitrate. I don't know if that's helpful since I updated to a different revision.
    Very nice! That works for me with the latest SVN. Care to inform us WTF that magic little command does and why/when it needs to be used?
    Last edited by mocha; August 21st, 2008 at 08:48 AM.

  8. #78
    Join Date
    Sep 2006
    Beans
    3,588

    Re: HOWTO: Compile the latest ffmpeg and x264 from source

    This is the rate control equation for x264. I don't understand what the equation itself means, but there have been several ffmpeg bugs lately if you include it (5 weeks ago) or don't include it (this bug). The equation is the recommended default for x264, but for some reason ffmpeg doesn't use it by default so it has to be declared.

  9. #79
    Join Date
    Sep 2006
    Beans
    548

    Re: HOWTO: Compile the latest ffmpeg and x264 from source

    Ok, well that all kind of makes sense now regarding my original problem with the seg fault. At least I'm up and running with a new version of ffmpeg. Thanks for the help.

  10. #80
    Join Date
    Aug 2008
    Beans
    5

    Re: HOWTO: Compile the latest ffmpeg and x264 from source

    What command would output the highest quality x264/aac mp4 possible in a single pass encode? file size isnt too a big issue to me, but if you could explain what each variable did would be nice also

Page 8 of 236 FirstFirst ... 6789101858108 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •