Multicore x264 not working

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Re: Multicore x264 not working

Postby Ashmodai » Sun Feb 01, 2009 6:52 pm

Just tried to follow the tutorial and I cannot get mencoder to compile anymore :
libmpcodecs/vd_ffmpeg.c:1053: error: 'struct xvmc_render_state' has no member named 'state'
make: *** [libmpcodecs/vd_ffmpeg.o] Error 1

ffpmpeg and x264 are fine. Any idea what I am missing (I am on 8.04) ?
Ashmodai
 
Posts: 23
Joined: Mon Jan 19, 2009 9:05 am

Re: Multicore x264 not working

Postby vmlinuz » Sun Feb 01, 2009 6:56 pm

you should find a line before telling .... directory/file.h : file or directory not found
can you post it ?
CPU Intel Q9550 & RAM 4GB Lan : <100Mb/s wired> Router <100Mb/s> <CPL 200Mb/s @ 160Mb/s >=< 100Mb/s> PS3
old config til Feb 22th : Athlon x64 4200+ oc@2.6Gh RAM 4Gb
vmlinuz
 
Posts: 35
Joined: Mon Jan 19, 2009 10:25 am

Re: Multicore x264 not working

Postby Ashmodai » Sun Feb 01, 2009 11:19 pm

Very good guess !!!

Here is the complete result :

Code: Select all
cc -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.   -I/usr/include/SDL  -D_REENTRANT -Ilibdvdread4   -I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3   -Ilibdvdnav   -c -o libmpcodecs/vd_ffmpeg.o libmpcodecs/vd_ffmpeg.c
In file included from libmpcodecs/vd_ffmpeg.c:27:
./libavcodec/avcodec.h:3127:5: warning: "EINVAL" is not defined
In file included from libmpcodecs/vd_ffmpeg.c:30:
./xvmc_render.h:27:31: error: X11/extensions/Xv.h: No such file or directory
./xvmc_render.h:28:34: error: X11/extensions/Xvlib.h: No such file or directory
./xvmc_render.h:29:36: error: X11/extensions/XvMClib.h: No such file or directory
In file included from libmpcodecs/vd_ffmpeg.c:30:
./xvmc_render.h:46: error: expected specifier-qualifier-list before 'XvMCMacroBlock'
libmpcodecs/vd_ffmpeg.c: In function 'init':
libmpcodecs/vd_ffmpeg.c:267: warning: assignment from incompatible pointer type
libmpcodecs/vd_ffmpeg.c:391: warning: 'AVPaletteControl' is deprecated
libmpcodecs/vd_ffmpeg.c: In function 'get_buffer':
libmpcodecs/vd_ffmpeg.c:621: warning: assignment from incompatible pointer type
libmpcodecs/vd_ffmpeg.c: In function 'decode':
libmpcodecs/vd_ffmpeg.c:752: warning: assignment from incompatible pointer type
libmpcodecs/vd_ffmpeg.c:767: warning: pointer of type 'void *' used in arithmetic
libmpcodecs/vd_ffmpeg.c:775: warning: pointer of type 'void *' used in arithmetic
libmpcodecs/vd_ffmpeg.c: In function 'get_format':
libmpcodecs/vd_ffmpeg.c:923: warning: assignment from incompatible pointer type
libmpcodecs/vd_ffmpeg.c: In function 'mc_get_buffer':
libmpcodecs/vd_ffmpeg.c:953: warning: comparison of distinct pointer types lacks a cast
libmpcodecs/vd_ffmpeg.c:1026: error: 'struct xvmc_render_state' has no member named 'state'
libmpcodecs/vd_ffmpeg.c: In function 'mc_release_buffer':
libmpcodecs/vd_ffmpeg.c:1053: error: 'struct xvmc_render_state' has no member named 'state'
make: *** [libmpcodecs/vd_ffmpeg.o] Error 1
Ashmodai
 
Posts: 23
Joined: Mon Jan 19, 2009 9:05 am

Re: Multicore x264 not working

Postby Ashmodai » Sun Feb 01, 2009 11:30 pm

Thanks to your suggestion I found out that I was missing two libs :)
libxvmc-dev
libxv-dev

After that it worked fine :)
Thanks for your help !
Ashmodai
 
Posts: 23
Joined: Mon Jan 19, 2009 9:05 am

Re: Multicore x264 not working

Postby vmlinuz » Sun Feb 01, 2009 11:49 pm

Some headers file are missing.
They come from X11 dev files.
Check again the "get neeeded lib dev" part in howto, you need to copy past all.

or Copy /past this line :

apt-get install em8300-headers gawk gettext html2text intltool-debian \
ladspa-sdk libaa1-dev libartsc0 libartsc0-dev libasound2-dev libatk1.0-dev libaudio-dev \
libaudio2 libaudiofile-dev libavahi-client-dev libavahi-common-dev libcaca-dev \
libcairo2-dev libcdparanoia0-dev libcucul-dev libdbus-1-dev libdbus-glib-1-dev \
libdirectfb-dev libdirectfb-extra libdts-dev libdv4-dev libenca-dev libenca0 \
libesd0-dev libexpat1-dev libfaac-dev libfaac0 libfontconfig1-dev libfreebob0 \
libfreetype6-dev libfribidi-dev libggi-target-x libggi2 libggi2-dev libggimisc2 \
libggimisc2-dev libgif-dev libgii1 libgii1-dev libgii1-target-x libgl1-mesa-dev \
libglib2.0-dev libglide2 libglu1-mesa-dev libglu1-xorg-dev libgtk2.0-dev libice-dev \
libjack-dev libjack0 libjpeg62-dev liblzo-dev liblzo1 liblzo2-2 liblzo2-dev libmad0 \
libmad0-dev libmail-sendmail-perl libmp3lame-dev libmp3lame0 libmpcdec-dev libmpcdec3 \
libncurses5-dev libogg-dev libopenal-dev libopenal1 libpango1.0-dev libpixman-1-dev \
libpng12-dev libpopt-dev libpthread-stubs0 libpthread-stubs0-dev libpulse-dev \
libpulse-mainloop-glib0 libsdl1.2-dev libslang2-dev libsm-dev libsmbclient-dev \
libspeex-dev libsvga1 libsvga1-dev libsys-hostname-long-perl libsysfs-dev \
libtheora-dev libtwolame-dev libtwolame0 libvorbis-dev libx11-dev libxau-dev \
libxcb-render-util0-dev libxcb-render0-dev libxcb-xlib0-dev libxcb1-dev \
libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev \
libxft-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev libxt-dev libxv-dev \
libxvidcore4 libxvidcore4-dev libxvmc-dev libxvmc1 libxxf86dga-dev libxxf86vm-dev \
mesa-common-dev po-debconf sharutils x11proto-composite-dev x11proto-core-dev \
x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev \
x11proto-randr-dev x11proto-render-dev x11proto-video-dev x11proto-xext-dev \
x11proto-xf86dga-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev \
xtrans-dev zlib1g-dev libschroedinger-dev libstdc++5 libfaad-dev \
libgsm1-dev libdc1394-22-dev libfaad-dev libsdl1.2-dev

edit : if you run it under 64bits, change libglide2 to libglide3

then press enter to continue
Then try again to compile mplayer/mencoder

Bye ;)
CPU Intel Q9550 & RAM 4GB Lan : <100Mb/s wired> Router <100Mb/s> <CPL 200Mb/s @ 160Mb/s >=< 100Mb/s> PS3
old config til Feb 22th : Athlon x64 4200+ oc@2.6Gh RAM 4Gb
vmlinuz
 
Posts: 35
Joined: Mon Jan 19, 2009 10:25 am

Re: Multicore x264 not working

Postby Ashmodai » Mon Feb 02, 2009 12:54 am

I want to cry :(

As I said I finally was able to compile it but I still get the corrupted data from my ps3 :((
What I can see in the debug log :
Code: Select all
[Thread-167] TRACE 00:50:34.085 Starting transcode of StressTest.1080p.DTS5.1.mkv
[mkfifo] INFO  00:50:34.142 Starting mkfifo --mode=777 /tmp/javaps3media/mencoder1233532234088
[mencoder] INFO  00:50:34.193 Starting mencoder -ss 0 -quiet /data/Movies/ps3/HD/StressTest.1080p.DTS5.1.mkv -quiet -quiet -oac lavc -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavdopts debug=0:threads=4 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=576:threads=4:keyint=1:vqscale=1:vqmin=1 -quiet -nofontconfig -subcp cp1252 -alang fre,eng -ass-color ffffff00 -ass-border-color 00000000 -ass-font-scale 1.0 -ass-force-style FontName=Arial,Outline=1,Shadow=1,MarginV=10 -slang fre,eng -quiet -quiet -quiet -quiet -ofps 24000/1001 -quiet -quiet -af lavcresample=48000 -srate 48000 -o /tmp/javaps3media/mencoder1233532234088
[mencoder] INFO  00:50:34.210 Reading pipe: /tmp/javaps3media/mencoder1233532234088
[mencoder] DEBUG 00:50:34.210 Opening file /tmp/javaps3media/mencoder1233532234088 for reading...
[Thread-167] DEBUG 00:50:40.243 Wrote on socket: Content-Type: video/mpeg
[Thread-167] DEBUG 00:50:40.243 Wrote on socket: Connection: keep-alive
[Thread-167] DEBUG 00:50:40.243 Wrote on socket: Server: Linux-amd64-2.6.24-23-server UPnP/1.0, PMS
[Thread-167] DEBUG 00:50:40.243 Wrote on socket: Content-Length: 0
[Thread-167] DEBUG 00:50:40.243 Wrote on socket:
[Thread-167] DEBUG 00:50:40.244 Close Connection


:(
Ashmodai
 
Posts: 23
Joined: Mon Jan 19, 2009 9:05 am

Re: Multicore x264 not working

Postby Ashmodai » Mon Feb 02, 2009 1:32 am

I progress (or I think so). I tried to run the mencoder command line manually as per the log file and I get this error :
MEncoder SVN-r28445-4.2.4 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (Family: 6, Model: 15, Stepping: 11)
-ass is not an MEncoder option

Exiting... (error parsing command line)

Strange isn't it ? Still something missing on my installation ???
vmlinuz : thanks a lot for your quite bit apt-get install libs command but many do not exist (at least not under these names) for ubuntu 8.04 ... still compilation went fine
Ashmodai
 
Posts: 23
Joined: Mon Jan 19, 2009 9:05 am

Re: Multicore x264 not working

Postby Ashmodai » Mon Feb 02, 2009 1:58 am

Ok. -ass seems to be linked to subtitles and by default mencoder does not support them and need a patch to do so ... I assume the svn version does not so I set subtitles to be definitively off in the GUI and finally I was able to see a movie working fine !!!

But ... now a lot of movies that were just playing fine don't play anymore ... no error message, nothing in the logs, just that the film never starts playing on the ps3 :(
Really strange : if I run mencoder manually with the same option it does work very nicelly and it keeps filling the tmp file (that does play using vlc so I assume it is valid ...
Ashmodai
 
Posts: 23
Joined: Mon Jan 19, 2009 9:05 am

Re: Multicore x264 not working

Postby lavvan » Sun Feb 15, 2009 3:51 pm

hi.

I went through the howto, but I cant seem to get both my cores running.

Just get corrupted file with the expert setting:
mencoder_decode=vcodec == h264 :: -mt -lavdopts fast : threads=2 (subtitles=disabled)
Attached debug file

If i run without this setting the movie plays, but just on 50-60% CPU ussage.

Any idea of whats wrong?
Attachments
debug.rar
(62.73 KiB) Downloaded 33 times
lavvan
 
Posts: 14
Joined: Mon Jan 19, 2009 12:26 am

Re: Multicore x264 not working

Postby shagrath » Sun Feb 15, 2009 3:56 pm

well that's the thing when running with no GUI, you mess with the settings, and make some mistakes :)
the ones you have set in mencoder_decode are not the good ones
you do not have to change anything if you are on linux (unlike Windows and OSX)
shagrath
Project Lead
 
Posts: 2667
Joined: Wed Jan 14, 2009 1:39 pm

Previous

Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 2 guests