Page 1 of 1

Newbie with basic Linux streaming question

Posted: 25 Jun 2012 22:48
by catdude
I've been using Linux for a bunch of years now, but have never tried to use VLC to stream before. I'm running VLC 1.1.3 on Debian and am attempting to stream across my LAN to a Wowza server.

If I can use the streaming wizard I can get VLC to see my webcam and display the stream. I'm now trying to my streaming by means of the command line (I always prefer using the command line when I can). My webcam is at /dev/video1 and uses V4L2. So here's my absolute newbie question: how do I specify my webcam on the command line?

When I try
vlc /dev/video1 --sout="#transcode{venc=x264{keyint=60,profile=main},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=10.1.10.30,port=554,mux=ts}"
I get an error dialog saying "VLC could not read the file.". I've got my vlc preferences to log errors to /tmp/vlc.log but it doesn't appear that it's actually doing so.

My terminal window displays:

dan@dan:~/Downloads$ vlc /dev/video1 --sout="#transcode{venc=x264{keyint=60,profile=main},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=10.1.10.30,port=554,mux=ts}"
VLC media player 1.1.3 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
Warning: call to signal(13, 0x1)
Blocked: call to setlocale(6, "")
Blocked: call to sigaction(17, 0xb58c20d4, 0xb58c2048)
Warning: call to signal(13, 0x1)
Warning: call to srand(1340391970)
Warning: call to rand()
Blocked: call to setlocale(6, "")

(process:21204): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Warning: call to signal(13, 0x1)
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav: Can't seek to block 32
libdvdnav: Unable to find map file '/home/dan/.dvdnav/.map'
libdvdread: Can't seek to block 256
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread: Can't seek to block 256
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[0x97816e4] main access error: Read error: No such device
[0x97816e4] filesystem access error: failed to read (No such device)
[0x9780f3c] main stream error: cannot pre fill buffer
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()

I assume that I need to preface my /dev/video1 with something to tell vlc to use V4L2. What would that be?

My reason for doing this is to gain familiarity with vlc. I need to assist another user with a project in which vlc is receiving a stream via DVB and encoding it as MPEG-2. I need to receive that stream using vlc or ffmpeg and transcode it to h.264/AAC and feed it to Wowza. I figure if I can get a basic setup running on my desk I can troubleshoot the project on my desktop before moving to the other guy's network.

Re: Newbie with basic Linux streaming question

Posted: 27 Jun 2012 16:48
by RĂ©mi Denis-Courmont
v4l2:///dev/video1