How can I stream a wav/pcm file?

About encoding, codec settings, muxers and filter usage
nbonwit
New Cone
New Cone
Posts: 3
Joined: 13 Jul 2011 02:44

How can I stream a wav/pcm file?

Postby nbonwit » 13 Jul 2011 03:10

I am trying to stream a wave file with VLC 1.1.10 in windows XP.

I do Ctrl-S, select my wave file, then click Stream at the bottom.

Then, it lists my wave file in the Source box, so I click Next.
I select HTTP in Destinations and click Add and leave the Port at 8080 and the Path at /

In Transcoding options, I leave Activate Transcoding checked (not sure if I should do this since my file is already a wave file...)
I create and save a new profile with WAV encapsulation, no Video, Audio with WAV codec, 128kb/s, 2 Channels, 48000 Sample Rate
I select the newly created profile and click Stream (I leave all options as-is).
It says Streaming and the rectangle slider handle starts moving across the slider bar

I try to connect to the stream using a new instance of VLC and I enter this URL: http://192.168.24.2:8080/ and then I click Play.
Nothing happens.

The message log is below. What am I doing wrong?

--------Message Log-------------------
qt4 warning: Input option: http-caching=1200
main debug: adding item `http://192.168.24.2:8080/'
qt4 debug: Adding a new MRL to recent ones: (same as before...stripped URL because of too many URLs)
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: processing request item (same as before...stripped URL because of too many URLs) node Playlist skip 0
main debug: resyncing on (same as before...stripped URL because of too many URLs)
main debug: (same as before...stripped URL because of too many URLs) is at 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for '(same as before...stripped URL because of too many URLs)'
main debug: thread started
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path 'C:\DOCUME~1\NEVILL~1\LOCALS~1\Temp'
main debug: thread (input) created at priority 1 (../.././src/input/input.c:220)
main debug: `(same as before...stripped URL because of too many URLs)' gives access `http' demux `' path `192.168.24.2:8080/'
main debug: creating demux: access='http' demux='' path='192.168.24.2:8080/'
main debug: looking for access_demux module: 0 candidates
main debug: no access_demux module matched "http"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating access 'http' path='192.168.24.2:8080/'
main debug: looking for access module: 2 candidates
access_http debug: http: server='192.168.24.2' port=8080 file='/'
main debug: net: connecting to 192.168.24.2 port 8080
main debug: no fetch required for (null) (art currently (null))
main debug: connection succeeded (socket = 1628)
qt4 debug: IM: Setting an input
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Content-Type: application/octet-stream
main debug: using access module "access_http"
main debug: TIMER module_need() : 40.000 ms - Total 40.000 ms / 1 intvls (Avg 40.000 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: looking for stream_filter module: 2 candidates
main debug: no stream_filter module matching "any" could be loaded
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: looking for stream_filter module: 1 candidate
main debug: using stream_filter module "stream_filter_record"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating demux: access='http' demux='' path='192.168.24.2:8080/'
main debug: looking for demux module: 52 candidates





I've tried both wav and raw encapsulation. Should

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

Re: How can I stream a wav/pcm file?

Postby Rémi Denis-Courmont » 13 Jul 2011 08:35

wav file format is not streamable.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

nbonwit
New Cone
New Cone
Posts: 3
Joined: 13 Jul 2011 02:44

Re: How can I stream a wav/pcm file?

Postby nbonwit » 13 Jul 2011 19:23

Thanks Remi,

When you say wav file format, I'm assuming you mean the encapsulation, right?
Is there a way to stream raw or pcm? Is there a place in the VLC documentation where it tells me which formats are streamable?
I can receive a streamed pcm format in VLC without any problems...

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

Re: How can I stream a wav/pcm file?

Postby Rémi Denis-Courmont » 13 Jul 2011 19:31

I think MPEG-TS is pretty much the only "streamable" format as far as VLC goes. For raw PCM, I'd use RTP rather than HTTP.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

nbonwit
New Cone
New Cone
Posts: 3
Joined: 13 Jul 2011 02:44

Re: How can I stream a wav/pcm file?

Postby nbonwit » 13 Jul 2011 19:38

I see...so in VLC you can't stream with any encapsulation except MPEG-TS...seems like the other options should somehow be disabled if they don't work - this is very confusing.

If I use RTP to stream PCM with VLC (in the MPEG-TS encapsulation, I presume?), are there instructions somewhere about how to do that? I've never used RTP before...


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 2 guests