Page 1 of 1

FLV (H264/MP3) resampling 48000 -> 44100 = No audio

Posted: 20 May 2011 18:47
by trok
Hello,

I transcode live streams coming from different sources format to Flash format (H264+mp3) with VLC 1.1.9.
Sometime input streams have an audio samplerate set to 44100 or 48000.

When input audio samplerate is set to 44100 :
-> transcoded stream is perfect, I have a video and an audio part.

When input audio samplerate is set to 48000 :
-> transcoded stream is bad, I haven't audio part.

I tried to set final samplerate to 48000 but FLV is limited to 44100.

Re: FLV (H264/MP3) resampling 48000 -> 44100 = No audio

Posted: 22 May 2011 08:29
by trok
vlc.exe <input> --sout "#transcode{vcodec=FLV1,acodec=mp3}:std{access=http,dst=0.0.0.0:8081/stream.flv}" => OK for sound
vlc.exe <input> --sout "#transcode{vcodec=H264,acodec=mp3}:std{access=http,dst=0.0.0.0:8081/stream.flv}" => OK for sound only if input samplerate = 44100

I tried to add samperate in trnacode line as explain in documenation (http://wiki.videolan.org/Flash_Video)
vlc.exe <input> --sout "#transcode{vcodec=H264,acodec=mp3,samplerate=44100}:std{access=http,dst=0.0.0.0:8081/stream.flv}"

But the same... can any one help me ?

Re: FLV (H264/MP3) resampling 48000 -> 44100 = No audio

Posted: 22 May 2011 19:42
by trok
It's ok with VLC 1.0.5 but not 1.1.9 on Windows.
1.2 Doesn't work too ! :(

I can watch video but no sound.

Re: FLV (H264/MP3) resampling 48000 -> 44100 = No audio

Posted: 23 May 2011 11:29
by trok
Voici les traces générés avec une version 1.2 Nightly build

[00afc0b4] main stream out error: Failed to create audio filter
[00afc0b4] stream_out_transcode stream out error: Failed to find conversion filter for resampling

J'ai testé en utilsant FFMPEG dans la ligne de transcode ou juste VLC et le résultat est le même au point de vue de l'audio. J'ai bien forcé le samplerate comme expliqué sur le site VLC ou dans les traces de debug mais ça ne change rien.

J'ai ce soucis uniquement en H264, en FLV1 avec FFMPEG c'est bon.

Si vous faites une correction je peux tester la niughtly build j'ai tout ce qu'il faut sur mon PC.

Merci

Code: Select all

[0277490c] [Média : my_media] live555 demux debug: play start: 0.000000 stop:0.000000 [0277490c] [Média : my_media] main demux debug: using access_demux module "live555" [0277490c] [Média : my_media] main demux debug: TIMER module_need() : 62.809 ms - Total 62.809 ms / 1 intvls (Avg 62.809 ms) [00af9edc] [Média : my_media] main input debug: starting in async mode [00ad9824] [Média : my_media] main demux meta debug: looking for meta reader module: 2 candidates [00ad9824] [Média : my_media] lua demux meta debug: Trying Lua scripts in C:\Users\me\AppData\Roaming\vlc\lua\meta\reader [00ad9824] [Média : my_media] lua demux meta debug: Trying Lua scripts in D:\VLC\lua\meta\reader [00ad9824] [Média : my_media] lua demux meta debug: Trying Lua playlist script D:\VLC\lua\meta\reader\filename.luac [00ad9824] [Média : my_media] main demux meta debug: no meta reader module matching "any" could be loaded [00ad9824] [Média : my_media] main demux meta debug: TIMER module_need() : 9.409ms - Total 9.409 ms / 1 intvls (Avg 9.409 ms) [00af9edc] [Média : my_media] main input debug: `rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=204&flavour=ld' successfully opened [02774bbc] [Média : my_media] main demux debug: looking for demux module: 1 candidate [02774bbc] [Média : my_media] ts demux debug: pid[68] unknown [02774bbc] [Média : my_media] ts demux debug: pid[69] unknown [02774bbc] [Média : my_media] ts demux debug: pid[72] unknown [02774bbc] [Média : my_media] ts demux debug: pid[70] unknown [02774bbc] [Média : my_media] ts demux debug: pid[71] unknown libdvbpsi error (PSI decoder): TS discontinuity (received 8, expected 0) for PID 0 [02774bbc] [Média : my_media] ts demux debug: PATCallBack called [02774bbc] [Média : my_media] ts demux debug: new PAT ts_id=825 version=6 current_next=1 [02774bbc] [Média : my_media] ts demux debug: * number=28773 pid=66 libdvbpsi error (PSI decoder): TS discontinuity (received 15, expected 0) for PID 66 [02774bbc] [Média : my_media] ts demux debug: PMTCallBack called [02774bbc] [Média : my_media] ts demux debug: new PMT program number=28773 version=2 pid_pcr=68 [02774bbc] [Média : my_media] ts demux debug: * es pid=68 type=27 fcc=h264 [00af9edc] [Média : my_media] main input debug: selecting program id=28773 [0278aaac] [Média : my_media] main decoder debug: looking for packetizer module:21 candidates [0278aaac] [Média : my_media] main decoder debug: using packetizer module "packetizer_h264" [0278aaac] [Média : my_media] main decoder debug: TIMER module_need() : 82.414 ms - Total 82.414 ms / 1 intvls (Avg 82.414 ms) [02774bbc] [Média : my_media] ts demux debug: * es pid=69 type=15 dr->i_tag=0xa [02774bbc] [Média : my_media] ts demux error: MPEG-4 descriptor not found [02774bbc] [Média : my_media] ts demux debug: found language: fra [02774bbc] [Média : my_media] ts demux debug: * es pid=69 type=15 fcc=mp4a [0281e1fc] [Média : my_media] main decoder debug: looking for packetizer module:21 candidates [0281e1fc] [Média : my_media] packetizer_mpeg4audio decoder debug: running MPEG4 audio packetizer [0281e1fc] [Média : my_media] packetizer_mpeg4audio decoder debug: no decoder specific info, must be an ADTS or LOAS stream [0281e1fc] [Média : my_media] main decoder debug: using packetizer module "packetizer_mpeg4audio" [0281e1fc] [Média : my_media] main decoder debug: TIMER module_need() : 3.257 ms - Total 3.257 ms / 1 intvls (Avg 3.257 ms) [02774bbc] [Média : my_media] ts demux debug: * es pid=70 type=6 dr->i_tag=0x56 [02774bbc] [Média : my_media] ts demux debug: * ttxt type=Sous-titres T├®l├®texte pour Malentendants lan=fra page=888 [02774bbc] [Média : my_media] ts demux debug: * ttxt type=Sous-titres T├®l├®texte lan=fra page=889 [02774bbc] [Média : my_media] ts demux debug: * es pid=70 type=6 fcc=telx [02774bbc] [Média : my_media] ts demux debug: * es pid=71 type=15 dr->i_tag=0xa [02774bbc] [Média : my_media] ts demux error: MPEG-4 descriptor not found [02774bbc] [Média : my_media] ts demux debug: found language: qaa [02774bbc] [Média : my_media] ts demux debug: * es pid=71 type=15 fcc=mp4a [02774bbc] [Média : my_media] ts demux debug: * es pid=72 type=15 dr->i_tag=0xa [02774bbc] [Média : my_media] ts demux error: MPEG-4 descriptor not found [02774bbc] [Média : my_media] ts demux debug: found language: qad [02774bbc] [Média : my_media] ts demux debug: * es pid=72 type=15 fcc=mp4a [02774bbc] [Média : my_media] main demux debug: using demux module "ts" [02774bbc] [Média : my_media] main demux debug: TIMER module_need() : 245.006 ms - Total 245.006 ms / 1 intvls (Avg 245.006 ms) [02774bbc] [Média : my_media] ts demux debug: DEMUX_SET_GROUP -1 00000000 [02774bbc] [Média : my_media] ts demux warning: first packet for pid=68 cc=0x6 [02774bbc] [Média : my_media] ts demux warning: first packet for pid=72 cc=0x9 [02774bbc] [Média : my_media] ts demux warning: first packet for pid=69 cc=0xa [02774bbc] [Média : my_media] ts demux warning: first packet for pid=70 cc=0xa [02774bbc] [Média : my_media] ts demux warning: first packet for pid=71 cc=0x2 [00af9edc] [Média : my_media] main input debug: Buffering 0% [00af9edc] [Média : my_media] main input debug: switching to sync mode [00af9edc] [[Média : my_media] 0main input debug: 278aaac] Buffering 5%[Média : my_media] packetizer_h264 decoder warning: waiting for SPS/PPS [0278aaac] [Média : my_media] packetizer_h264 decoder warning: waiting for SPS/PPS [0278aaac] [Média : my_media] packetizer_h264 decoder warning: waiting for SPS/PPS [0278aaac] [[Média : my_media] 0packetizer_h264 decoder warning: 0af9edc] waiting for SPS/PPS[Média : my_media] main input debug: Buffering 11% [0278aaac] [Média : my_media] packetizer_h264 decoder warning: waiting for SPS/PPS [0278aaac] [Média : my_media] packetizer_h264 decoder warning: waiting for SPS/PPS [00af9edc] [Média : my_media] main input debug: Buffering 17% [0278aaac] [[Média : my_media] 0packetizer_h264 decoder warning: 281e1fc] waiting for SPS/PPS[Média : my_media] packetizer_mpeg4audio decoder debug: detected ADTS format [0281e1fc] [Média : my_media] packetizer_mpeg4audio decoder: AAC channels: 2 samplerate: 48000 [00a9b47c] main stream output debug: adding a new sout input (sout_input:0278d390) [00afc0b4] stream_out_transcode stream out debug: creating audio transcoding from fcc=`mp4a' to fcc=`mp3 ' [0278c34c] main generic debug: looking for decoder module: 31 candidates [0278c34c] main generic debug: using decoder module "faad" [0278c34c] main generic debug: TIMER module_need() : 29.239 ms - Total 29.239 ms / 1 intvls (Avg 29.239 ms) [0278c6a4] main encoder debug: looking for encoder module: 13 candidates [0278aaac] [Média : my_media] packetizer_h264 decoder warning: waiting for SPS/PPS [0278c6a4] avcodec encoder debug: libavcodec initialized (interface 0x347800) [0278c6a4] avcodec encoder debug: found encoder MPEG Audio layer 1/2/3 [0278c6a4] main encoder debug: using encoder module "avcodec" [0278c6a4] main encoder debug: TIMER module_need() : 23.553 ms - Total 23.553 ms / 1 intvls (Avg 23.553 ms) [00afc0b4] stream_out_transcode stream out debug: Looking for filter (f32l->s16l, channels 2->2, rate 48000->44100) [0278cafc] main filter debug: looking for audio filter module: 13 candidates [00af9edc] [Média : my_media] main input debug: Buffering 23% [0278aaac] [Média : my_media] packetizer_h264 decoder warning: waiting for SPS/PPS [0278cafc] main filter debug: no audio filter module matching "any" could be loaded [0278cafc] main filter debug: TIMER module_need() : 58.486 ms - Total 58.486 ms / 1 intvls (Avg 58.486 ms) [00afc0b4] main stream out error: Failed to create audio filter [00afc0b4] stream_out_transcode stream out error: Failed to find conversion filter for resampling [0278c34c] main generic debug: removing module "faad" [0278c6a4] main encoder debug: removing module "avcodec" [00afc0b4] stream_out_transcode stream out error: cannot create audio chain [0281e1fc] [Média : my_media] main decoder error: cannot create packetizer output (mp4a) [00af9edc] [Média : my_media] main input debug: Buffering 28% [0278aaac] [Média : my_media] packetizer_h264 decoder warning: waiting for SPS/PPS [00af9edc] [[Média : my_media] 0main input debug: 278aaac] Buffering 30%[Média : my_media] packetizer_h264 decoder warning: waiting for SPS/PPS [00af6414] [telnet] main interface debug: accepted socket 816 (from socket 328) [00af9edc] [[Média : my_media] 0main input debug: 2774bbc] control type=0[Média : my_media] ts demux debug: [00af9edc] eof ?[Média : my_media] main input debug: [00a9b6bc] control: stopping input[Média : my_media] main stream debug: thread ended [0278aaac] [Média : my_media] main decoder debug: removing module "packetizer_h264" [0278aaac] [Média : my_media] main decoder debug: killing decoder fourcc `h264', 0 PES in FIFO [0281e1fc] [Média : my_media] main decoder debug: removing module "packetizer_mpeg4audio" [0281e1fc] [Média : my_media] main decoder debug: killing decoder fourcc `mp4a',0 PES in FIFO [0277490c] [Média : my_media] main demux debug: removing module "live555" Sending request: TEARDOWN rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=204&flavour=ld RTSP/1.0 CSeq: 6 User-Agent: LibVLC/1.2.0-git-20110523-0005 (LIVE555 Streaming Media v2011.01.06) Session: EUHrhJ6t8BEtsxX

Re: FLV (H264/MP3) resampling 48000 -> 44100 = No audio

Posted: 02 Jun 2011 10:45
by trok
Hello,
Do you needs more informations to reproduce or debug ?
I have test Nightly build and the same ! :,o(