LinHES Forums
http://forum.linhes.org/

R5.5 breaks h264 codec under transcode
http://forum.linhes.org/viewtopic.php?f=6&t=18706
Page 1 of 1

Author:  johnlatz [ Wed Aug 06, 2008 9:20 am ]
Post subject:  R5.5 breaks h264 codec under transcode

Hoping someone can help me out. When I attempt to transcode from VOB to H264 using the transcode program:
Code:
transcode -i filename.vob -I 5 -g 720x480 -f 0,1 -M 2 -y ffmpeg -F h264,null -A -N 0x2000 -o /dev/null --print_status 20 --color 0 -R 1,x264_2pass.log


I get the following error:

Code:
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source filename.vob (ok)
[transcode] V: import format    | MPEG    (V=null|A=null)
[transcode] V: AV demux/sync    | (2) initial MPEG sequence / enforce frame rate
[transcode] V: import frame     | disabled
[transcode] V: de-interlace     | (mode=5) interpolate scanlines / blend frames
[transcode] V: bits/pixel       | 0.000 (unknown)
[transcode] V: decoding fps,frc | 23.976,1
[transcode] V: multi-pass       | (mode=2) reading data (pass2) from x264_2pass.log
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import           | disabled
[transcode] A: export           | disabled
[transcode] V: encoding fps,frc | 23.976,1
[transcode] A: bytes per frame  | 0 (0.000000)
[transcode] A: adjustment       | 0@1000
[transcode] V: IA32/AMD64 accel | sse (sse 3dnowext 3dnow mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer     | 10 @ 0x0
[import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
[export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc51.11.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
[transcode] critical: failed to init encoder



I think the error is in the compliation of ffmpeg under R5.5:
Code:
sh-3.1$ ffmpeg -version
FFmpeg version SVN-r12391, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-libmp3lame --enable-libfaac --enable-liba52 --enable-libvorbis --enable-gpl --enable-shared --enable-libxvid --prefix=/usr --enable-libtheora --arch=i586 --cpu=i586 --enable-pthreads --enable-avfilter --enable-postproc
  libavutil version: 49.6.0
  libavcodec version: 51.51.0
  libavformat version: 52.9.0
  libavdevice version: 52.0.0
  libavfilter version: 0.0.0
  built on Apr 16 2008 05:24:04, gcc: 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)
FFmpeg SVN-r12391
libavutil   3212800
libavcodec  3355392
libavformat 3410176
libavdevice 3407872


Note, there is no --enable-libx264 flag set under this compilation.

Is anyone else having this issue?

Can I simply download the SVN for ffmpeg, build it using the right flags, and install it, or would I need to rebuild transcode as well with the new libraries?

Thx

Author:  yababom [ Wed Aug 20, 2008 11:29 am ]
Post subject: 

You can get x264 by enabling the debian-multimedia apt sources and installing ffmpeg from there. See the following page for some instructions on doing this: http://knoppmyth.net/phpBB2/viewtopic.p ... 0815315699

Author:  yababom [ Wed Aug 20, 2008 12:56 pm ]
Post subject: 

I went back and revisited the process. The following is a condensed version of what I posted in that thread:

Edit /etc/apt/sources/conf and uncomment the following lines:
Code:
deb http://www.debian-multimedia.org unstable main
deb-src http://www.debian-multimedia.org unstable main


Run the following commands as root:

Backup a couple configuration files:

Code:
cp /etc/ffserver.conf /etc/ffserver.R5.5-orig
cp /etc/mplayer/mplayer.conf /etc/mplayer/mplayer.R5.5-orig


Perform the upgrade--you have to upgrade ffmpeg, mplayer and transcode together (along with a few dependencies)

Code:
apt-get update
apt-get remove transcode mplayer
apt-get install ffmpeg libavcodec51 libavdevice52 libavformat52 libavutil49 transcode mplayer


You will be asked if you want to change configuration files for ffserver and mplayer. Press Y to accept and examine changes from backups made above if you find any problems.

Finally, check ffmpeg version to confirm change:
Code:
ffmpeg -v

Author:  neutron68 [ Sat May 23, 2009 4:54 pm ]
Post subject:  doesn't work any more

The directions from Aug.2008 don't work any more. There are dependency errors.

I found that if you change the sources to SID rather than UNSTABLE or even STABLE, the dependency problems are fixed.

/etc/apt/sources.list
Code:
deb http://www.debian-multimedia.org sid main
deb-src http://www.debian-multimedia.org sid main

then
Code:
apt-get update
apt-get remove transcode mplayer
apt-get install ffmpeg transcode mplayer

Author:  cliffsjunk [ Thu Jul 23, 2009 11:02 am ]
Post subject:  Re: doesn't work any more

neutron68 wrote:
The directions from Aug.2008 don't work any more. There are dependency errors.

I found that if you change the sources to SID rather than UNSTABLE or even STABLE, the dependency problems are fixed.

/etc/apt/sources.list
Code:
deb http://www.debian-multimedia.org sid main
deb-src http://www.debian-multimedia.org sid main

then
Code:
apt-get update
apt-get remove transcode mplayer
apt-get install ffmpeg transcode mplayer

That's a bit odd from my understanding of what sid, stable, and unstable mean in Debian-speak. I am looking for a what all the lines in R5.5 sources.list should look like now...

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/