[vlc-devel] Slow audio when streaming flv

Rafaël Carré funman at videolan.org
Thu Apr 17 07:35:03 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le Wed, 16 Apr 2008 17:59:30 -0700,
Dave Still <dave at stilldesigning.com> a écrit :

> I finally got VLC git to build on Mac OS X (Intel Leopard with
> latest iPhone SDK), and everything works, but the audio is "slow".
> Here's the command-line:
> 
> '/Users/stealthdave/Movies/D061219_01/VIDEO_TS/VTS_01_1.VOB' --sout  
> "#transcode 
> {vcodec 
> = 
> FLV1 
> ,acodec 
> = 
> mp3 
> ,samplerate 
> =44100,ab=128,vb=256,width=320,height=240}:std{access=http{mime=video/ 
> x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8090/stream.flv}"
> 
> The video plays at normal speed.  Rather than resampling the audio,  
> vlc is slowing down the audio to match the requested samplerate.  In  
> order to keep up with the video, vlc is dropping pieces of the
> audio. This keeps the video and audio in sync (well done), but makes
> videos of my wife sound like James Earl Jones (not so well
> done ;) ).  The build was from git latest as of a couple of hours ago.

Can you look in ffmpeg/codec/encoder.c line 571, there is a workaround
for faac, could you try the same with acodec 'm','p','3',' ' ? (or
maybe it is 'm','p','g','a' i'm not sure ..

- -- 
Rafaël Carré
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIBuGJYWCeGMCv8Q8RAlkoAJ9F6cr0Em+P6LtQRgbqhMJmr7Q8WgCeL5/Q
21u7FldpajXjX+uTup9nlyM=
=8BEb
-----END PGP SIGNATURE-----


More information about the vlc-devel mailing list