RTP stream lejátszás

 ( athom | 2004. július 29., csütörtök - 14:35 )

Hozzászólás megjelenítési lehetőségek

A választott hozzászólás megjelenítési mód a „Beállítás” gombbal rögzíthető.

VLC-vel RTP streamet adok:
video: mpeg2
audio: mp3

vevő oldalon vlc veszi is királyul.

Próbálkoztam mplayer-el és Xine-al venni az RTP stream-et, de vagy nem megy egyáltalán, vagy néha elindul de csak a -nosound opcióval a videot látjuk.

Jó esetben ez a kimenet:
======================================================
./mplayer rtp://230.24.14.142:1234/
MPlayer dev-CVS-040729-12:11-3.3.4 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2392 MHz (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Failed to open /dev/rtc: No such device (it should be readable by the user.)
Using usleep() timing
Can't open input config file /root/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config

Playing rtp://230.24.14.142:1234/.
Connected to server: 230.24.14.142
Stream not seekable!
Stream not seekable!
TS file format detected.
DEMUX OPEN, AUDIO_ID: -2, VIDEO_ID: -1, SUBTITLE_ID: -1,
Stream not seekable!
PROBING UP TO 2000000, PROG: 0
VIDEO MPEG2(pid=69)...NO AUDIO! NO SUBS (yet)! PROGRAM N. 0
Opened TS demuxer, audio: ffffffff(pid -2), video: 10000002(pid 69)...POS=13724
VIDEO: MPEG2 640x480 (aspect 1) 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
Disabling DPMS
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 640 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 640x480 => 640x480 Planar YV12
SwScaler: using unscaled Planar YV12 -> BGR 16-bit special converter
RTP packet sequence error! Expected: 18526, received: 18545
V:5542.4 101 4% 5% 0.0% 0 0 0%

MPlayer interrupted by signal 2 in module: video_read_frame
Successfully enabled DPMS
======================================================
-- CTRL+C ---

Rossz esetben meg a fenti plussz ezek:

Playing rtp://230.24.14.142:1234/.
Connected to server: 230.24.14.142
Stream not seekable!
Stream not seekable!
TS file format detected.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
Stream not seekable!
PROBING UP TO 2000000, PROG: 0
RTP packet sequence error! Expected: 32079, received: 32087
RTP packet sequence error! Expected: 32211, received: 32229
RTP packet sequence error! Expected: 32318, received: 32320

0x112
0x113
0x114
0x115
...és ilyenből ír pár képernyőnyit...

Bocs, ha kicsit hosszúra sikerült (a kimenetek miatt...)

Mi lehet a gond?

Egyébként próbáltam mp4 video stream-el is...

Üdv:
aThom