Multicast audio only file?

About encoding, codec settings, muxers and filter usage
SoftwareDave
Blank Cone
Blank Cone
Posts: 30
Joined: 25 Jun 2004 21:37

Multicast audio only file?

Postby SoftwareDave » 25 Aug 2004 00:45

VLC-0.7.2, Windoze 2k

I'm successfully multicasting video files, but I can't figure out how to stream audio only files, eg .wav files.
I tried from the command line:

Code: Select all

vlc -vvv audio.wav --sout udp:239.20.30.40:1234
and I get a lot of output in the logger window, of which the most likely bit is this:

Code: Select all

[00000226] main packetizer debug: looking for packetizer module [00000226] main packetizer debug: probing 29 candidates [00000146] main module debug: using packetizer module "packetizer_copy" [00000218] main input debug: stream out mode -> no decoder thread [00000218] main input debug: starting in synch mode [00000219] main stream output debug: adding a new input [00000223] main private debug: adding a new input [00000223] mux_ts_dvbpsi private debug: adding input codec=u8 pid=68 [00000223] main private error: cannot add this stream [00000226] main packetizer error: cannot create packetizer output
I've tried the streaming wizard, and I get this (logs edited for brevity)
1. Without selecting audio codec transcoding:

Code: Select all

[00000233] logger interface: Using the logger interface module... [00000234] main input: playlist item `C:\audio.wav' [00000240] main private error: cannot add this stream [00000243] main packetizer error: cannot create packetizer output
2. With audio codec mpga, MP3, or a52 selected:

Code: Select all

[00000256] ffmpeg encoder error: cannot open encoder [00000256] ffmpeg encoder error: cannot open encoder [00000246] stream_out_transcode private error: cannot open encoder [00000246] stream_out_transcode private error: cannot create audio chain [00000255] main packetizer error: cannot create packetizer output
3. With audio codec MP4a selected:

Code: Select all

libfaac doesn't support this output format
4. With codec vorb selected:

Code: Select all

vorbis encoder error: CBR mode initialisation failed
5. With flac or spx:

Code: Select all

main private error: cannot add this stream
I've looked through previous posts, I saw this reply from markfm:
viewtopic.php?t=2534
and modified the command line he used, but to no avail.

Am I missing something? I note that in markfms reply he states that ffmpeg is needed. I don't have any ffmpeg plugin (or at least none called *ffmpeg*), but it appears from the source that ffmpeg is statically linked. That's just a guess.

By the way, as you'd expect the client end is showing no activity in the logger window while trying these, while it does show activity when videos are streamed.

Thanks in advance for any help.

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 25 Aug 2004 08:55

I guess you should convert your wav file to 16 bit. In fact I find it abit strange that vlc don't do it for you. Perhaps you could try transcode{"S16N"}:transcode{"mpga"} or something like that

SoftwareDave
Blank Cone
Blank Cone
Posts: 30
Joined: 25 Jun 2004 21:37

Postby SoftwareDave » 25 Aug 2004 13:21

Couldn't find any reference to S16N anywhere on the videolan.org site, but I tried it:

Code: Select all

vlc --extraintf=logger -vvv audio.wav :sout=#transcode{"S16N"}:transcode{acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=udp,mux=ts,url=239.20.30.40:1234}}
and got this in the logger window:

Code: Select all

[00000220] main private warning: option S16N is unknown


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests