Ceska televize a dalsi na RealPlayeru zalozene streamy


#1

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.

S ffmpeg se mi to nepodarilo, pro mplayer je potreba stahnout balik zakladnich essential kodeku http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
ten staci rozbalit do
/usr/lib/codecs
a spustit


mplayer 'rtsp://ct1.server.streaming.visual.cz/ct/SatelitCT2-151008.rm?start=00:06:36'

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/.


#2
$ 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 ? :slight_smile: predem diky za odpoved :wink:


#3

Doinstalovat ty kodeky - viz prvni prispevek.


#4

Kalidah napsal(a):

Doinstalovat ty kodeky - viz prvni prispevek.

ty tam mam verzi pro 64b co je hned nakonci navodu a nejde proto se ptam co me jeste chybi :wink:


#5

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/”


#6

Kalidah napsal(a):

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 :

drwxr-xr-x   2 root root  4096 25. lis 03.03 .
drwxr-xr-x 120 root root 65536 13. led 08.13 ..

kdyz to pustim pod pravy roota tak vysledek stejny :slight_smile:

predem diky za odpoved :wink:


#7

Asi uz vim kde mam chybu sem nejspis spatne pochopil navod, proto mam dva dotazy:

  1. musim asi nejspis stahnout i ty zakladni kodeky, nejen ty pro 64b ze ?
  2. mam extrahovat s archivu kompletni slozku nebo jen obsah slozky do prislusnych adresaru z navodu ? :slight_smile:

Predem diky za odpoved :wink:


#8

Pokud jsi pouzil muj prikaz a vysledek je to co jsi napsal, tak mas prazdny adresar. Mel bys tam mit tri kodeky: cook.so drvc.so a sipr.so.

Jestli tam maji byt i 32-bitove kodeky nevim. Tipuji, ze ne.


#9

32b nejsou potreba. Obsah slozky musi vypada takto:


# ls -la /usr/lib64/codecs/
total 23392
drwxr-xr-x   2 root root    4096 2009-01-07 21:29 .
drwxr-xr-x 169 root root  131072 2009-01-15 09:06 ..
-rw-r--r--   1 1003 1003   61952 2001-04-10 21:39 acelpdec.ax
-rw-r--r--   1 1003 1003   38912 2002-01-07 00:00 alf2cd.acm
-rw-r--r--   1 1003 1003  118784 2004-03-24 07:21 aslcodec_dshow.dll
-rw-r--r--   1 1003 1003   92160 2004-07-04 18:19 AvidQTAVUICodec.qtx
-rw-r--r--   1 1003 1003   76800 2001-04-18 11:54 BeHereiVideo.qtx
-rw-r--r--   1 1003 1003  312832 2002-04-21 01:58 CLRVIDDC.DLL
-rw-r--r--   1 1003 1003  135168 2002-04-21 01:52 clrviddd.dll
-rwxr-xr-x   1 1003 1003   65421 2006-12-02 10:01 cook.so
-rw-r--r--   1 1003 1003   81920 2002-04-21 11:22 CtWbJpg.DLL
-rw-r--r--   1 1003 1003   88464 1996-08-14 12:41 DECVW_32.DLL
-rwxr-xr-x   1 1003 1003  401169 2006-12-02 10:01 drvc.so
-rwxr-xr-x   1 1003 1003   69648 2002-05-22 19:05 dspr.so.6.0
-rw-r--r--   1 1003 1003  199680 2004-06-02 18:37 iac25_32.ax
-rw-r--r--   1 1003 1003  307200 2001-05-03 15:29 icmw_32.dll
-rw-r--r--   1 1003 1003  739328 1997-07-07 11:32 ir41_32.dll
-rw-r--r--   1 1003 1003  755200 2000-03-09 20:17 ir50_32.dll
-rw-r--r--   1 1003 1003  225280 2001-11-04 00:40 ivvideo.dll
-rw-r--r--   1 1003 1003   90112 2002-11-30 23:55 jp2avi.dll
-rw-r--r--   1 1003 1003  245760 2004-03-23 00:57 LCMW2.dll
-rw-r--r--   1 1003 1003   81920 2004-03-23 00:57 LCODCCMW2E.dll
-rw-r--r--   1 1003 1003   33040 2002-04-21 11:09 lhacm.acm
-rw-r--r--   1 1003 1003  204800 2004-11-14 22:02 lsvxdec.dll
-rw-r--r--   1 1003 1003  422912 2002-11-12 09:53 m3jp2k32.dll
-rw-r--r--   1 1003 1003   57344 2004-02-14 21:10 mi-sc4.acm
-rw-r--r--   1 1003 1003  167696 2001-06-26 17:53 msh261.drv
-rw-r--r--   1 1003 1003  424960 1999-04-15 20:10 msms001.vwp
-rw-r--r--   1 1003 1003   76112 2001-12-07 14:27 msscds32.ax
-rw-r--r--   1 1003 1003   49664 2002-04-21 03:30 nsrt2432.acm
-rw-r--r--   1 1003 1003   34304 1996-12-16 00:00 qpeg32.dll
-rw-r--r--   1 1003 1003  225280 2002-11-08 20:04 qtmlClient.dll
-rw-r--r--   1 1003 1003  563200 2003-05-27 12:42 QuickTimeEssentials.qtx
-rw-r--r--   1 1003 1003  904704 2003-05-27 12:42 QuickTimeInternetExtras.qtx
-rw-r--r--   1 1003 1003 4544512 2003-05-27 12:42 QuickTime.qts
-rw-rw-r--   1 1003 1003    1037 2006-09-24 16:25 README
-rw-r--r--   1 1003 1003  299008 2002-04-21 03:32 rt32dcmp.dll
-rwxr-xr-x   1 1003 1003   74376 2006-12-02 10:01 sipr.so
-rwxr-xr-x   1 1003 1003   62896 2002-05-22 19:05 sipr.so.6.0
-rwxr-xr-x   1 1003 1003   22472 2002-05-22 19:05 tokf.so.6.0
-rwxr-xr-x   1 1003 1003   59696 2002-05-22 19:05 tokr.so.6.0
-rw-r--r--   1 1003 1003  573440 2004-12-19 17:51 tvqdec.dll
-rw-r--r--   1 1003 1003   76800 1996-11-12 10:12 VDODEC32.dll
-rw-r--r--   1 1003 1003   82432 2003-08-18 18:52 vdowave.drv
-rwxrwxr-x   1 1003 1003  319480 2004-07-24 15:41 vid_3ivX.xa
-rw-r--r--   1 1003 1003  211968 2003-03-28 16:03 ViVD2.dll
-rw-r--r--   1 1003 1003  122880 2001-05-03 15:34 vivog723.acm
-rw-r--r--   1 1003 1003   56320 1999-04-15 16:10 voxmsdec.ax
-rw-r--r--   1 1003 1003  466944 2004-04-28 00:39 vp4vfw.dll
-rw-r--r--   1 1003 1003  438272 2004-02-12 09:39 vp6vfw.dll
-rw-r--r--   1 1003 1003  626688 2006-05-11 20:21 vp7vfw.dll
-rw-r--r--   1 1003 1003   49152 2003-04-10 00:49 vssh264core.dll
-rw-r--r--   1 1003 1003  421888 2003-04-10 00:49 vssh264dec.dll
-rw-r--r--   1 1003 1003   98304 2003-04-10 00:49 vssh264.dll
-rw-r--r--   1 1003 1003  454656 2005-05-03 16:23 vsshdsd.dll
-rw-r--r--   1 1003 1003  706696 2003-04-10 00:48 vsslight.dll
-rw-r--r--   1 1003 1003  167936 2003-04-10 00:48 vsswlt.dll
-rw-r--r--   1 1003 1003  409720 2002-10-29 17:03 wma9dmod.dll
-rw-r--r--   1 1003 1003  410216 2002-10-28 15:11 wmadmod.dll
-rw-r--r--   1 1003 1003  773368 2004-08-11 01:44 wmsdmod.dll
-rw-r--r--   1 1003 1003  486504 2004-04-28 00:43 wmspdmod.dll
-rw-r--r--   1 1003 1003  807032 2002-11-20 22:03 wmv9dmod.dll
-rw-r--r--   1 1003 1003 1181944 2004-10-18 09:33 wmvadvd.dll
-rw-r--r--   1 1003 1003  807528 2002-10-28 15:12 wmvdmod.dll
-rw-r--r--   1 1003 1003   93184 2004-07-03 00:36 wnvwinx.dll
-rw-r--r--   1 1003 1003 1184984 2006-05-20 17:16 wvc1dmod.dll
-rw-rw-r--   1 1003 1003   35840 2003-01-31 00:00 xanlib.dll

Tedy rozbalis do ni obsah celeho toho archivu s kodeky ktery stahnes.


#10

Ja jsem vse vyresil nainstalovanim plug-inu mediaplayerconnectivity do Firefoxu, ktery ve spojeni s VLC media playerem zatim prehral vse, na co jsem narazil.