Ceska televize a dalsi subjekty se nas rozhodli obstastnovat svymi streamy v RM - neboli kodeky RV30 a RV40, ktere normalne umi prehravat pouze RealPlayer 11 nebo HelixPlayer 11.
Protoze spousta lidi by tyto streamy chce prehravat i ve Fedore, je potreba udelat neco malo navic. Tento postup je hodne nizkourovnovy, i proto aby ctenar pochopil co se za tim skryva.
Podivame-li se napr. na stranku poradu:
Fedora pri pokusu o otevreni real pomaleho streamu pouzije totem vlozeny do stranky. Ten ale vypise informaci o licencovanych codecich a obraz neprehraje.
Pokud klikneme na obrazek muzeme z nej kopirovat adresu odkazu. Ta vypada takto:
‘http://ct1streaming.visual.cz/new/rams/SatelitCT2-151008.ram’
To je ve skutecnosti jen soubor s textem = odkazem na RTSP stream, ktery muzeme stahnout wgetem:
“rtsp://ct1.server.streaming.visual.cz/ct/SatelitCT2-151008.rm?start=00:06:36”
Tim jsme se dostali ke skutecnemu streamu.
Nyni prichazi problem jak jej prehrat. Ve vychozi instalaci Fedory zadny prehravac, ktery ovlada tyto kodeky neni. Podle informaci ze stranek ffmep a http://www.mplayerhq.hu/DOCS/codecs-status.html#vc by jiz obe tyto platformy meli byt schopny jej prehravat.
Problem ovsem nastane na dnes uz pomerne rozsirene 64b platforme, kde po pridani do /usr/lib64 dostaneme tuto chybu:
Error: /usr/lib64/codecs/drvc.so: wrong ELF class: ELFCLASS32
To lze vyresit snadno tak, ze se stahne balik kodeku pro 64b http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2
a vsechno to nakopirujeme do /usr/lib64/.
$ mplayer 'rtsp://ct1.server.streaming.visual.cz/ct/SatelitCT2-151008.rm?start=00:06:36'
MPlayer dev-SVN-r27514-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Mobile AMD Sempron(tm) Processor 3400+ (Family: 15, Model: 76, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing rtsp://ct1.server.streaming.visual.cz/ct/SatelitCT2-151008.rm?start=00:06:36.
Resolving ct1.server.streaming.visual.cz for AF_INET6...
Couldn't resolve name for AF_INET6: ct1.server.streaming.visual.cz
Resolving ct1.server.streaming.visual.cz for AF_INET...
Connecting to server ct1.server.streaming.visual.cz[212.67.79.15]: 554...
Cache size set to 640 KBytes
Cache fill: 18.75% (122880 bytes)
REAL file format detected.
Stream description: video/x-pn-multirate-realvideo logical stream
Stream mimetype: video/x-pn-realvideo
[real] Video stream found, -vid 0
Stream description: audio/x-pn-multirate-realaudio logical stream
Stream mimetype: audio/x-pn-realaudio
[real] Audio stream found, -aid 1
VIDEO: [RV30] 192x144 24bpp 20.000 fps 0.0 kbps ( 0.0 kbyte/s)
Clip info:
name: Satelity
author: Ceska televize
copyright: 2008
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/lib64/codecs/drvc.so: cannot open shared object file: No such file or directory
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
ERROR: Could not open required DirectShow codec drvc.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/lib64/codecs/drv3.so.6.0: cannot open shared object file: No such file or directory
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
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
Error: /usr/lib64/codecs/drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
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!
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 22050 Hz, 1 ch, s16le, 16.2 kbit/4.59% (ratio: 2024->44100)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
==========================================================================
AO: [pulse] 22050Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 499.8 (08:19.7) of 2400.0 (40:00.0) 0.4% 16%
zvuk me bezi obraz me nebezi co stim ? predem diky za odpoved
Error: /usr/lib64/codecs/drvc.so: cannot open shared object file: No such file or directory
Error: /usr/lib64/codecs/drv3.so.6.0: cannot open shared object file: No such file or directory
Skutecne jsou tam tyto soubory? A nemaji spatna prava?
“ls -la /usr/lib64/codecs/”
Error: /usr/lib64/codecs/drvc.so: cannot open
shared object file: No such file or directory
Error: /usr/lib64/codecs/drv3.so.6.0: cannot open
shared object file: No such file or directory
Skutecne jsou tam tyto soubory? A nemaji spatna
prava?
“ls -la /usr/lib64/codecs/”
prvni tam je, druhy tam neni protoze se nenachazi vubec v tom archivu pro 64b
prava jsou tyto :
Ja jsem vse vyresil nainstalovanim plug-inu mediaplayerconnectivity do Firefoxu, ktery ve spojeni s VLC media playerem zatim prehral vse, na co jsem narazil.