Page 113 of 237 FirstFirst ... 1363103111112113114115123163213 ... LastLast
Results 1,121 to 1,130 of 2362

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

  1. #1121
    Join Date
    Aug 2009
    Beans
    3
    Distro
    Ubuntu Development Release

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

    Quote Originally Posted by coolboi007 View Post
    hi. i need to convert avi to Sony PSP, 480x272, h264, high quality if possible

    i found this on ffmpeg FAQ and edit it.

    however, i cant get it to work. what should be the correct command? thanks.
    According to mencoder's docs:

    mencoder -ofps 30000/1001 -af lavcresample=24000 -vf harddup -oac lavc \
    -ovc lavc -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:acodec=libfaac \
    -of lavf -lavfopts format=psp \
    /home/ubuntu/Desktop/Shrek.avi -o /home/ubuntu/Desktop/Shrek.mp4

    Also, you don't need to use sudo in front of ffmpeg in the command you gave. It doesn't need to be run as the root user.

  2. #1122
    Join Date
    Jun 2007
    Beans
    14,208

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

    Quote Originally Posted by Bachstelze View Post
    So, finally, here's how to make kosher ffmpeg packages.....
    For those that wish to try/use (post #1068. pg. 107), tried a quick run thru and it works quite well.

    Though faad should still be removed from debian/confflags

    (# there is no libfaad in ubuntu/main, on in ubuntu/multiverse
    gpl_confflags += $(call cond_enable,/usr/include/faad.h,libfaad

    If using at some point on maverick I'd probably move the line in blue from the libavcodec52.install file to the ffmpeg.install file to avoid an overwrite issue if upgrading to the new packages
    usr/lib/{,*/,*/*/}libavcodec.so.*
    usr/share/ffmpeg/*.ffpreset
    ( was fairly straightforward to adapt the .diff used here to produce extra versions instead, but only a very few apps require them and it's probably easier to just edit the control file in the <app>.deb before installing to accept a non extra name

  3. #1123
    Join Date
    Sep 2006
    Beans
    3,599

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

    Quote Originally Posted by nothingspecial View Post
    Do you happen to know how to do this easily on a minimal install without it wanting to pull X in?

    Full ffmpeg, no X?
    I am currently out of town, but I run FFmpeg X-less occasionally. I'm not able to check dependencies now, so I'm not sure if anything wants to suck in X related junk, but libx11-dev and libxfixes-dev might be worth investigating. These probably aren't needed for a command-line only system anyway.

  4. #1124
    Join Date
    Sep 2006
    Beans
    3,599

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

    Quote Originally Posted by Tom Dignan View Post
    Wow, thanks for making what would otherwise have been a formidable task quite easy. I did have install libopencore-amrnb-dev, which isn't listed in your post as a dependency.
    This looks like it's listed on the Lucid guide. Not sure of the others. What Ubuntu version are you using?

  5. #1125
    Join Date
    Dec 2005
    Location
    St. Petersburg, FL
    Beans
    532
    Distro
    Ubuntu 15.04 Vivid Vervet

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

    Quote Originally Posted by coolboi007 View Post
    hi sorry for incomplete details.

    hi. im trying to emulate this settings from Xilisoft. i need to convert avi to psp with high quality settings. i want to try the performance of this pc in windows and linux converting.

    http://i151.photobucket.com/albums/s...reenshot-1.png

    ...

    any help in replicating the xilisoft settings. thanks.
    The screenshot doesn't tell us anything about the settings used, outside of bitrate. Take an output .mp4 from Xilisoft and use avinaptic to generate the report of what features the stream uses. There is a Linux version of avinaptic, but since you're using Xilisoft through a VM the Windows version would work too. Post the results and someone can probably translate it into x264 or ffmpeg parameters.

  6. #1126
    Join Date
    Aug 2009
    Beans
    3
    Distro
    Ubuntu Development Release

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

    Quote Originally Posted by coolboi007 View Post
    hi sorry for incomplete details.
    ....snip....
    any help in replicating the xilisoft settings. thanks.
    Right, what qyot27 said. I've been playing with transcoding DVD's using mplayer/mencoder myself, but with a bit more info I'm sure one of us here can replicate the settings to use with either ffmpeg or the mplayer stack.

  7. #1127
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,282
    Distro
    Xubuntu 14.04 Trusty Tahr

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

    i just want to follow up with my success with FFMPEG and x264 encoding. I am still using a static build of FFMPEG because i don't fully understand the whole sharing of libraries and i don't believe i even need it with the apps i currently use. i can now encode with x264 and aac in kdenlive. i used the google code bash script to install (and 2nd script to upgrade occasionally) svn ffmpeg and x264 from git. the code is here and all credit goes to r.plumridge
    http://code.google.com/p/x264-ffmpeg-up-to-date/
    I use the following versions of software on my Lucid Lynx setup
    Qt: 4.6.2
    KDE Development Platform: 4.4.2 (KDE 4.4.2)
    Kdenlive: 0.7.7.1
    MLT (melt) = 0.5.6
    FFmpeg version SVN-r24084, Copyright (c) 2000-2010 the FFmpeg developers
    built on Jul 7 2010 09:19:01 with gcc 4.4.3
    configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
    libavutil 50.20. 0 / 50.20. 0
    libavcodec 52.79. 1 / 52.79. 1
    libavformat 52.73. 0 / 52.73. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libavfilter 1.20. 1 / 1.20. 1
    libswscale 0.11. 0 / 0.11. 0
    libpostproc 51. 2. 0 / 51. 2. 0
    FFmpeg SVN-r24084
    libavutil 50.20. 0 / 50.20. 0
    libavcodec 52.79. 1 / 52.79. 1
    libavformat 52.73. 0 / 52.73. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libavfilter 1.20. 1 / 1.20. 1
    libswscale 0.11. 0 / 0.11. 0
    libpostproc 51. 2. 0 / 51. 2. 0

    libx264 = not sure how to see what version but it's from git

    I can export very nice x264 (8000k bit rate) aac (audio 128kb, 48000) mp4 (container) files from kdenlive. there's one here and it's not bad for standard definition. I am going to try to not scale it down to 640x480 and just try 720x480 and see if i don't get better quality.
    http://www.youtube.com/watch?v=Ld4vSLkeTbo
    Last edited by dannyboy79; July 13th, 2010 at 06:45 PM.

  8. #1128
    Join Date
    Jul 2010
    Beans
    2

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

    Hi.,

    I installed FFMPEG in Ubuntu 10.04LTS 32bit as per your instruction on this thread. I think installation is okay.,

    karim@desktop:~$ ls -l /usr/local/include/
    total 76
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libavcodec
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libavdevice
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libavfilter
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libavformat
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libavutil
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libpostproc
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libswscale
    drwxr-xr-x 2 root root 4096 2010-07-07 15:47 libusb-1.0
    drwxr-xr-x 2 root root 4096 2010-07-08 11:45 SDL
    drwxr-xr-x 2 root root 4096 2010-07-14 15:24 vpx
    -rw-r--r-- 1 root root 36460 2010-07-14 15:22 x264.h

    karim@desktop:~$ ls -l /usr/local/lib/
    total 46216
    -rw-r--r-- 1 root root 29157798 2010-07-14 15:36 libavcodec.a
    -rw-r--r-- 1 root root 481196 2010-07-14 15:36 libavdevice.a
    -rw-r--r-- 1 root root 353020 2010-07-14 15:36 libavfilter.a
    -rw-r--r-- 1 root root 8756786 2010-07-14 15:36 libavformat.a
    -rw-r--r-- 1 root root 285456 2010-07-14 15:36 libavutil.a
    -rw-r--r-- 1 root root 79428 2010-07-14 15:36 libpostproc.a
    lrwxrwxrwx 1 root root 20 2010-07-08 11:45 libSDL-1.2.so.0 -> libSDL-1.2.so.0.11.3
    -rwxr-xr-x 1 root root 2098338 2010-07-08 11:45 libSDL-1.2.so.0.11.3
    -rw-r--r-- 1 root root 3313590 2010-07-08 11:45 libSDL.a
    -rwxr-xr-x 1 root root 986 2010-07-08 11:45 libSDL.la
    -rw-r--r-- 1 root root 3330 2010-07-08 11:45 libSDLmain.a
    lrwxrwxrwx 1 root root 20 2010-07-08 11:45 libSDL.so -> libSDL-1.2.so.0.11.3
    -rw-r--r-- 1 root root 595136 2010-07-14 15:36 libswscale.a
    -rw-r--r-- 1 root root 201874 2010-07-07 15:47 libusb-1.0.a
    -rwxr-xr-x 1 root root 955 2010-07-07 15:47 libusb-1.0.la
    lrwxrwxrwx 1 root root 19 2010-07-07 15:47 libusb-1.0.so -> libusb-1.0.so.0.0.0
    lrwxrwxrwx 1 root root 19 2010-07-07 15:47 libusb-1.0.so.0 -> libusb-1.0.so.0.0.0
    -rwxr-xr-x 1 root root 156673 2010-07-07 15:47 libusb-1.0.so.0.0.0
    -rw-r--r-- 1 karim karim 765920 2010-07-14 15:23 libvpx.a
    -rw-r--r-- 1 root root 1035970 2010-07-14 15:22 libx264.a

    Thanks for your effort. But when I tried to compile some samples http://dranger.com/ffmpeg/ffmpeg.html based on ffmpeg libraries, I'm getting linking error. Even I linked the proper libraries in the gcc.

    I knew that those samples are little bit outdated. so I did some changes in his samples like
    #include <libavcodec/avcodec.h>
    #include <libavformat/avformat.h>
    #include <libavutil/avutil.h>

    #include <SDL/SDL.h>
    #include <SDL/SDL_thread.h> ... etc.

    In his sample program he mentioned that how to compile his samples? And some changes in FFMPEG. I followed his instruction., but I'm getting some linking error:

    /usr/local/lib/libavformat.a(concat.o): In function `concat_open':
    /home/karim/ffmpeg/libavformat/concat.c:67: undefined reference to `av_strstart'
    /home/karim/ffmpeg/libavformat/concat.c:99: undefined reference to `av_strlcpy'
    /usr/local/lib/libavformat.a(rl2.o): In function `rl2_read_seek':
    /home/karim/ffmpeg/libavformat/rl2.c:277: undefined reference to `av_rescale_q'
    /usr/local/lib/libavcodec.a(alsdec.o): In function `revert_channel_correlation':
    /home/karim/ffmpeg/libavcodec/alsdec.c:1205: undefined reference to `av_log'
    /usr/local/lib/libavcodec.a(alsdec.o): In function `read_var_block_data':
    /home/karim/ffmpeg/libavcodec/alsdec.c:628: undefined reference to `av_log'
    /usr/local/lib/libavcodec.a(alsdec.o): In function `decode_blocks':
    /home/karim/ffmpeg/libavcodec/alsdec.c:1111: undefined reference to `av_log'
    /usr/local/lib/libavcodec.a(alsdec.o): In function `read_channel_data':
    /home/karim/ffmpeg/libavcodec/alsdec.c:1148: undefined reference to `av_log'
    /usr/local/lib/libavcodec.a(alsdec.o): In function `read_frame_data':
    /home/karim/ffmpeg/libavcodec/alsdec.c:1329: undefined reference to `av_log'
    /usr/local/lib/libavcodec.a(alsdec.o):/home/karim/ffmpeg/libavcodec/alsdec.c:1173: more undefined references to `av_log' foll

    That message is so big.., so I just pasted few lines. Even I tried

    export LD_INCLUDE_PATH=/usr/local/include:$LD_INCLUDE_PATH
    export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

    in .bashrc file, still I'm getting those errors. Do you have any idea about this?

    Thanks...

  9. #1129
    Join Date
    Jul 2010
    Beans
    2

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

    Quote Originally Posted by Syed_karim View Post
    Hi.,

    I installed FFMPEG in Ubuntu 10.04LTS 32bit as per your instruction on this thread. I think installation is okay.,

    karim@desktop:~$ ls -l /usr/local/include/
    total 76
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libavcodec
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libavdevice
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libavfilter
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libavformat
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libavutil
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libpostproc
    drwxr-xr-x 2 root root 4096 2010-07-14 15:37 libswscale
    drwxr-xr-x 2 root root 4096 2010-07-07 15:47 libusb-1.0
    drwxr-xr-x 2 root root 4096 2010-07-08 11:45 SDL
    drwxr-xr-x 2 root root 4096 2010-07-14 15:24 vpx
    -rw-r--r-- 1 root root 36460 2010-07-14 15:22 x264.h

    karim@desktop:~$ ls -l /usr/local/lib/
    total 46216
    -rw-r--r-- 1 root root 29157798 2010-07-14 15:36 libavcodec.a
    -rw-r--r-- 1 root root 481196 2010-07-14 15:36 libavdevice.a
    -rw-r--r-- 1 root root 353020 2010-07-14 15:36 libavfilter.a
    -rw-r--r-- 1 root root 8756786 2010-07-14 15:36 libavformat.a
    -rw-r--r-- 1 root root 285456 2010-07-14 15:36 libavutil.a
    -rw-r--r-- 1 root root 79428 2010-07-14 15:36 libpostproc.a
    lrwxrwxrwx 1 root root 20 2010-07-08 11:45 libSDL-1.2.so.0 -> libSDL-1.2.so.0.11.3
    -rwxr-xr-x 1 root root 2098338 2010-07-08 11:45 libSDL-1.2.so.0.11.3
    -rw-r--r-- 1 root root 3313590 2010-07-08 11:45 libSDL.a
    -rwxr-xr-x 1 root root 986 2010-07-08 11:45 libSDL.la
    -rw-r--r-- 1 root root 3330 2010-07-08 11:45 libSDLmain.a
    lrwxrwxrwx 1 root root 20 2010-07-08 11:45 libSDL.so -> libSDL-1.2.so.0.11.3
    -rw-r--r-- 1 root root 595136 2010-07-14 15:36 libswscale.a
    -rw-r--r-- 1 root root 201874 2010-07-07 15:47 libusb-1.0.a
    -rwxr-xr-x 1 root root 955 2010-07-07 15:47 libusb-1.0.la
    lrwxrwxrwx 1 root root 19 2010-07-07 15:47 libusb-1.0.so -> libusb-1.0.so.0.0.0
    lrwxrwxrwx 1 root root 19 2010-07-07 15:47 libusb-1.0.so.0 -> libusb-1.0.so.0.0.0
    -rwxr-xr-x 1 root root 156673 2010-07-07 15:47 libusb-1.0.so.0.0.0
    -rw-r--r-- 1 karim karim 765920 2010-07-14 15:23 libvpx.a
    -rw-r--r-- 1 root root 1035970 2010-07-14 15:22 libx264.a

    Thanks for your effort. But when I tried to compile some samples http://dranger.com/ffmpeg/ffmpeg.html based on ffmpeg libraries, I'm getting linking error. Even I linked the proper libraries in the gcc.

    I knew that those samples are little bit outdated. so I did some changes in his samples like
    #include <libavcodec/avcodec.h>
    #include <libavformat/avformat.h>
    #include <libavutil/avutil.h>

    #include <SDL/SDL.h>
    #include <SDL/SDL_thread.h> ... etc.

    In his sample program he mentioned that how to compile his samples? And some changes in FFMPEG. I followed his instruction., but I'm getting some linking error:

    /usr/local/lib/libavformat.a(concat.o): In function `concat_open':
    /home/karim/ffmpeg/libavformat/concat.c:67: undefined reference to `av_strstart'
    /home/karim/ffmpeg/libavformat/concat.c:99: undefined reference to `av_strlcpy'
    /usr/local/lib/libavformat.a(rl2.o): In function `rl2_read_seek':
    /home/karim/ffmpeg/libavformat/rl2.c:277: undefined reference to `av_rescale_q'
    /usr/local/lib/libavcodec.a(alsdec.o): In function `revert_channel_correlation':
    /home/karim/ffmpeg/libavcodec/alsdec.c:1205: undefined reference to `av_log'
    /usr/local/lib/libavcodec.a(alsdec.o): In function `read_var_block_data':
    /home/karim/ffmpeg/libavcodec/alsdec.c:628: undefined reference to `av_log'
    /usr/local/lib/libavcodec.a(alsdec.o): In function `decode_blocks':
    /home/karim/ffmpeg/libavcodec/alsdec.c:1111: undefined reference to `av_log'
    /usr/local/lib/libavcodec.a(alsdec.o): In function `read_channel_data':
    /home/karim/ffmpeg/libavcodec/alsdec.c:1148: undefined reference to `av_log'
    /usr/local/lib/libavcodec.a(alsdec.o): In function `read_frame_data':
    /home/karim/ffmpeg/libavcodec/alsdec.c:1329: undefined reference to `av_log'
    /usr/local/lib/libavcodec.a(alsdec.o):/home/karim/ffmpeg/libavcodec/alsdec.c:1173: more undefined references to `av_log' foll

    That message is so big.., so I just pasted few lines. Even I tried

    export LD_INCLUDE_PATH=/usr/local/include:$LD_INCLUDE_PATH
    export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

    in .bashrc file, still I'm getting those errors. Do you have any idea about this?

    Thanks...
    Thanks.., I fixed this problem by myself... Actually this is library ordering problem...

  10. #1130
    Join Date
    May 2007
    Beans
    141
    Distro
    Ubuntu

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

    Quote Originally Posted by Syed_karim View Post
    Thanks.., I fixed this problem by myself... Actually this is library ordering problem...
    To help others in future, since your post was too complicated for me - can you write down a step by step of how you fixed this problem?

Page 113 of 237 FirstFirst ... 1363103111112113114115123163213 ... 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
  •