This forum has been archived. All content is frozen. Please use KDE Discuss instead.

H.264 on Ubuntu - how?

Tags: None
(comma "," separated)
Puzzlenoise
Registered Member
Posts
43
Karma
0

H.264 on Ubuntu - how?

Wed Nov 11, 2009 9:03 am
Hello!

There are some profiles in which I can't render:

Dailymotion
Vimeo
Youtube
Apple Quicktime
H.264
HTC G1

Most important for me is, to render in H.264... how can I achieve that?

Regards, Puzzle

EDIT:
I just realized, that my PC has problems now with playing videos - ANY videos... and I don't get it, why it won't play anything...
ddennedy
Registered Member
Posts
1315
Karma
1

Re: H.264 on Ubuntu - how?

Thu Nov 12, 2009 6:27 am
If you are not using a recent version of Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/ffmpeg/+bug/303537


tidris
Registered Member
Posts
90
Karma
0
OS

Re: H.264 on Ubuntu - how?

Fri Nov 20, 2009 3:22 pm
I believe libx264 is used for rendering H.264. Do you have it installed? If you run the ffmpeg command in a terminal window, you should be able to see --enable-libx264 somewhere in the output.

Weevil
Registered Member
Posts
121
Karma
0

Re: H.264 on Ubuntu - how?

Fri Nov 20, 2009 6:49 pm
I recently found that ffmpeg svn version requires libx264 version 0.78 or higher, which wasn't in Ubuntu repos yet.


tidris
Registered Member
Posts
90
Karma
0
OS

Re: H.264 on Ubuntu - how?

Sat Nov 21, 2009 11:02 pm
I don't see --enable-libx264 on your ffmpeg output. I am no ffmpeg expert, but I am fairly sure you need that, otherwise ffmpeg doesn't take advantage of libx264 even if it's installed.
tidris
Registered Member
Posts
90
Karma
0
OS

Re: H.264 on Ubuntu - how?

Sun Nov 22, 2009 4:19 pm
Here the ffmpeg output I get. Notice I built ffmpeg today.

FFmpeg version SVN-r20577, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Nov 22 2009 08:01:29 with gcc 4.3.3
configuration: --prefix=/usr/local --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libdc1394 --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-avfilter-lavf --enable-libx264
libavutil 50. 4. 0 / 50. 4. 0
libavcodec 52.41. 0 / 52.41. 0
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1. 8. 0 / 1. 8. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
At least one output file must be specified

As you can see, there is --enable-libfaac as well as --enable-libx264. I guess you will need to find a a version of ffmpeg that has both of those options set, or build your own.
tidris
Registered Member
Posts
90
Karma
0
OS

Re: H.264 on Ubuntu - how?

Sun Nov 22, 2009 7:58 pm
Since you installed the new ffmpeg in /usr/local, you need to define and export LD_LIBRARY_PATH so the /usr/local libraries are found at run time. On a terminal window type:

export LD_LIBRARY_PATH=/usr/local/lib
kdenlive

Run the wizard on kdenlive, and hopefully you will then be able to render to h264.

tidris
Registered Member
Posts
90
Karma
0
OS

Re: H.264 on Ubuntu - how?

Sun Nov 22, 2009 8:41 pm
By the way, if you want to know the locations of libraries found by a program at run time, you can use the ldd command.
Try this on a terminal window:

ldd `which ffmpeg`

ldd `which kdenlive`

jmpoure_drupal
Registered Member
Posts
735
Karma
0

Re: H.264 on Ubuntu - how?

Mon Nov 23, 2009 8:55 am
For you kind information, Debian multimedia FFmpeg, MLT and Kdenlive are always updated on a regular basis, usually 1 or 2 weeks. Just install a Debian SID with Debian multimedia repositories and you are done.
tidris
Registered Member
Posts
90
Karma
0
OS

Re: H.264 on Ubuntu - how?

Tue Nov 24, 2009 5:11 pm
hmmm...
rico
Registered Member
Posts
71
Karma
0

Re: H.264 on Ubuntu - how?

Tue Nov 24, 2009 5:37 pm
i finally managed to render to h264 on karmic using the last pakage from sunabs unstable repository
https://launchpad.net/~sunab/+archive/sunab2
rendering seems to crash at 100% but the file is actually rendered, all formats i tried so far are working (mp4,xvid,theora flash)
tidris
Registered Member
Posts
90
Karma
0
OS

Re: H.264 on Ubuntu - how?

Tue Nov 24, 2009 6:45 pm
Ok, on your output I see

libx264.so.67 => /usr/lib/libx264.so.67 (0x00007f68bed07000)

That means ffmpeg is linking with version 67 of libx264. However earlier Weevil wrote that svn ffmpeg needs libx264 78, and you responded saying you have 78 installed. So do you really have 78 installed, and where exactly is it installed?

Also what's the output of all of this:

which ffmpeg
whereis ffmpeg
/usr/bin/ffmpeg
/usr/local/bin/ffmpeg
ldd /usr/local/bin/ffmpeg



DavePhillips
Registered Member
Posts
71
Karma
0

Re: H.264 on Ubuntu - how?

Wed Nov 25, 2009 1:44 pm
Hey, fred, don't go crazy, just fire off a message to the FFmpeg devs and ask what's going on with things like support for x264 and vdpau. :) I just recompiled and reinstalled the latest SVN FFmpeg, the latest MLT, the latest x264, and the latest Kdenlive. Still no joy here with the missing rendering codecs (MPEG4, Xvid4, X264, Theora), despite their inclusion in ffmpeg, so I'm done with it for now, at least on Jaunty. I intend to use the Builder on my Karmic box, hopefully that will work better.

Meanwhile Kdenlive 0.7.7 is otherwise very nice.

Good luck.

Updated 11/25: The Builder Wizard worked fine on Karmic, with the exception of two failures while building FFmpeg. Both libx264 and libtheora required versions unavailable in the Karmic official repos, so I built them myself. After compiling and installing those libs the wizard completed its task and I now have Kdenlive 0.7.7 on my notebook. Rendering options now include Theora and H264, but Xvid4 is still unavailable. I'm not sure what I have to do to get that one. Any advice ?


Best,

dp
tidris
Registered Member
Posts
90
Karma
0
OS

Re: H.264 on Ubuntu - how?

Wed Nov 25, 2009 2:56 pm
Sorry, I ran out of ideas :).
tidris
Registered Member
Posts
90
Karma
0
OS

Re: H.264 on Ubuntu - how?

Wed Nov 25, 2009 6:59 pm
Ok, all that looks better to me. The svn ffmpeg is installed in /usr/local, it has the --enable-libx264 and --enable-libfaac, there is no ffmpeg anywhere else, and ffmpeg is finding all the latest libav* libraries in /usr/local and also is finding version 78 of libx264.

EDIT: I notice your ffmpeg isn't using libavfilter or libpostproc, but my ffmpeg does. Not sure if it's relevant to your problem, but I mention it just in case.


Now we need to know if mlt is finding the correct libraries too, because kdenlive uses mlt and mlt in turn uses the libav* libraries and the libx264 library. What is the output of all of this:

ls /usr/lib/libmlt*
ls /usr/lib/mlt/
ldd /usr/lib/mlt/libmltavformat.so

ls /usr/local/lib/libmlt*
ls /usr/local/lib/mlt/
ldd /usr/local/lib/mlt/libmltavformat.so


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient