<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-flowed"
style="font-family: -moz-fixed; font-size: 12px;" lang="x-western">I've
been trying to stream a flac file with rtp using:
<br>
<br>
vlc -vvv --ttl 12 ~/test.flac --sout
'#rtp{dst=11.11.11.255,port=1234,sdp=rtsp://myIP:8880/test.sdp}'
<br>
<br>
but it fails due to "unsupported codec:s16l"
<br>
On line 1018 of rtp.c there is a switch case that allows VLC_FOURCC(
's', '1', '6', 'b' )
<br>
Is there a reason why s16l is not allowed ?
<br>
Which module actually sets this ?
<br>
Actually my server is little endian but my client is big endian.<br>
Any quick hack for this would be appreciated before I go butchering the
code myself.
<br>
<br>
The relevant log is below.
<br>
Ian
<br>
<br>
[00000300] main private debug: pre-buffering...
<br>
[00000300] main private debug: received first data for our buffer
<br>
[00000300] main private debug: pre-buffering done 1408981 bytes in 0s -
560928 kbytes/s
<br>
[00000285] main input debug: creating demux: access='' demux=''
path='/home/ricei/Radiohead.flac'
<br>
[00000301] main demuxer debug: looking for demux2 module: 42 candidates
<br>
[00000303] main decoder debug: looking for packetizer module: 16
candidates
<br>
[00000303] main decoder debug: using packetizer module "flacdec"
<br>
[00000285] main input debug: selecting program id=0
<br>
[00000301] main demuxer debug: looking for id3 module: 1 candidate
<br>
[00000301] id3tag demuxer debug: checking for ID3 tag
<br>
[00000301] main demuxer debug: using id3 module "id3tag"
<br>
[00000301] main demuxer debug: removing module "id3tag"
<br>
[00000301] main demuxer debug: using demux2 module "flac"
<br>
[00000285] main input debug: looking for a subtitle file in <i
class="moz-txt-slash"><span class="moz-txt-tag">/</span>home/ricei<span
class="moz-txt-tag">/</span></i>
<br>
[00000310] main packetizer debug: looking for packetizer module: 16
candidates
<br>
[00000310] main packetizer debug: using packetizer module "flacdec"
<br>
[00000285] main input debug: stream out mode -> no decoder thread
<br>
[00000285] main input debug: starting in synch mode
<br>
[00000285] main input debug: `/home/ricei/Radiohead.flac' successfully
opened
<br>
[00000303] flacdec decoder debug: decode STREAMINFO
<br>
[00000303] flacdec decoder debug: channels:2 samplerate:44100
bitspersamples:16
<br>
[00000303] flacdec decoder debug: STREAMINFO decoded
<br>
[00000310] flacdec packetizer debug: decode STREAMINFO
<br>
[00000310] flacdec packetizer debug: channels:2 samplerate:44100
bitspersamples:16
<br>
[00000310] flacdec packetizer debug: STREAMINFO decoded
<br>
[00000287] main stream output debug: adding a new input
<br>
[00000311] main private debug: looking for sout access module: 1
candidate
<br>
[00000311] main private debug: set sout option: sout-udp-raw to (null)
<br>
[00000311] main private debug: set sout option: sout-udp-ttl to 12
<br>
[00000311] main private debug: net: connecting to 11.11.11.255 port
1230
<br>
[00000313] main private debug: thread 2982976416 (sout write thread)
created at priority 0 (udp.c:268)
<br>
[00000311] access_output_udp private debug: udp access output
opened(11.11.11.255:1230)
<br>
[00000311] main private debug: using sout access module
"access_output_udp"
<br>
[00000288] stream_out_rtp private debug: access out
udp{raw,ttl=12}:11.11.11.255:1230
<br>
[00000288] stream_out_rtp private error: cannot add this stream
(unsupported codec:s16l)
<br>
[00000313] main private debug: thread 2982976416 joined (udp.c:316)
<br>
[00000311] access_output_udp private debug: udp access output closed
<br>
[00000311] main private debug: removing module "access_output_udp"
<br>
[00000310] main packetizer error: cannot create packetizer output
(s16l)
<br>
<br>
</div>
</body>
</html>