Page 184 of 241 FirstFirst ... 84134174182183184185186194234 ... LastLast
Results 1,831 to 1,840 of 2402

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

  1. #1831
    Join Date
    Dec 2006
    Beans
    7,349

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

    Quote Originally Posted by menachem View Post
    The way I see it, mplayer is failing because it is using the old, external libavcodec instead of the compiled ffmpeg which uses a newer, internal libavcodec.
    Mind you I run the latest MPlayer compiled against new internal libavcodec and MPlayer still fails on the stream, hanging indefinitely after the following:

    Code:
    mplayer 'rtsp://rs-au.JewishAudio.org:554/ohr-tmimim/gafne-sz/5760-ki-setse-1.mp3'
    MPlayer SVN-r34067-4.5.2 (C) 2000-2011 MPlayer Team
    Loading extension-related profile 'extension.mp3'
    
    Playing rtsp://rs-au.JewishAudio.org:554/ohr-tmimim/gafne-sz/5760-ki-setse-1.mp3.
    Resolving rs-au.JewishAudio.org for AF_INET6...
    
    Couldn't resolve name for AF_INET6: rs-au.JewishAudio.org
    Resolving rs-au.JewishAudio.org for AF_INET...
    Connecting to server rs-au.JewishAudio.org[75.99.96.252]: 554...
    
    rtsp_session: session can not be established.
    STREAM_LIVE555, URL: rtsp://rs-au.JewishAudio.org:554/ohr-tmimim/gafne-sz/5760-ki-setse-1.mp3
    Stream not seekable!
     file format detected.
    Initiated "audio/X-MP3-DRAFT-00" RTP subsession on port 56308
    and the alternative command is not much better:

    Code:
    mplayer 'ffmpeg://rtsp://rs-au.JewishAudio.org:554/ohr-tmimim/gafne-sz/5760-ki-setse-1.mp3'
    You think that's air you're breathing now?

  2. #1832
    Join Date
    Jul 2006
    Location
    Lancashire
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    Quote Originally Posted by andrew.46 View Post
    Mind you I run the latest MPlayer compiled against new internal libavcodec and MPlayer still fails on the stream, hanging indefinitely...
    Perhaps it's a geographical reason.
    Does it play with ffplay or cvlc?

  3. #1833
    Join Date
    Dec 2006
    Beans
    7,349

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

    Quote Originally Posted by ron999 View Post
    That stream plays OK for me with mPlayer.
    I compiled mPlayer using the tutorial here:- http://ubuntuforums.org/showthread.php?t=1542240
    This method compiles mPlayer with it's own version of FFmpeg codecs.
    Maybe this is the route to follow instead of messing with your own FFmpeg.
    Hmmm..... but I follow this tutorial as well and the stream does not play for me . Not sure about the geographical issue, plays with FFplay but fails on vlc. Interesting.....
    Last edited by andrew.46; September 7th, 2011 at 02:38 AM.
    You think that's air you're breathing now?

  4. #1834
    Join Date
    Jun 2007
    Beans
    17,337

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

    Quote Originally Posted by andrew.46 View Post
    Hmmm..... but I follow this tutorial as well and the stream does not play for me . Not sure about the geographical issue, plays with FFplay but fails on vlc. Interesting.....
    See the same here, pretty much as shown by menachem, this is with a couple of different mplayers & mplayer2
    Just won't play.

    Worst case you could use ffmpeg to grab the stream, either to save & playback at leisure or play while grabbing (give it a min or so headstart, then start player on the .wav or .mp3

    ffmpeg to wav wouldn't produce to big a file, maybe about 2MB per min.
    Or you could let ffmpeg convert back to mp3 or pipe to lame
    Ex.
    Code:
    ffmpeg -i  rtsp://rs2.SichosInEnglish.org:554/sie/heritage/01.mp3  heritage-1.wav
    or
    ffmpeg -i  rtsp://rs2.SichosInEnglish.org:554/sie/heritage/01.mp3  -f wav - |lame -V6 - heritage-1.mp3
    Another possibility, while not ideal, is to pipe directly from ffmpeg to a player - ex. (maybe there's a way to get vlc to cache a bit?
    Code:
    ffmpeg -i  rtsp://rs2.SichosInEnglish.org:554/sie/heritage/01.mp3  -f wav - |vlc -

  5. #1835
    Join Date
    Dec 2006
    Beans
    7,349

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

    Quote Originally Posted by mc4man View Post
    See the same here, pretty much as shown by menachem, this is with a couple of different mplayers & mplayer2
    Just won't play.
    Glad it is not just me
    You think that's air you're breathing now?

  6. #1836
    Join Date
    Sep 2006
    Beans
    3,713

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

    Wanted: FFmpeg Maintainer for Ubuntu (or Debian)
    As of Natty, Ubuntu (and Debian unstable) has switched from FFmpeg to the libav fork. The "ffmpeg" package and binary is available, but it is from libav and not FFmpeg. In my opinion, forcing users to switch to the fork instead of providing both packages for the user to decide what to use was an unfortunate decision.

    Currently, as far as I know, FFmpeg is not available for Natty+. See Ubuntu renaming FFmpeg to libav for a few more details.

    I don't know much about maintaining a package, but I (and the FFmpeg developers) would be glad to offer any help for those interested.

  7. #1837
    Join Date
    Apr 2007
    Location
    Chennai
    Beans
    Hidden!
    Distro
    Ubuntu

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

    Quote Originally Posted by FakeOutdoorsman View Post
    FFmpeg is a versatile tool to encode and decode a multitude of video and audio formats. x264 encodes high-quality H.264 video.

    .....
    ....
    .....

    Install x264
    3. Get the current source files, compile, and install x264.
    Code:
    cd
    git clone git://git.videolan.org/x264
    cd x264
    ./configure --enable-static
    make
    sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \
        awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \
        --fstrans=no --default

    ......
    .......
    .....

    Adding lavf support to x264 (optional)
    7. This allows x264 to accept just about any input that FFmpeg can handle and is useful if you want to directly use x264.
    Code:
    cd ~/x264
    make distclean
    ./configure --enable-static
    make
    sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \
        awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \
        --fstrans=no --default
    That's it for installation. You can keep the x264, libvpx, and ffmpeg directories in your home directory if you plan on updating later. See Updating FFmpeg and x264 below for more details.

    .....
    .....
    What is the difference between above two steps ? I see only the codec name changed except that we are cd'ing in to the same directory and running the same set of commands (essentially). Since distclean does nothing but clean up previous run of ./configure. So how is it providing new feature by running the same compilation process again and creating and installing the same deb package. Since it says optional and issues as stated above, i choose to skip. If clarification can be provided it will be great.

    Thanks,

    with regards,
    ashwin

  8. #1838
    Join Date
    Jul 2006
    Location
    Lancashire
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    Quote Originally Posted by ashwin_cse View Post
    What is the difference between above two steps ?
    I asked that question in post #1812

  9. #1839
    Join Date
    Dec 2005
    Location
    St. Petersburg, FL
    Beans
    570
    Distro
    Ubuntu Budgie

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

    Quote Originally Posted by ashwin_cse View Post
    What is the difference between above two steps ? I see only the codec name changed except that we are cd'ing in to the same directory and running the same set of commands (essentially). Since distclean does nothing but clean up previous run of ./configure. So how is it providing new feature by running the same compilation process again and creating and installing the same deb package. Since it says optional and issues as stated above, i choose to skip. If clarification can be provided it will be great.
    x264 can use LAVF input if it detects a usable install of FFmpeg. Notice that the first x264 set was issued before compiling FFmpeg, therefore it will not have the option of using LAVF to open files. The later step recompiles x264 after FFmpeg is installed, detecting LAVF automatically.

    LAVF input (and FFMS input, if that had been covered) allows the user to give x264 any general video file directly. Any way you look at the steps though, a recompile is going to be necessary somewhere in the process. Either x264 has to be rebuilt (as per this guide), or FFmpeg has to be rebuilt (in cases where the user wants to keep the LAVF and FFMS components streamlined, and needs a stripped-down version of FFmpeg).

  10. #1840
    Join Date
    Apr 2007
    Location
    Chennai
    Beans
    Hidden!
    Distro
    Ubuntu

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

    Quote Originally Posted by qyot27 View Post
    x264 can use LAVF input if it detects a usable install of FFmpeg. Notice that the first x264 set was issued before compiling FFmpeg, therefore it will not have the option of using LAVF to open files. The later step recompiles x264 after FFmpeg is installed, detecting LAVF automatically.

    LAVF input (and FFMS input, if that had been covered) allows the user to give x264 any general video file directly. Any way you look at the steps though, a recompile is going to be necessary somewhere in the process. Either x264 has to be rebuilt (as per this guide), or FFmpeg has to be rebuilt (in cases where the user wants to keep the LAVF and FFMS components streamlined, and needs a stripped-down version of FFmpeg).
    Thanks qyot27 for the beautiful explanation. That clears the air. Thanks.

    with regards,
    ashwin

Page 184 of 241 FirstFirst ... 84134174182183184185186194234 ... 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
  •