[mythtv] FFmpeg sync

John P Poet jppoet at gmail.com
Tue Oct 14 02:06:47 UTC 2008


On Sat, Oct 11, 2008 at 7:30 AM, Janne Grunau <janne-mythtv at grunau.be> wrote:
> Hi,
>
> I've updated the ffmpeg sync patch since all major regressions I know of
> should be fixed. There is still at least one H.264 decoder segfault
> which I can't reproduce and is not a regression.
>
> I intend to apply following patch monday or tuesday evening CEST.
>
> http://www.grunau.be/mythtv_ffmpeg_sync_15261_18670.diff.bz2
>
> the patch has to applied with "patch -p1" to a complete trunk
> checkout since it needs modify some plugins too.
>
> Janne

=====================================================================================
$ gcc --version
gcc (GCC) 4.3.0 20080404 (Red Hat 4.3.0-6)

make[2]: Entering directory `/home/john/src/Myth/081013/mythtv/libs/libavutil'
gcc -c -pipe -march=core2 -fomit-frame-pointer -O3 -pthread -Wall
-Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -funit-at-a-time -w -D_REENTRANT -DMMX -Di386
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_AV_CONFIG_H
-D_LARGEFILE_SOURCE -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I.. -I../..
-I. -o adler32.o adler32.c
In file included from common.h:86,
                 from adler32.c:24:
internal.h:294: error: static declaration of 'roundf' follows
non-static declaration
make[2]: *** [adler32.o] Error 1
make[2]: Leaving directory `/home/john/src/Myth/081013/mythtv/libs/libavutil'
make[1]: *** [sub-libavutil-make_default-ordered] Error 2
make[1]: Leaving directory `/home/john/src/Myth/081013/mythtv/libs'
make: *** [sub-libs-make_default-ordered] Error 2
=====================================================================================

If I disable the redefinition of roundf, it continues until:

=====================================================================================
gcc -c -pipe -march=core2 -fomit-frame-pointer -O3 -pthread -Wall
-Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -funit-at-a-time -w -D_REENTRANT -Di386
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_AV_CONFIG_H
-D_LARGEFILE_SOURCE -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I.. -I../..
-I. -o libdiracdec.o libdiracdec.c
libdiracdec.c:36:43: error: libdirac_decoder/dirac_parser.h: No such
file or directory
libdiracdec.c:42: error: expected specifier-qualifier-list before
'dirac_decoder_t'
libdiracdec.c:52: error: expected ')' before 'dirac_pix_fmt'
libdiracdec.c:66: error: expected ')' before '*' token
libdiracdec.c:78: error: expected ')' before '*' token
libdiracdec.c:175: error: expected ')' before '*' token
libdiracdec.c:185: error: expected ')' before '*' token
libdiracdec.c:197: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'libdirac_decoder'
make[2]: *** [libdiracdec.o] Error 1
make[2]: Leaving directory `/home/john/src/Myth/081013/mythtv/libs/libavcodec'
make[1]: *** [sub-libavcodec-make_default-ordered] Error 2
make[1]: Leaving directory `/home/john/src/Myth/081013/mythtv/libs'
make: *** [sub-libs-make_default-ordered] Error 2
=====================================================================================

=====================================================================================
$ ./configure  --enable-proc-opt  --prefix=/usr/local \
     --enable-ffmpeg-pthreads \
     --enable-opengl-video --enable-opengl-vsync \
     --enable-libfaad --enable-dvb \
     --disable-joystick-menu --disable-dbox2 \
     --disable-firewire --disable-xvmc --disable-xvmcw
# Basic Settings
Compile type              release
Compiler cache            symlink gcc
DistCC                    no
qmake                     /usr/bin/qmake-qt4

install prefix            /usr/local
runtime prefix            /usr/local
CPU                       x86_32 (model name    : Intel(R) Core(TM)2
Duo CPU     E8400  @ 3.00GHz)
big-endian                no
yasm                      yes
MMX enabled               yes
CMOV enabled              no
CMOV is fast              no

# Input Support
Joystick menu             no
lirc support              yes
Video4Linux sup.          yes
ivtv support              yes
HR-PVR support            yes
FireWire support          no
DVB support               yes [/usr/include]
DBox2 support             no
HDHomeRun support         yes
IPTV support              yes

# Sound Output Support
OSS support               yes
ALSA support              yes
aRts support              no
JACK support              no
libfftw3 support          no

# Video Output Support
x11 support               yes
xrandr support            yes
xv support                yes
XvMC support              no
XvMC VLD support          no
XvMC pro support          no
XvMC OpenGL sup.          no
XvMC libs                 -lviaXvMC
OpenGL video              yes
OpenGL vsync              yes
DirectFB                  no
Fribidi formatting        no

# Misc Features
multi threaded libavcodec yes
Frontend                  yes
Backend                   yes

# Bindings
bindings_perl             yes
bindings_python           yes

Creating libs/libmythdb/mythconfig.h and libs/libmythdb/mythconfig.mak

WARNING: When using --enable-proc-opt you must include the
         output of ./configure along with any bug report.
=====================================================================================


John
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


More information about the mythtv-dev mailing list