transcode: can't encode using ffmpeg's h264

Bug #276519 reported by Adrian Fita
This bug report is a duplicate of:  Bug #276697: please enable x264 support. Edit Remove
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
transcode (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: transcode

When I try to encode a DVD with DVD:RIP by choosing ffmpeg/h264 in transcode I receive the following error:

Output: transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV -31 ms | -31 ms
[transcode] auto-probing source /home/adrian/dvdrip-data/paysages_manufactures/vob/001/ (ok)
[transcode] V: import format | MPEG-2 (V=vob|A=vob)
[transcode] V: AV demux/sync | (1) sync AV at initial MPEG sequence
[transcode] V: import frame | 720x576 1.25:1 encoded @ 16:9
[transcode] V: new aspect ratio | 1024x576 1.78:1 (-X)
[transcode] V: clip frame (->) | 608x480
[transcode] V: bits/pixel | 0.143 (low)
[transcode] V: decoding fps,frc | 25.000,0
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import format | 0x2000 AC3 [48000,16,3] 192 kbps
[transcode] A: downmix | 3 channels -> 2 channels
[transcode] A: export format | 0x55 MPEG layer-3 [48000,16,2] 128 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame | 7680 (7680.000000)
[transcode] A: adjustment | 0@1000
[transcode] A: rescale stream | 2.083
[transcode] A: AV shift | -31 tc_memcpy: using sse for memcpy
[import_vob.so] v0.6.0 (2003-10-02) (video) MPEG-2 | (audio) MPEG/AC3/PCM | (subtitle)
Xv: NV17 Video Texture: ports 280 - 311
Xv: grabbed port 280
 Using Xv for display
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc1d.51.38.0 | (audio) MPEG/AC3/PCM
[export_ffmpeg.so] Could not find a FFMPEG codec for 'h264'.
[transcode] warning : (encoder.c) video export module error: init failed
ms [ 0 (A) | -31 ms ]
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
[transcode] V: video buffer | 10 @ 1024x576
[filter_smartyuv.so] options=threshold=10:Blend=1:diffmode=2:highq=1
[filter_smartyuv.so] (MMX) 0.1.4 (2003-10-13) Motion-adaptive deinterlacing
[filter_preview.so] v0.1.4 (2002-10-08) xv/sdl/gtk preview plugin
[filter_preview.so] options=xv
[filter_preview.so] preview window 608x480
[transcode] critical: failed to init encoder

I don't know if it's ffmpeg's ar transcode's fault, but ffmepg says that it has h264:

ffmpeg -formats | grep 264
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Sep 26 2008 12:56:27, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu1)
 DE h264 raw H264 video format
 D V DT h264

I'm using Ubuntu 8.04.1, transcode Version: 2:1.0.2-0.8ubuntu7.

Thank you.

Revision history for this message
Reinhard Tartler (siretart) wrote : Re: [Bug 276519] [NEW] transcode: can't encode using ffmpeg's h264

Adrian Fita <email address hidden> writes:

> Public bug reported:
>
> Binary package hint: transcode
>
> When I try to encode a DVD with DVD:RIP by choosing ffmpeg/h264 in
> transcode I receive the following error:
>
> I don't know if it's ffmpeg's ar transcode's fault, but ffmepg says that
> it has h264:
>
> ffmpeg -formats | grep 264
> FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
> configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
> libavutil version: 1d.49.3.0
> libavcodec version: 1d.51.38.0
> libavformat version: 1d.51.10.0
> built on Sep 26 2008 12:56:27, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu1)
> DE h264 raw H264 video format
> D V DT h264

FFmpeg does only have an h264 decoder, not an encoder. Encoding to h264
is only possible using x264 AFAIUI

transcode btw correctly notices that:

> [export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc1d.51.38.0 | (audio) MPEG/AC3/PCM
> [export_ffmpeg.so] Could not find a FFMPEG codec for 'h264'.
> [transcode] warning : (encoder.c) video export module error: init failed
> ms [ 0 (A) | -31 ms ]

Nothing to fix here, as far as I see.

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

Revision history for this message
Adrian Fita (afita) wrote :

I was using DVD::RIP and it was working just fine some time ago (didn't use it for a while). It has ffmpeg/h264 in the video codecs selection, but I seem I can't use them.

Has anything happen lately with dvd:RIP/transcode/ffmpeg?

Revision history for this message
Reinhard Tartler (siretart) wrote : Re: [Bug 276519] Re: transcode: can't encode using ffmpeg's h264

not that I knew.

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.

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

Revision history for this message
Adrian Fita (afita) wrote :

Ok. I understand. So this is not a bug.

Well then, you can close the bug report. I managed to encode to h264 using acidrip/mencoder.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in transcode (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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