please enable x264 support

Bug #276697 reported by Reinhard Tartler
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ffmpeg-debian (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

ffmpeg is capable of linking against x264. in ubuntu this is not done

Revision history for this message
Reinhard Tartler (siretart) wrote :

ffmpeg could in theory link against x264, but we cannot do so in ubuntu,
because x264 is in multiverse whereas ffmpeg is in main.

if ffmpeg could load x264 at runtime instead of at load time then we
could enable it. promoting x264 is a no-go, IMO.

Changed in ffmpeg-debian:
status: New → Triaged
Revision history for this message
Reinhard Tartler (siretart) wrote :

okay, for intrepid I have replacement package that enable h263, mpeg2video, etc.
please see https://launchpad.net/~motumedia/+archive, add that ppa and install:

apt-get install libavcodec-unstripped-51

that should bring back the missing encoders.

feedback on them is VERY appreciated if we want to have this package in intrepid/multiverse.

Revision history for this message
Reinhard Tartler (siretart) wrote :

fixed in intrepid

Changed in ffmpeg-debian:
status: Triaged → Fix Released
Revision history for this message
m0rtal (alexander-nagorny) wrote :

Actually, I can't confirm that it's fixed.
I still have ffmpeg linked against x264, even though I have latest libavcodec-unstripped-51 - ffmpeg still complains about missing h264 codec.

Revision history for this message
m0rtal (alexander-nagorny) wrote :

"I still have ffmpeg linked against x264" - sorry I mean h264

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Could you paste here the commandline you're using? You are probably using an old codec name ('-ac h264' instead of '-ac libx264').

Revision history for this message
m0rtal (alexander-nagorny) wrote :

Command line is actually generated by dvd::rip, so it's not me :)
The problem is described here: https://bugs.launchpad.net/ubuntu/+source/transcode/+bug/276519, and I believe current thread was born because of it.

Revision history for this message
Yves Glodt (yglodt) wrote :

How is the situation for Karmic? I got an Android phone and would like to encode some of my videos to h264 to be able to play them back on it. Here is the commandline with the error about the missing codec:

yves@viking:~/Videos$ ffmpeg -i movie.avi -aspect 3:2 -s 480x320 -vcodec h264 -b 480k -r 23.976 -acodec aac -ab 96k -sameq -pass 1 outputfilename.mp4
FFmpeg version SVN-r19134-4:0.5+svn20090609-1ubuntu3, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --disable-encoder=h263 --disable-encoder=h263p --disable-encoder=mpeg2video --disable-encoder=mpeg4 --disable-encoder=msmpeg4v1 --disable-encoder=msmpeg4v2 --disable-encoder=msmpeg4v3 --extra-version=4:0.5+svn20090609-1ubuntu3 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil 49.15. 0 / 49.15. 0
  libavcodec 52.20. 0 / 52.20. 0
  libavformat 52.31. 0 / 52.31. 0
  libavdevice 52. 1. 0 / 52. 1. 0
  libavfilter 0. 4. 0 / 0. 4. 0
  libswscale 0. 7. 1 / 0. 7. 1
  libpostproc 51. 2. 0 / 51. 2. 0
  built on Jul 25 2009 08:34:10, gcc: 4.4.1
Input #0, avi, from 'movie.avi':
  Duration: 01:16:41.20, start: 0.000000, bitrate: 1232 kb/s
    Stream #0.0: Video: msmpeg4, yuv420p, 720x336, 25 tbr, 25 tbn, 25 tbc
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 96 kb/s
Unknown encoder 'h264'

Revision history for this message
Paul Gevers (paul-climbing) wrote : Re: [Bug 276697] Re: please enable x264 support

Yves Glodt wrote:
> How is the situation for Karmic? I got an Android phone and would like
> to encode some of my videos to h264 to be able to play them back on it.
> Here is the commandline with the error about the missing codec:

You probably haven't yet installed libavcodec-unstripped-52.

Paul

Revision history for this message
Yves Glodt (yglodt) wrote :

Hi Paul, I just installed it right now after reading your post. Unfortunately it does not change anything for ffmpeg. Or is it another executable which I am supposed to launch?

Revision history for this message
Paul Gevers (paul-climbing) wrote :

Yves Glodt wrote:
> Hi Paul, I just installed it right now after reading your post.
> Unfortunately it does not change anything for ffmpeg. Or is it another
> executable which I am supposed to launch?

Please also have a look at comment #6:

I think you also need to change the name of the codec to libx264...

Paul

Revision history for this message
Yves Glodt (yglodt) wrote :

Thanks Paul, this got me one step further.

I did however not manager what to specify to get aac encoding work, even I installed libfaad/libfaac, but this is not the scope of this BR.

here my commandline for the archives:

yves@viking:~/Videos$ ffmpeg -i Le\ Diner\ de\ Cons.avi -aspect 3:2 -s 480x320 -vcodec libx264 -b 480k -r 23.976 -acodec libmp3lame -ab 96k -sameq -pass 1 outputfilename.mp4

Revision history for this message
Arjen Lentz (arjen-lentz) wrote :

Note that this is handled by libavcodec-extra now (Ubuntu 17.04)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.