Newbie with basic Linux streaming question

About encoding, codec settings, muxers and filter usage
catdude
New Cone
New Cone
Posts: 2
Joined: 21 Oct 2008 16:47

Newbie with basic Linux streaming question

Postby catdude » 25 Jun 2012 22:48

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Newbie with basic Linux streaming question

Postby Rémi Denis-Courmont » 27 Jun 2012 16:48

v4l2:///dev/video1
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests