[vlc] trouble streaming with udp (http works)

Andrew Pimlott andrew at pimlott.net
Sat Aug 7 23:09:26 CEST 2004


I just started using vlc with the hopes of watching TV over my LAN,
using v4l and my bttv (Bt878) card.  I am using Debian package version
0.7.2.final-8.  I am relying mostly on the HOWTO for guidance.  I have
suceeded in sending a video file over the network with

    vlc presentation_short.vob --sout udp:10.17.0.139 --ttl 12

and watching it with

    vlc udpstream:

Great!  But when I try the examples for streaming from v4l

    vlc v4l:/dev/video:norm=ntsc:frequency=211250:size=320x240:channel=0:adev=/dev/dsp:audio=0 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,vt=800000,keyint=80,deinterlace}:std{access=udp,mux=ts,url=10.17.0.139}' --ttl 12

I got a blank window on the client and a few error messages:

    libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 0)

    ************ IOD ************
    * iod_label:1
    * ===========
    * tag:0x2
    * length:97
    * od_id:1
    * url flag:0
    * includeInlineProfileLevel flag:0
    * ODProfileLevelIndication:255
    * sceneProfileLevelIndication:255
    * audioProfileLevelIndication:254
    * visualProfileLevelIndication:254
    * graphicsProfileLevelIndication:255
    * - ES_Descriptor length:86
    *   * streamDependenceFlag:0
    *   * OCRStreamFlag:0
    *   * streamPriority:31
    *   - DecoderConfigDesc length:67
    *     * objectTypeIndication:0x20
    *     * streamType:0x4
    *     * upStream:0
    *     * bufferSizeDB:1048576
    *     * maxBitrate:2147483647
    *     * avgBitrate:0
    *   - SLConfigDescr length:8
    *     * i_predefined:0x1
    *****************************
    [00000228] mpeg_audio decoder: MPGA channels:2 samplerate:44100 bitrate:256
    [mpeg4 @ 0x833a430]header damaged
    [mpeg4 @ 0x833a430]warning: first frame is no keyframe

When I try http instead,

    vlc v4l:/dev/video:norm=ntsc:frequency=211250:size=320x240:channel=0:adev=/dev/dsp:audio=0 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:standard{access=http,mux=ogg,url=pimlott.net:8080}'

I get a few warnings on the client

    [00000226] main input: playlist item `http://pimlott.net:8080'
    [mpeg4 @ 0x833a430]header damaged
    [mpeg4 @ 0x833a430]header damaged
    [00000230] mpeg_audio decoder: MPGA channels:2 samplerate:44100 bitrate:128
    [mpeg4 @ 0x833a430]warning: first frame is no keyframe

but it comes through nicely!

So I thought I should try transcoding a file through udp:

    vlc presentation_short.vob --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=udp,mux=ts,url=10.17.0.139}'

This, time, I got a tiny bit of garbled video and audio, and similar
errors to the first TV case.

Can anyone offer any advice on my problem with UDP streaming?

Andrew

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list