View previous topic :: View next topic |
Author |
Message |
CrazyTerabyte Apprentice
Joined: 30 Dec 2004 Posts: 193
|
Posted: Mon Nov 28, 2005 1:23 am Post subject: How to make mplayer play realmedia files, without realplayer |
|
|
[EDIT:] Solved issue. I did not remove any message to keep them as reference. If you just want to do it, go directly to these messages: 2921946 2922100 3277364. Basically, I used a portage overlay to modify the ebuild.[/EDIT]
http://gentoo-wiki.com/HOWTO_Emerge_MPlayer#Codecs
This page says how to install mplayer with support to realmedia files, but without realplayer dependence. I followed those instructions, but I yet cannot play realmedia files.
Code: | $ egrep '(mplayer|codecs|real)' /etc/portage/package.use
media-video/mplayer -samba win32codecs xv cdparanoia -real -xmms
media-libs/win32codecs quicktime real |
Code: | MPlayer 1.0pre7try2-3.3.5-20050130 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE
85 audio & 196 video codecs
Opening joystick device /dev/input/js0
Playing somefile.rm.
REAL file format detected.
Not audio/video stream or unsupported!
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
Stream mimetype: application/x-pn-imagemap
Stream mimetype: logical-fileinfo
VIDEO: [RV30] 320x256 24bpp 24.000 fps 0.0 kbps ( 0.0 kbyte/s)
Clip info:
name: Somecompany Production
author: Somecompany
copyright: Copyright 2004
==========================================================================
Requested audio codec family [ra10cook] (afm=realaud) not available.
Enable it at compilation.
Requested audio codec family [racook] (afm=realaud) not available.
Enable it at compilation.
Requested audio codec family [racookwin] (afm=realaud) not available.
Enable it at compilation.
Requested audio codec family [racookmac] (afm=realaud) not available.
Enable it at compilation.
Cannot find codec for audio format 0x6B6F6F63.
Read DOCS/HTML/en/codecs.html!
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
xscreensaver_disable: xscreensaver wid=4194305.
==========================================================================
Requested video codec family [rv3040] (vfm=realvid) not available.
Enable it at compilation.
Requested video codec family [rv30] (vfm=realvid) not available.
Enable it at compilation.
Requested video codec family [rv30win] (vfm=realvid) not available.
Enable it at compilation.
Requested video codec family [rv30mac] (vfm=realvid) not available.
Enable it at compilation.
Cannot find codec matching selected -vo and video format 0x30335652.
Read DOCS/HTML/en/codecs.html!
==========================================================================
Exiting... (End of file) |
If this matters, on my old Slack system I could play realmedia files without Real Player, so I know this is possible.
I guess the mplayer ebuild passes "--disable-real" or something like that to ./configure.
Last edited by CrazyTerabyte on Mon Apr 24, 2006 7:00 am; edited 3 times in total |
|
Back to top |
|
|
Aries-Belgium l33t
Joined: 08 Jul 2005 Posts: 730 Location: Willebroek, Belgium
|
Posted: Mon Nov 28, 2005 1:44 am Post subject: |
|
|
Try:
Code: | USE="real" emerge mplayer win32codecs |
|
|
Back to top |
|
|
CrazyTerabyte Apprentice
Joined: 30 Dec 2004 Posts: 193
|
Posted: Mon Nov 28, 2005 1:51 am Post subject: |
|
|
Code: | # USE=real emerge -pv mplayer win32codecs
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] media-video/realplayer-10.0.6 +nsplugin 6,487 kB
[ebuild R ] media-video/mplayer-1.0_pre7-r1 -3dfx -3dnow -3dnowext +X +aac -aalib +alsa (-altivec) +arts -bidi -bl +cdparanoia -cpudetection -custom-cflags -debug -dga -directfb -doc +dts +dv -dvb +dvd +dvdread -edl +encode +esd -fbcon -ggi +gif +gtk -i8x0 +ipv6 -jack +joystick +jpeg -libcaca -lirc +live -lzo +mad +matroska -matrox +mmx -mmxext -mythtv -nas +nls +nvidia +opengl -oss +png +real* -rtc -samba +sdl +sse -sse2 -svga -tga +theora +truetype -v4l -v4l2 +vorbis +win32codecs +xanim +xinerama -xmms +xv +xvid -xvmc 0 kB
[ebuild R ] media-libs/win32codecs-20050216 +quicktime +real 0 kB
Total size of downloads: 6,487 kB |
Look, it tries to install realplayer! And that's exactly what I don't want. |
|
Back to top |
|
|
Xaid Guru
Joined: 30 Oct 2004 Posts: 474 Location: Edmonton / Alberta
|
Posted: Mon Nov 28, 2005 1:55 am Post subject: |
|
|
CrazyTerabyte,
A few months ago, you didn't need to install realplayer to get the codecs, but that changed since I think using the codecs that ship with realplayer is the preferred way now (not sure if it was a security issue with the old codecs or if it was something else).
You can probably put "media-video/realplayer" in package.provided and get the real codecs manually and dump them in /usr/lib/win32 or whereever mplayer expects them to be then remerge mplayer and win32codecs with the "real" USE flag, but I'm not sure how well that will work.
I personally disabled "real" altogther a few months ago since I didn't want to have realplayer installed.
Edit: fixed typos. |
|
Back to top |
|
|
CrazyTerabyte Apprentice
Joined: 30 Dec 2004 Posts: 193
|
Posted: Thu Dec 01, 2005 11:14 pm Post subject: |
|
|
Ok, now it is time to do a portage overlay. The basic instructions you can read at HOWTO Create an Updated Ebuild, from Gentoo-wiki. Here is how I've done it: Code: | # mkdir -p /gentoo/overlay/media-video/mplayer
# cd /gentoo/overlay/media-video/mplayer
# cp /gentoo/portage/media-video/mplayer/mplayer-1.0_pre7-r1.ebuild .
# mkdir files
# cp /gentoo/portage/media-video/mplayer/files/* files/
# vim mplayer-1.0_pre7-r1.ebuild
edited the ebuild, the patch is below
# vim /etc/portage/package.use
to set "real" as an USE flag for mplayer
# ebuild $PWD/mplayer-1.0_pre7-r1.ebuild digest
# emerge -av mplayer |
The patch is below: Code: | diff /gentoo/{portage,overlay}/media-video/mplayer/mplayer-1.0_pre7-r1.ebuild
36d35
< x86? ( real? ( >=media-video/realplayer-10.0.3 ) )
88,93d86
< pkg_setup() {
< if use real && use x86; then
< REALLIBDIR="/opt/RealPlayer/codecs"
< fi
< }
<
282c275
< use x86 && myconf="${myconf} $(use_enable real)"
---
> myconf="${myconf} $(use_enable real)"
424d416
< --with-reallibdir=${REALLIBDIR} \ |
I don't know the correct way to make a patch, so maybe you would prefer to edit the ebuild by hand. Now let me wait mplayer compile, and soon I will tell if it works. |
|
Back to top |
|
|
CrazyTerabyte Apprentice
Joined: 30 Dec 2004 Posts: 193
|
Posted: Thu Dec 01, 2005 11:50 pm Post subject: |
|
|
Ok, it didn't work, yet. But now it failed with a different error message. This time, it could not find the codec, but the realplayer support was compiled. This is a progress. Look at mplayer output: Code: | MPlayer 1.0pre7try2-3.3.6 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE
85 audio & 196 video codecs
Opening joystick device /dev/input/js0
Playing somefile.rm.
Cache fill: 0.00% (0 bytes) REAL file format detected.
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
Stream mimetype: application/x-pn-imagemap
Not audio/video stream or unsupported!
Stream mimetype: logical-fileinfo
VIDEO: [RV30] 320x256 24bpp 24.000 fps 0.0 kbps ( 0.0 kbyte/s)
Clip info:
name: Somecompany Production
author: Somecompany
copyright: Copyright 2004
==========================================================================
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj '/cook.so'
Error: /cook.so: cannot open shared object file: No such file or directory
opening win32 dll 'cook.so'
Win32 LoadLibrary failed to load: cook.so, /usr/lib/win32/cook.so, /usr/local/lib/win32/cook.so
Error loading dll
ERROR: Could not open required DirectShow codec cook.so.
Read the RealAudio section of the DOCS!
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj '/cook.so.6.0'
Error: /cook.so.6.0: cannot open shared object file: No such file or directory
opening win32 dll 'cook.so.6.0'
Win32 LoadLibrary failed to load: cook.so.6.0, /usr/lib/win32/cook.so.6.0, /usr/local/lib/win32/cook.so.6.0
Error loading dll
ERROR: Could not open required DirectShow codec cook.so.6.0.
Read the RealAudio section of the DOCS!
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [realaud] RealAudio decoder
opening win32 dll 'cook3260.dll'
Win32 LoadLibrary failed to load: cook3260.dll, /usr/lib/win32/cook3260.dll, /usr/local/lib/win32/cook3260.dll
Error loading dll
ERROR: Could not open required DirectShow codec cook3260.dll.
Read the RealAudio section of the DOCS!
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj '/cook.bundle/Contents/MacOS/cook'
Error: /cook.bundle/Contents/MacOS/cook: cannot open shared object file: No such file or directory
opening win32 dll 'cook.bundle/Contents/MacOS/cook'
Win32 LoadLibrary failed to load: cook.bundle/Contents/MacOS/cook, /usr/lib/win32/cook.bundle/Contents/MacOS/cook, /usr/local/lib/win32/cook.bundle/Contents/MacOS/cook
Error loading dll
ERROR: Could not open required DirectShow codec cook.bundle/Contents/MacOS/cook.
Read the RealAudio section of the DOCS!
ADecoder preinit failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x6B6F6F63.
Read DOCS/HTML/en/codecs.html!
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
xscreensaver_disable: xscreensaver wid=4195373.
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
opening shared obj '/drvc.so'
Error: /drvc.so: cannot open shared object file: No such file or directory
opening win32 dll 'drvc.so'
Win32 LoadLibrary failed to load: drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
Error loading dll
ERROR: Could not open required DirectShow codec drvc.so.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
opening shared obj '/drv3.so.6.0'
Error: /drv3.so.6.0: cannot open shared object file: No such file or directory
opening win32 dll 'drv3.so.6.0'
Win32 LoadLibrary failed to load: drv3.so.6.0, /usr/lib/win32/drv3.so.6.0, /usr/local/lib/win32/drv3.so.6.0
Error loading dll
ERROR: Could not open required DirectShow codec drv3.so.6.0.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
opening win32 dll 'drv33260.dll'
Win32 LoadLibrary failed to load: drv33260.dll, /usr/lib/win32/drv33260.dll, /usr/local/lib/win32/drv33260.dll
Error loading dll
ERROR: Could not open required DirectShow codec drv33260.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
opening shared obj '/drvc.bundle/Contents/MacOS/drvc'
Error: /drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
opening win32 dll 'drvc.bundle/Contents/MacOS/drvc'
Win32 LoadLibrary failed to load: drvc.bundle/Contents/MacOS/drvc, /usr/lib/win32/drvc.bundle/Contents/MacOS/drvc, /usr/local/lib/win32/drvc.bundle/Contents/MacOS/drvc
Error loading dll
ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x30335652.
Read DOCS/HTML/en/codecs.html!
==========================================================================
Exiting... (End of file) | I guess the compiled search path for realplayer is broken. I will continue testing and will post my results soon. |
|
Back to top |
|
|
CrazyTerabyte Apprentice
Joined: 30 Dec 2004 Posts: 193
|
Posted: Fri Dec 02, 2005 12:48 am Post subject: |
|
|
Solved it. Mplayer could not automatically discover the real codecs path, and was looking for them at /. Of course it could not work. Here is the updated patch:
http://denilsonsa.selfip.org/~denilson/gentoo/mplayer-1.0_pre7-r1_no_realplayer.patch
http://denilsonsa.selfip.org/~denilson/gentoo/mplayer-1.0_pre7-r1.ebuild - The already modified ebuild, no patching needed.
Code: | $ diff -Naurb /gentoo/{portage,overlay}/media-video/mplayer/mplayer-1.0_pre7-r1.ebuild
--- /gentoo/portage/media-video/mplayer/mplayer-1.0_pre7-r1.ebuild 2005-11-06 21:35:58.000000000 -0200
+++ /gentoo/overlay/media-video/mplayer/mplayer-1.0_pre7-r1.ebuild 2005-12-01 22:17:27.000000000 -0200
@@ -33,7 +33,6 @@
# 'encode' in USE for MEncoder.
RDEPEND="xvid? ( >=media-libs/xvid-0.9.0 )
win32codecs? ( >=media-libs/win32codecs-20040916 )
- x86? ( real? ( >=media-video/realplayer-10.0.3 ) )
aalib? ( media-libs/aalib )
alsa? ( media-libs/alsa-lib )
arts? ( kde-base/arts )
@@ -85,12 +84,6 @@
LICENSE="GPL-2"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
-pkg_setup() {
- if use real && use x86; then
- REALLIBDIR="/opt/RealPlayer/codecs"
- fi
-}
-
src_unpack() {
unpack ${MY_P}.tar.bz2 \
@@ -279,8 +272,11 @@
myconf="${myconf} $(use_enable theora)"
myconf="${myconf} $(use_enable xmms)"
myconf="${myconf} $(use_enable xvid)"
- use x86 && myconf="${myconf} $(use_enable real)"
myconf="${myconf} $(use_enable win32codecs win32)"
+ myconf="${myconf} $(use_enable real)"
+ if use real; then
+ myconf="${myconf} --with-reallibdir=/usr/lib/real"
+ fi
#############
# Video Output #
@@ -421,7 +417,7 @@
--enable-largefiles \
--enable-menu \
--enable-network --enable-ftp \
- --with-reallibdir=${REALLIBDIR} \
+ --with-reallibdir=/usr/lib/real \
--with-x11incdir=/usr/X11R6/include \
--disable-external-faad \
${myconf} || die |
Last edited by CrazyTerabyte on Mon Feb 20, 2006 12:53 pm; edited 4 times in total |
|
Back to top |
|
|
N-S n00b
Joined: 30 Oct 2005 Posts: 34
|
Posted: Thu Dec 29, 2005 9:30 am Post subject: Had to edit it manually since patch failed |
|
|
Couldn't patch the .ebuild so I edited it manually.
Then I followed the procedure you said.
Emerged fine and plays the .rm file I had here just fine.
Thank you very much.
Now I just have to get this converter script to work.
Trying https://forums.gentoo.org/viewtopic-p-2989590.html.
Wanted to try mkdvd (http://fredrik.hubbe.net/hacks/mkdvd.html), but Pike fails emerge. _________________ ___________________
There is No Substitute! |
|
Back to top |
|
|
CrazyTerabyte Apprentice
Joined: 30 Dec 2004 Posts: 193
|
Posted: Fri Dec 30, 2005 12:25 am Post subject: Re: Had to edit it manually since patch failed |
|
|
N-S wrote: | Couldn't patch the .ebuild so I edited it manually. |
Probably one issue with whitespaces when copy-n-paste from browser. Follow this link to get the patch file:
http://denilsonsa.selfip.org/~denilson/gentoo/mplayer-1.0_pre7-r1_no_realplayer.patch
Last edited by CrazyTerabyte on Mon Feb 20, 2006 12:53 pm; edited 1 time in total |
|
Back to top |
|
|
N-S n00b
Joined: 30 Oct 2005 Posts: 34
|
Posted: Fri Dec 30, 2005 4:46 am Post subject: Well, don't need the patch now |
|
|
Thank you, but not necessary now.
I said I edited manually and it installed fine.
But so far I haven't made the anymov to dvd script work yet and I have no idea how to make Pike install.
I'l do a search here for Pike and see if anyone has managed to get it to emerge. _________________ ___________________
There is No Substitute! |
|
Back to top |
|
|
CrazyTerabyte Apprentice
Joined: 30 Dec 2004 Posts: 193
|
Posted: Sat Dec 31, 2005 7:20 pm Post subject: Re: Well, don't need the patch now |
|
|
N-S wrote: | Thank you, but not necessary now.
I said I edited manually and it installed fine. |
I've added the link for future readers. (hum, maybe I should upload the entire ebuild... Doing it!)
N-S wrote: | But so far I haven't made the anymov to dvd script work yet and I have no idea how to make Pike install.
I'l do a search here for Pike and see if anyone has managed to get it to emerge. |
Can't help you with these. |
|
Back to top |
|
|
piraeus n00b
Joined: 18 Oct 2003 Posts: 41
|
Posted: Sun Apr 02, 2006 9:08 pm Post subject: works w/ mplayer-1.0.20060217.ebuild |
|
|
To let you know, the same procedure worked for me w/ mplayer-1.0.20060217.ebuild
I tried it first w/ mplayer-1.0.20060302.ebuild and this failed with (AFAIK) unrelated error:
Code: |
cc -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -D__STDC_LIMIT_MACROS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_AV_CONFIG_H -I.. -I/var/tmp/portage/mplayer-1.0.20060302/work/mplayer-1.0.20060302/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/dsputil_mmx.o i386/dsputil_mmx.c
In file included from i386/dsputil_mmx.c:2492:
i386/h264dsp_mmx.c:49:1: warning: "SBUTTERFLY" redefined
i386/dsputil_mmx.c:1525:1: warning: this is the location of the previous definition
i386/h264dsp_mmx.c:1147:1: warning: "PUT_OP" redefined
i386/dsputil_mmx.c:2377:1: warning: this is the location of the previous definition
i386/dsputil_mmx.c: In function `transpose4x4':
i386/dsputil_mmx.c:621: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
make[1]: *** [i386/dsputil_mmx.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0.20060302/work/mplayer-1.0.20060302/libavcodec'
make: *** [libavcodec/libavcodec.a] Error 2
!!! ERROR: media-video/mplayer-1.0.20060302 failed.
!!! Function src_compile, Line 481, Exitcode 2
|
_________________ Registered Linux User #226020 |
|
Back to top |
|
|
CrazyTerabyte Apprentice
Joined: 30 Dec 2004 Posts: 193
|
Posted: Mon Apr 24, 2006 6:59 am Post subject: mplayer-1.0.20060415_no_realplayer.patch |
|
|
New patch (I haven't emerged it yet, but should work):
mplayer-1.0.20060415_no_realplayer.patch
Code: | --- /gentoo/portage/media-video/mplayer/mplayer-1.0.20060415.ebuild 2006-04-22 20:06:37.000000000 -0300
+++ /gentoo/overlay/media-video/mplayer/mplayer-1.0.20060415.ebuild 2006-04-24 03:50:52.000000000 -0300
@@ -30,7 +30,6 @@
# 'encode' in USE for MEncoder.
RDEPEND="xvid? ( >=media-libs/xvid-0.9.0 )
win32codecs? ( >=media-libs/win32codecs-20040916 )
- x86? ( real? ( >=media-video/realplayer-10.0.3 ) )
aalib? ( media-libs/aalib )
alsa? ( media-libs/alsa-lib )
arts? ( kde-base/arts )
@@ -137,7 +136,7 @@
pkg_setup() {
if use real && use x86; then
- REALLIBDIR="/opt/RealPlayer/codecs"
+ REALLIBDIR="/usr/lib/real"
fi
}
|
|
|
Back to top |
|
|
/albert n00b
Joined: 17 Jan 2005 Posts: 58
|
Posted: Wed Aug 09, 2006 3:05 pm Post subject: |
|
|
I am a ppc user and I want use the essential-ppc codec-package ( found on http://www1.mplayerhq.hu/design7/codecs.html ), which contains the real video codec I missed.
So I have to correct my mplayer ebuild, too.
This is my little modification:
Code: |
...
pkg_setup() {
if use real && use x86; then
REALLIBDIR="/opt/RealPlayer/codecs"
else
REALLIBDIR="/usr/local/lib/codecs"
fi
}
...
|
I think, the official ebuild should be corrected, because it is silly, that else mplayer searches the missing real video codec in my root-dir.
For you x86 guys, who don't want to use the official real video codecs provided by realplayer, I think, you should disable the real-USE-flag and think of this USE-flag as an USE-flag for the official real video codec by realplayer.
I am also missing an ebuild or an additional USE-flag for this essential-ppc codec-package. Perhaps there should be a new USE-flag like 'essentialpak' for mplayer. Why do I have to install this manualy? I see nor reason for not providing a USE-flag like this. It was a wasted time to find out, that mplayer really searches this missing codecs in / and there was no possibility to let mplayer searches elsewhere but to rebuild it (why are search-pathes are hardcoded in mplayer?). It costs time to read the ebuild and changed it and to download manual this essential-ppc codec (I first searched for a reason, why it is not in the ebuild, but I don't find any).
Anyway, everything works fine now. But whenever I want to reemerge mplayer after a new sync, I have to change the ebuild again. An overlay for this bug (yes, it is a bug) is also not the right way.
I hope this will be changed. |
|
Back to top |
|
|
nickel Apprentice
Joined: 21 Oct 2005 Posts: 192 Location: Germany
|
Posted: Mon Nov 20, 2006 11:53 pm Post subject: |
|
|
i got a lot of headaches, trying to set that up for 1.0pre8-r1. But i did it!
Long story short, I've only to edit the ebuild to point to the right dir and comment out the part with real in DEPEND.
I want to say thx for such a great help! |
|
Back to top |
|
|
|
|
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
|
|