Strange behavior of vlc reading from fifo



Hi,

I'm writing a network communication (audio and video) application. The application consists of a sender a reciever, data is transfered through rtp.
Audio data is written directly to the alsa-layer by the receiver and is by now working fine.
OTOH Video data is send as mjpeg (http://en.wikipedia.org/wiki/Motion_JPEG) and not handled by the receiver but piped through a fifo to an external player (vlc by now). The data cannot be piped directly to the player as it needs the file-ending (mjpeg) to distinguish the format.
From my log-messages I see, that the the data is sent and received continuous with 10fps as I expected. The receiver creates a fifo for writing, forks if it gets the first video data and execs vlc on the newly created fifo. Vlc starts displaying the video data, but much to slow ~1fps and with a huge delay of maybe 5secs on a local setup.
For debuging I modified the application to not fork&ecex so that I can start vlc from the bash myself.
Vlc playbacks the video data as bad as if forked an exec, *but* if I kill it and start vlc again, video playback is just fine (~10fps and delay of 0,5secs which might be from the caching of the rtp-lib).
This seems quite strange to me...
Any help is appreciated.

FYI:
rtplib: ccrtp
soundlib: asound (alsa)
videolib: libavformat (ffmpeg, mplayer)
OS: Debian Linux SID
Video-Source: webcam (quickcam)
Programming language: c++

Greets from Germany
Johannes
.



Relevant Pages

  • VLC plays only audio
    ... I have problem with my VLC player. ... It played almost every type of video I ... main decoder error: no suitable decoder module for fourcc `H264'. ...
    (Fedora)
  • Re: Is there a DiVX codec for Linux?
    ... dvr - Digital Video Recorder ... mozilla-plugin-vlc - multimedia plugin for Mozilla based on VLC ... vlc-plugin-alsa - ALSA audio output plugin for VLC ...
    (comp.os.linux.setup)
  • Ogg & Totem kill X
    ... When I try to watch an ogg video from Red Hat's web site in Totem, the screen goes blank and I can hear my hard disk head park. ... When I try the same video in VLC, VLC just dies immediately. ... Identifier "Default Layout" ... Identifier "Screen0" ...
    (Fedora)
  • Re: WMP 9 on OS X 10.2.8 -- very slow jerky playback of some .wmv
    ... thanks for the tip on VLC. ... It doesn't seem to support the WMP 9 video codec identified in the VLC ... I hope they'll be able to add support for the latest Windows Media video ...
    (microsoft.public.windowsmedia.player.mac)
  • Re: [opensuse] what a great media player
    ... You can also try xine - with the added benefit that kafeine and amarok ... i tried Mplayer and I couldn't get it to work. ... played the DVD again in VLC it ran perfectly, ... A video card with more memory would allow the video to be ...
    (SuSE)