Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
x264-svn and mplayer-cvs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Surye
n00b
n00b


Joined: 19 Jun 2003
Posts: 29

PostPosted: Thu Jul 28, 2005 8:01 pm    Post subject: x264-svn and mplayer-cvs Reply with quote

I really wanted to play with h.264, and like to use mplayer-cvs, so I decided to write up some ebuilds. The mplayer-cvs is modifed mplayer-1.0pre7 ebuild, and I wrote the x264-svn ebuid from scratch. Both compile on my amd64 system, and run inso far.

If you want to test it on x86, I don't know why it shouldn't work (it should work better, I can't get gpac to compile on my system, so no mp4 support for amd64).

YMMV! I can't stress enough how inexperienced I am, and I take no responsibility for any system issues.
With that disclaimer out of the way, know that it shouldn't do anything bad, it is sandboxed in portage, and shouldn't hurt to try if you want to play with either. The reason I have these two bundled in this fasion is if you enable pthreads or visualizations in x264, mplayer-1.0pre7 will not detect it on ./configure, but this has been added to CVS.

I'd love suggestions and comments. Mplayer-cvs installs the binary as mplayer, as I don't know how well it would sit next to a pre7 install, so don't have mplayer emerged. In fact, I'm going to depend on it not being there. Make sure x264 is in your useflags for mplayer-cvs if you want support (but it should act as a normal cvs build).

Another note, it's not exactly a cvs build, but it compiles the newest snapshot, so it's a cvs build within a day.

mplayer-cvs-0-r1
x264-svn-0.1
Back to top
View user's profile Send private message
ummon
n00b
n00b


Joined: 21 Dec 2003
Posts: 14

PostPosted: Wed Aug 03, 2005 5:18 pm    Post subject: Reply with quote

Thanks :D
Runs fine for me under x86.

I wrote myself an ebuild for the new gpac-0-4-0. You can try if this compiles on your amd64. It compiles fine for my x86. Due to an changed api in the new gpac, x264 with direct mp4 output will not compile at the moment (Aug 02, 2005) but MP4Box itself runs fine. The ebuild is a modified ebuild of the gpac-0.2.4-r1.ebuild in Bugzilla.

gpac-0.4.0 says in ist INSTALL that it requires:

* freetype2 from version 2.1.4 on.
* SpiderMonkey v1.5 RC 4 (libjs from mozilla - you will need gmake to compile this one). RC5 and RC6 can be used but need
changes in /include/gpac/setup.h or configure script
* libjpg version 6b
* Libpng version 1.2.5
* MAD version 0.15.1b (older versions should work)
* xvid version 1.0 (0.9.0 / .1 / .2 should also work)
* ffmpeg 25 June 2005 CVS version
* libogg 1.1, libvorbis 1.1 and libtheora 1.0 from Xiph.org
* faad2, version 2.0 or 2.1

All of them exept ffmpeg and spidermonkey are in the required versions in portage (at least for ~x86/x86).
The spidermonkey-1.5_rc4.ebuild was easy. I simply renamed one of the newer versions and corrected the download location.
The ffmeg-0.4.9_p20050728.ebuild is an modified ffmpeg-0.4.9_p20050226-r5.ebuild. This ffmpeg version gave me some problems. It only compiles for me without the ieee1394 useflag and I had to disable the gcc4 and libdir-pic patches.

Count the warning above about lack of inexperience etc. for me too. I hope this breaks nothing for anybody.
Back to top
View user's profile Send private message
Anthony.Jacob
n00b
n00b


Joined: 26 Oct 2004
Posts: 4
Location: FRANCE

PostPosted: Wed Aug 17, 2005 10:16 am    Post subject: Reply with quote

Thanks Surye and ummon for your ebuils.

I've an AMD Athlon(tm) 64 Processor 3200+ that turns as x86. I would install x264 and MPlayer to encode DVD in x264, so I've tried to use your ebuilds, but I've many problems.
If I use the option "mp4", x264-svn stops compiling due to an error :
Quote:

x264.c:45:28: gpac/m4_author.h : Aucun fichier ou répertoire de ce type
x264.c:1371: error: erreur de syntaxe before "M4File"
x264.c:1371: attention : pas de point virgule à la fin de la structure ou de l'union
x264.c:1372: attention : type defaults to `int' in declaration of `p_config'
x264.c:1372: attention : data definition has no type or storage class
x264.c:1373: error: erreur de syntaxe before '*' token
x264.c:1373: attention : type defaults to `int' in declaration of `p_sample'
x264.c:1373: attention : data definition has no type or storage class
x264.c:1382: error: erreur de syntaxe before '}' token
x264.c:1382: attention : type defaults to `int' in declaration of `mp4_t'
x264.c:1382: attention : data definition has no type or storage class
x264.c:1385: error: erreur de syntaxe before '*' token
x264.c: Dans la fonction « recompute_bitrate_mp4 »:
x264.c:1387: error: `u32' undeclared (first use in this function)
x264.c:1387: error: (Each undeclared identifier is reported only once
x264.c:1387: error: for each function it appears in.)
x264.c:1387: error: erreur de syntaxe before "i"
x264.c:1388: error: `u64' undeclared (first use in this function)
x264.c:1389: error: `Double' undeclared (first use in this function)
x264.c:1390: error: `ESDescriptor' undeclared (first use in this function)
x264.c:1390: error: `esd' undeclared (first use in this function)
x264.c:1392: attention : implicit declaration of function `M4_GetStreamDescriptor'
x264.c:1392: error: `p_file' undeclared (first use in this function)
x264.c:1397: error: `rate' undeclared (first use in this function)
x264.c:1397: error: `time_wnd' undeclared (first use in this function)
x264.c:1399: error: `timescale' undeclared (first use in this function)
x264.c:1399: attention : implicit declaration of function `M4_GetMediaTimeScale'x264.c:1400: error: `count' undeclared (first use in this function)
x264.c:1400: attention : implicit declaration of function `M4_GetSampleCount'
x264.c:1401: error: `i' undeclared (first use in this function)
x264.c:1402: error: `M4Sample' undeclared (first use in this function)
x264.c:1402: error: `samp' undeclared (first use in this function)
x264.c:1402: attention : implicit declaration of function `M4_GetSampleInfo'
x264.c:1402: error: `di' undeclared (first use in this function)
x264.c:1402: error: `offset' undeclared (first use in this function)
x264.c:1415: attention : implicit declaration of function `M4_DeleteSample'
x264.c:1418: error: `br' undeclared (first use in this function)
x264.c:1418: error: `s64' undeclared (first use in this function)
x264.c:1418: error: erreur de syntaxe before "M4_GetMediaDuration"
x264.c:1425: attention : implicit declaration of function `M4_ChangeStreamDescriptor'
x264.c:1426: attention : implicit declaration of function `OD_DeleteDescriptor'
x264.c:1426: error: `Descriptor' undeclared (first use in this function)
x264.c:1426: error: erreur de syntaxe before ')' token
x264.c: Dans la fonction « close_file_mp4 »:
x264.c:1432: error: `p_mp4' undeclared (first use in this function)
x264.c:1432: error: erreur de syntaxe before ')' token
x264.c:1438: attention : implicit declaration of function `AVC_DeleteConfig'
x264.c:1451: attention : implicit declaration of function `M4_SetMoviePLIndication'
x264.c:1451: error: `M4_PL_VISUAL' undeclared (first use in this function)
x264.c:1452: attention : implicit declaration of function `M4_SetStorageMode'
x264.c:1452: error: `M4_FLAT' undeclared (first use in this function)
x264.c:1453: attention : implicit declaration of function `M4_MovieClose'
x264.c: Dans la fonction « open_file_mp4 »:
x264.c:1463: error: `p_mp4' undeclared (first use in this function)
x264.c:1467: error: erreur de syntaxe before ')' token
x264.c:1471: attention : implicit declaration of function `M4_MovieOpen'
x264.c:1471: error: `M4_OPEN_WRITE' undeclared (first use in this function)
x264.c:1473: attention : implicit declaration of function `M4_NewSample'
x264.c:1479: attention : implicit declaration of function `M4_SetMovieVersionInfo'
x264.c:1479: error: `H264_AVC_File' undeclared (first use in this function)
x264.c: Dans la fonction « set_param_mp4 »:
x264.c:1489: error: `p_mp4' undeclared (first use in this function)
x264.c:1489: error: erreur de syntaxe before ')' token
x264.c:1491: attention : implicit declaration of function `M4_NewTrack'
x264.c:1491: error: `M4_VisualMediaType' undeclared (first use in this function)x264.c:1494: attention : implicit declaration of function `AVC_NewConfig'
x264.c:1495: attention : implicit declaration of function `M4_AVC_NewStreamConfig'
x264.c:1498: attention : implicit declaration of function `M4_SetVisualEntrySize'
x264.c: Dans la fonction « write_nalu_mp4 »:
x264.c:1518: error: `p_mp4' undeclared (first use in this function)
x264.c:1518: error: erreur de syntaxe before ')' token
x264.c:1519: error: `AVCConfigSlot' undeclared (first use in this function)
x264.c:1519: error: `p_slot' undeclared (first use in this function)
x264.c:1533: error: erreur de syntaxe before ')' token
x264.c:1537: attention : implicit declaration of function `ChainAddEntry'
x264.c:1547: error: erreur de syntaxe before ')' token
x264.c:1555: attention : implicit declaration of function `M4_AVC_UpdateStreamConfig'
x264.c: Dans la fonction « set_eop_mp4 »:
x264.c:1578: error: `p_mp4' undeclared (first use in this function)
x264.c:1578: error: erreur de syntaxe before ')' token
x264.c:1586: attention : implicit declaration of function `M4_AddSample'
make: *** [x264.o] Erreur 1
make: *** Attente des tâches non terminées....

!!! ERROR: media-video/x264-svn-0.1 failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


If I don't use the option "mp4", x264-svn compiles fine, but MPlayer stops compiling due to an error :
Quote:

cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4 -march=athlon-xp -mcpu=athlon-xp -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -std=gnu99 -I. -Inative -I.. -I../libmpdemux -I../loader -I../libavutil -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/includes -D_GNU_SOURCE -o vf_fspp.o vf_fspp.c
vf_fspp.c:48:28: ffmpeg/dsputil.h : Aucun fichier ou répertoire de ce type
vf_fspp.c:398: error: erreur de syntaxe before "DCTELEM"
vf_fspp.c:399: error: erreur de syntaxe before '*' token
vf_fspp.c:401: error: erreur de syntaxe before '*' token
vf_fspp.c: Dans la fonction « filter »:
vf_fspp.c:421: error: `DCTELEM' undeclared (first use in this function)
vf_fspp.c:421: error: (Each undeclared identifier is reported only once
vf_fspp.c:421: error: for each function it appears in.)
vf_fspp.c:421: error: `block' undeclared (first use in this function)
vf_fspp.c:421: error: erreur de syntaxe before ')' token
vf_fspp.c:422: error: `block3' undeclared (first use in this function)
vf_fspp.c:422: error: erreur de syntaxe before ')' token
vf_fspp.c: Hors de toute fonction :
vf_fspp.c:874: error: erreur de syntaxe before "DCTELEM"
vf_fspp.c: Dans la fonction « column_fidct_mmx »:
vf_fspp.c:1598: error: `data' undeclared (first use in this function)
vf_fspp.c:1598: error: `output' undeclared (first use in this function)
vf_fspp.c:1598: error: `cnt' undeclared (first use in this function)
vf_fspp.c:1599: error: `thr_adr' undeclared (first use in this function)
vf_fspp.c: Hors de toute fonction :
vf_fspp.c:1673: error: erreur de syntaxe before '*' token
vf_fspp.c: Dans la fonction « row_idct_mmx »:
vf_fspp.c:1866: error: `workspace' undeclared (first use in this function)
vf_fspp.c:1866: error: `output_adr' undeclared (first use in this function)
vf_fspp.c:1866: error: `cnt' undeclared (first use in this function)
vf_fspp.c:1867: error: `output_stride' undeclared (first use in this function)
vf_fspp.c: Hors de toute fonction :
vf_fspp.c:1939: error: erreur de syntaxe before '*' token
vf_fspp.c: Dans la fonction « row_fdct_mmx »:
vf_fspp.c:2110: error: `pixels' undeclared (first use in this function)
vf_fspp.c:2110: error: `data' undeclared (first use in this function)
vf_fspp.c:2110: error: `cnt' undeclared (first use in this function)
vf_fspp.c:2111: error: `line_size' undeclared (first use in this function)
make[1]: *** [vf_fspp.o] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/mplayer-cvs-0-r1/work/MPlayer-cvs/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] Erreur 2

!!! ERROR: media-video/mplayer-cvs-0-r1 failed.
!!! Function src_compile, Line 486, Exitcode 2
!!! Failed to build MPlayer!
!!! If you need support, post the topmost build error, NOT this status message.


I don't understand why I've this errors ... If anyone have an idea ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum