Please help me !!

About encoding, codec settings, muxers and filter usage
arthur660122

Please help me !!

Postby arthur660122 » 11 May 2004 09:56

Hello everybody !

How do I only stream voice with microphone by VideoLan (no need to send images).

I use command : # vlc -vvv --aout /dev/dsp udp:xxx.xxx.xxx.xxx
But it can't run.

Do I have to enable "ffmpeg" and "v4l" when I configure vlc?

It is very important for me.
Thanks for your answer. :oops:

e-mail : arthur@ares.ee.nchu.edu.tw

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 11 May 2004 13:32

Under Windows, assuming your microphone input had been defined as the default audio device, I believe you would use:
vlc
dshow:// :dshow-vdev="none" :dshow-adev="" :dshow-size="320x240" :no-dshow-config
:sout=#transcode{acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=udp,mux=ts,url=239.20.30.40:1234}}

with the above all stitched together as a single command line. That explicitly says to use no video input device (the 320x240 should be a don't-care, since video device is set to none), pump out mpga audio, 192 kbps, on the multicast address 239.20.30.40, port 1234. DShow applies just to Windows, which uses the DirectShow interface to hardware.

You can use Streaming Wizard, if it's available on your OS, copy the contents of the line that appears at the top of each of the tabs.

Looking at what you had, it looks like you would need to take the ":sout" part of the above, stuff it in where you presently have "udp" -- you need to tell VLC what audio coding method and bitrate to use, as well as the access method (UDP).

In my sample I use mpeg audio (mpga), which I believe would require at least ffmpeg. You might try substituting vorb for mpga, which would say to use vorbis audio coding -- not positive if it would work, but it is an option for audio when I run streaming wizard. No idea about 4vl -- I'm not a developer, don'e know (I enable just about everything when I build VLC for my machine).

Guest

Postby Guest » 11 May 2004 17:49

I am very glad that you tell me so much.

But my OS is linux and I can only use vlc-0.5.2. Because I have to port vlc to another platform, and I can't cross-compiler ffmpeg library.
So how can I stream voice with microphone by videolan without ffmpeg ??


Thanks for your answer. :oops:

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 14 May 2004 22:16

AFAIR, the streaming features in VLC was only introduced from the 0.6.x branch, so you're out of luck here.

Now, if you're willing to use something more recent you'll be able to do that. Unfortunately the encoding/transcoding requires ffmpeg support. You can compile a stripped version of ffmpeg though if you want to use a compression method like vorbis, flac or speex.

It would also be possible to stream raw (uncompressed) audio even if you don't enable the ffmpeg support but some slight coding will be needed to allow muxing this raw audio in one of the containers we support (we didn't bother implementing that until now).


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 9 guests