vlc wrong resamples http stream (audio channel)

*nix specific usage questions
roli8200
Blank Cone
Blank Cone
Posts: 30
Joined: 20 Jun 2006 16:25
Location: Schaffhausen / Switzerland
Contact:

vlc wrong resamples http stream (audio channel)

Postby roli8200 » 12 Aug 2006 10:23

Hello

When I receive a vlc v4l stream:
/usr/bin/vlc -v --color v4l:/dev/video:norm=pal:channel=1:size=720x576:adev=/dev/dsp1:audio=0 --sout '#transcode{vcodec=mp4v,acodec=mp3,vb=800,ab=192}:standard{access=http,mux=ts,dst=192.168.0.145:2500}'

The vlc client seems to think the sound comes as 48510
main audio output debug: filter(s) 'fl32'->'fl32' 48510 Hz->44100 Hz Stereo->Stereo

and tries to resample it. But all what happens is that it sounds like a gramophone recored which is played the wrong speed (to fast) and and the sound ruckles all the time. Has somebody a idea how to disable the resampling of the audio input? I already disable the options high-quality-audio-resampling.

Many thanks

Roland Kaeser


VLC Client Debug output

Code: Select all

[00000296] main input debug: `http://192.168.0.145:2500' gives access `http' demux `' path `192.168.0.145:2500' [00000296] main input debug: creating demux: access='http' demux='' path='192.168.0.145:2500' [00000298] main demuxer debug: looking for access_demux module: 0 candidates [00000298] main demuxer warning: no access_demux module matched "http" [00000296] main input debug: creating access 'http' path='192.168.0.145:2500' [00000299] main access debug: looking for access2 module: 8 candidates [00000299] access_http access debug: http: server='192.168.0.145' port=2500 file='(null) [00000299] main access debug: net: connecting to 192.168.0.145 port 2500 [00000299] main access debug: connection in progress [00000299] access_http access debug: protocol 'HTTP' answer code 200 [00000299] access_http access debug: Content-Type: application/octet-stream [00000299] main access debug: using access2 module "access_http" [00000301] main private debug: pre-buffering... [00000301] main private debug: received first data for our buffer [00000301] main private debug: pre-buffering done 26640 bytes in 0s - 53 kbytes/s [00000296] main input debug: creating demux: access='http' demux='' path='192.168.0.145:2500' [00000302] main demuxer debug: looking for demux2 module: 44 candidates [00000302] main demuxer debug: using demux2 module "ts" [00000302] ts demuxer debug: DEMUX_SET_GROUP 0 (nil) [00000296] main input debug: `http://192.168.0.145:2500' successfully opened [00000302] ts demuxer debug: pid[68] unknown libdvbpsi error (PSI decoder): TS discontinuity (received 6, expected 0) for PID 0 [00000302] ts demuxer debug: PATCallBack called [00000302] ts demuxer debug: new PAT ts_id=13269 version=27 current_next=1 [00000302] ts demuxer debug: * number=1 pid=66 libdvbpsi error (PSI decoder): TS discontinuity (received 6, expected 0) for PID 66 [00000302] ts demuxer debug: PMTCallBack called [00000302] ts demuxer debug: new PMT program number=1 version=18 pid_pcr=68 [00000302] ts demuxer debug: * es pid=68 type=16 fcc=mp4v [00000296] main input debug: selecting program id=1 [00000334] main decoder debug: looking for decoder module: 25 candidates [00000334] ffmpeg decoder debug: libavcodec initialized (interface 3344896 ) [00000334] ffmpeg decoder debug: postprocessing disabled [00000334] ffmpeg decoder debug: using direct rendering [00000334] ffmpeg decoder debug: ffmpeg codec (MPEG-4 Video) started [00000334] main decoder debug: using decoder module "ffmpeg" [00000360] main packetizer debug: looking for packetizer module: 17 candidates [00000360] main packetizer debug: using packetizer module "packetizer_mpeg4video" [00000334] main decoder debug: thread 2972064672 (decoder) created at priority 0 (input/decoder.c:159) [00000302] ts demuxer debug: * es pid=69 type=3 fcc=mpga [00000372] main decoder debug: looking for decoder module: 25 candidates [00000372] main decoder debug: using decoder module "mpeg_audio" [00000372] main decoder debug: thread 2963671968 (decoder) created at priority 0 (input/decoder.c:159) [00000302] ts demuxer warning: first packet for pid=68 cc=0x5 [00000302] ts demuxer warning: first packet for pid=69 cc=0x3 [00000360] packetizer_mpeg4video packetizer warning: waiting for VOL [00000372] mpeg_audio decoder debug: MPGA channels:2 samplerate:44100 bitrate:192 [00000372] main decoder debug: no aout present, spawning one [00000373] main audio output debug: looking for audio output module: 6 candidates [00000360] packetizer_mpeg4video packetizer warning: waiting for VOL [00000360] packetizer_mpeg4video packetizer warning: waiting for VOL [00000360] packetizer_mpeg4video packetizer warning: waiting for VOL [00000360] packetizer_mpeg4video packetizer warning: waiting for VOL [00000360] packetizer_mpeg4video packetizer warning: waiting for VOL [00000373] arts audio output debug: aRts initialized, latency 92000, 4 packets of size 4096 [00000373] main audio output debug: using audio output module "arts" [00000373] main audio output debug: output 's16l' 44100 Hz Stereo frame=1 samples/4 bytes [00000373] main audio output debug: mixer 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes [00000373] main audio output debug: filter(s) 'fl32'->'s16l' 44100 Hz->44100 Hz Stereo->Stereo [00000375] main private debug: looking for audio filter module: 24 candidates [00000375] main private debug: using audio filter module "float32tos16" [00000373] main audio output debug: found a filter for the whole conversion [00000373] main audio output debug: looking for audio mixer module: 3 candidates [00000373] main audio output debug: using audio mixer module "float32_mixer" [00000373] main audio output debug: input 'mpga' 44100 Hz Stereo frame=1152 samples/1053 bytes [00000373] main audio output debug: filter(s) 'mpga'->'fl32' 44100 Hz->44100 Hz Stereo->Stereo [00000393] main private debug: looking for audio filter module: 24 candidates [00000393] main private debug: using audio filter module "mpgatofixed32" [00000373] main audio output debug: found a filter for the whole conversion [00000373] main audio output debug: filter(s) 'fl32'->'fl32' 48510 Hz->44100 Hz Stereo->Stereo [00000394] main private debug: looking for audio filter module: 24 candidates [00000394] main private debug: using audio filter module "linear_resampler" [00000373] main audio output debug: found a filter for the whole conversion [00000373] mpgatofixed32 audio output debug: libmad error: bad main_data_begin pointer

roli8200
Blank Cone
Blank Cone
Posts: 30
Joined: 20 Jun 2006 16:25
Location: Schaffhausen / Switzerland
Contact:

Also Sound Problems receiveing the Stream on a Windows PC

Postby roli8200 » 12 Aug 2006 11:41

Hello

When I try to receive the same stream on windows pc, I also get these strange messages:

Code: Select all

main warning: computed PTS is out of range (46160), clearing out main warning: output PTS is out of range (51578), clearing out main debug: audio output is starving (63794), playing silence main warning: computed PTS is out of range (13262), clearing out main warning: output PTS is out of range (41900), clearing out main debug: audio output is starving (61941), playing silence main warning: computed PTS is out of range (43571), clearing out main warning: output PTS is out of range (48989), clearing out main warning: computed PTS is out of range (16549), clearing out main warning: output PTS is out of range (21967), clearing out main debug: audio output is starving (58867), playing silence main warning: computed PTS is out of range (52296), clearing out main warning: output PTS is out of range (80934), clearing out main warning: output date isn't PTS date, requesting resampling (-46852) main warning: computed PTS is out of range (27512), clearing out main warning: output PTS is out of range (32930), clearing out main warning: output date isn't PTS date, requesting resampling (-46760) .... and so on....
Does somebody have a Idea whats going wrong here?

Thanks

Roland Kaeser

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 12 Aug 2006 17:11

No, the filter you see is to correct the tempo in case realtime vs. arriving time starts to get skewed.

The problem must be elsewhere. Personally, i don't trust VLCs arts audio plugin. try using oss or alsa instead.
Don't use PMs for support questions.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests