Choppy audio in video files with latest releases

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Carnacky
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Aug 2009 04:43

Choppy audio in video files with latest releases

Postby Carnacky » 08 Aug 2009 04:48

Hi everyone,
i have a strange problem. With vlc til version 0.8.6i audio is perfect with video files, but from that version til the latest, i have choppy audio. No problem with other players such WMP, but i'd like to figure out this problem. What changed from 0.8.6i to the next release?
Thanks for help

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Choppy audio in video files with latest releases

Postby Jean-Baptiste Kempf » 08 Aug 2009 19:09

All files? or just wmv oneS?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Carnacky
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Aug 2009 04:43

Re: Choppy audio in video files with latest releases

Postby Carnacky » 08 Aug 2009 19:48

All movie files. avi or mpeg. It's a strange issue...
i've tried uninstalling all codecs with revo uninstaller, done a clean with ccleaner and wise registry cleaner, deleting vlc cache, but nothing worked.
i think it's something related to cache 'couse choppy audio starts after few seconds and if i stop and then play again the sound is good and after few seconds again choppy...
thanks for interest

Carnacky
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Aug 2009 04:43

Re: Choppy audio in video files with latest releases

Postby Carnacky » 08 Aug 2009 23:18

Every program, including gspot, reproduces the sound perfectly (of the movies), but vlc not...i don't know what to do. Now i have no codecs, only xvid and radium for mp3 and vlc doesn't work properly...

Carnacky
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Aug 2009 04:43

Re: Choppy audio in video files with latest releases

Postby Carnacky » 09 Aug 2009 02:48

Well, it's not a codec plugin 'couse different avi or mpeg files had different audio encoding...and the problem is the same :(
the point is that with 0.8.6i no problem...after that release, the same problem til 1.0.1

Carnacky
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Aug 2009 04:43

Re: Choppy audio in video files with latest releases

Postby Carnacky » 09 Aug 2009 03:02

I've tried with debug mode and it's what i see with 1.0.1:

Code: Select all

main debug: Buffering 0% main debug: Buffering 8% mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:128 main debug: Buffering 16% main debug: Buffering 25% main debug: creating aout main debug: Buffering 33% main debug: Buffering 41% main debug: Buffering 50% main debug: Buffering 58% main debug: Buffering 66% main debug: Buffering 75% main debug: Buffering 83% main debug: Buffering 91% main debug: Buffering 100% main debug: Stream buffering done (325 ms in 3 ms) main debug: looking for audio output module: 3 candidates main debug: no usable vout present, spawning one main debug: looking for text renderer module: 2 candidates aout_directx debug: OpenAudio main debug: thread (fontlist builder) created at priority 0 (../../.././modules/misc/freetype.c:473) freetype debug: using fontsize: 2 main debug: using text renderer module "freetype" main debug: thread started main debug: TIMER module_need() : 16.000 ms - Total 16.000 ms / 1 intvls (Avg 16.000 ms) freetype debug: Building font database... freetype debug: Finished building font database. freetype debug: Took 0 microseconds main debug: thread ended main debug: looking for video filter2 module: 20 candidates swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 23.000 ms - Total 23.000 ms / 1 intvls (Avg 23.000 ms) main debug: looking for video filter2 module: 20 candidates yuvp debug: YUVP to YUVA converter main debug: using video filter2 module "yuvp" main debug: TIMER module_need() : 84.000 ms - Total 84.000 ms / 1 intvls (Avg 84.000 ms) main debug: window size: 720x416 main debug: looking for video output module: 7 candidates vout_directx debug: creating DirectXEventThread main debug: thread (Vout Events Thread) created at priority 0 (../../../.././modules/video_output/msw/directx.c:282) main debug: thread started vout_directx debug: DirectXCreateWindow main debug: looking for hwnd module: 3 candidates qt4 debug: requesting video... qt4 debug: Video was requested -1, -1 aout_directx debug: found device: Driver audio principale aout_directx debug: found device: Realtek HD Audio output aout_directx debug: found device: ATI HD Audio rear output qt4 debug: Updating the geometry qt4 debug: Updating the geometry qt4 debug: Updating the geometry qt4 debug: Updating the geometry qt4 debug: New caching: 100 qt4 debug: New caching: 100 aout_directx debug: device supports 2 channels (DEFAULT!) aout_directx debug: device supports 1 channel aout_directx debug: Windows says your SpeakerConfig is stereo aout_directx debug: creating DirectSoundThread main debug: thread (DirectSound Notification Thread) created at priority 15 (../../.././modules/audio_output/directx.c:427) main debug: using audio output module "aout_directx" main debug: TIMER module_need() : 176.000 ms - Total 176.000 ms / 1 intvls (Avg 176.000 ms) main debug: thread started aout_directx debug: DirectSoundThread ready main debug: output 's16l' 48000 Hz Stereo frame=1 samples/4 bytes main debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes main debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "converter_float" main debug: TIMER module_need() : 38.000 ms - Total 38.000 ms / 1 intvls (Avg 38.000 ms) main debug: found a filter for the whole conversion main debug: looking for audio mixer module: 3 candidates qt4 debug: Video is resizing to: 720 416 main debug: using hwnd module "qt4" main debug: TIMER module_need() : 76.000 ms - Total 76.000 ms / 1 intvls (Avg 76.000 ms) main debug: using audio mixer module "float32_mixer" main debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms) main debug: input 'mpga' 48000 Hz Stereo frame=1152 samples/969 bytes main debug: looking for audio filter module: 1 candidate scaletempo warning: bad input or output format main warning: no audio filter module matching "scaletempo" could be loaded main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) main debug: looking for audio filter module: 1 candidate scaletempo debug: format: 48000 rate, 2 nch, 4 bps, fl32 scaletempo debug: params: 30 stride, 0.200 overlap, 14 search scaletempo debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode main debug: using audio filter module "scaletempo" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: filter(s) 'mpga'->'fl32' 48000 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "mpgatofixed32" main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: found a filter for the whole conversion main debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo vout_directx debug: created video sub-window vout_directx debug: Vout EventThread running vout_directx debug: DirectXInitDDraw main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "bandlimited_resampler" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: found a filter for the whole conversion main debug: End of audio preroll vout_directx debug: directx-device: vout_directx debug: DirectXEnumCallback: Driver video primario, display vout_directx debug: DirectXEnumCallback: ATI Radeon HD 4800 Series, \\.\DISPLAY1 vout_directx debug: selecting ATI Radeon HD 4800 Series, \\.\DISPLAY1 vout_directx debug: screen dimensions (0x0,1680x1050) vout_directx debug: DirectDraw Capabilities: overlay=1 yuvoverlay=1 can_deinterlace_overlay=1 colorkey=1 stretch=1 bltfourcc=1 vout_directx debug: End DirectXInitDDraw vout_directx debug: DirectXCreateDisplay vout_directx debug: DirectXCreateClipper vout_directx debug: disabling screen saver main debug: using video output module "vout_directx" main debug: TIMER module_need() : 107.000 ms - Total 107.000 ms / 1 intvls (Avg 107.000 ms) main debug: Deinterlacing available vout_directx debug: NewPictureVec overlay:yes chroma:YV12 vout_directx debug: YUV overlay created successfully vout_directx debug: End NewPictureVec (succeeded) main debug: got 1 direct buffer(s) main debug: pic render sz 720x416, of (0,0), vsz 720x416, 4cc I420, ar 186923:108000, sar 1:1, msk r0x0 g0x0 b0x0 main debug: pic in sz 720x416, of (0,0), vsz 720x416, 4cc I420, ar 186923:108000, sar 1:1, msk r0x0 g0x0 b0x0 main debug: pic out sz 720x416, of (0,0), vsz 720x416, 4cc I420, ar 186923:108000, sar 1:1, msk r0x0 g0x0 b0x0 main debug: direct render, mapping render pictures 0-14 to system pictures 1-15 main debug: End of video preroll main debug: Received first picture freetype debug: using fontsize: 26 main debug: looking for video blending module: 1 candidate blend debug: chroma: YUVA -> I420 main debug: using video blending module "blend" main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms) qt4 debug: Updating the geometry main debug: Decoder buffering done in 274 ms main warning: PTS is out of range (-10000), dropping buffer main warning: PTS is out of range (-34000), dropping buffer mpgatofixed32 debug: libmad error: bad main_data_begin pointer main debug: Post-processing available qt4 debug: Qt: Entering Fullscreen main warning: output date isn't PTS date, requesting resampling (-46730) main warning: buffer is 46730 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-44354) main warning: timing screwed, stopping resampling main warning: buffer is 90043 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-45896) main warning: audio drift is too big (-135272), clearing out main warning: timing screwed, stopping resampling main warning: mixer start isn't output start (-54136) main debug: audio output is starving (141667), playing silence main warning: output date isn't PTS date, requesting resampling (-42730) main warning: buffer is 42563 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-49000) main warning: timing screwed, stopping resampling main warning: buffer is 90813 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-41000) main warning: audio drift is too big (-131188), clearing out main warning: timing screwed, stopping resampling main warning: mixer start isn't output start (-65560) main debug: audio output is starving (175730), playing silence main warning: output date isn't PTS date, requesting resampling (-41730) main warning: buffer is 41564 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-46083) main warning: timing screwed, stopping resampling main warning: buffer is 86856 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-40312) main warning: audio drift is too big (-126897), clearing out main warning: timing screwed, stopping resampling main warning: mixer start isn't output start (-64560) main debug: audio output is starving (170750), playing silence main warning: output date isn't PTS date, requesting resampling (-45730) main warning: buffer is 45563 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-42000) main warning: timing screwed, stopping resampling main warning: buffer is 86959 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-50000) main warning: audio drift is too big (-136376), clearing out main warning: timing screwed, stopping resampling main warning: mixer start isn't output start (-64408) main debug: audio output is starving (169730), playing silence main warning: output date isn't PTS date, requesting resampling (-46709) main warning: buffer is 46542 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-46021) main warning: timing screwed, stopping resampling main warning: buffer is 91959 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-40354) main warning: audio drift is too big (-131730), clearing out main warning: timing screwed, stopping resampling main warning: mixer start isn't output start (-61856) main debug: audio output is starving (169709), playing silence main warning: output date isn't PTS date, requesting resampling (-49709) main warning: buffer is 49542 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-41041) main warning: timing screwed, stopping resampling main warning: buffer is 90021 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-42000) main warning: audio drift is too big (-131688), clearing out main warning: timing screwed, stopping resampling main warning: mixer start isn't output start (-62496) main debug: audio output is starving (170730), playing silence main warning: output date isn't PTS date, requesting resampling (-41730) main warning: buffer is 41563 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-47020) main warning: timing screwed, stopping resampling main warning: buffer is 87875 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-42000) main warning: audio drift is too big (-129500), clearing out main warning: timing screwed, stopping resampling main warning: mixer start isn't output start (-63264) main debug: audio output is starving (168730), playing silence main warning: output date isn't PTS date, requesting resampling (-41709) main warning: buffer is 41543 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-42000) main warning: timing screwed, stopping resampling main warning: buffer is 83106 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-42375) main warning: audio drift is too big (-125168), clearing out main warning: timing screwed, stopping resampling main warning: mixer start isn't output start (-54560) main debug: audio output is starving (148667), playing silence main warning: output date isn't PTS date, requesting resampling (-50000) main warning: buffer is 49833 in advance, triggering downsampling main debug: control type=1
In 0.8.6i:

Code: Select all

avi debug: old:0 < new 0 avi debug: old:0 < new 0 mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:128 main debug: no aout present, spawning one main debug: looking for audio output module: 3 candidates aout_directx debug: OpenAudio ffmpeg warning: looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag (mpeg4@01F0F550) ffmpeg warning: looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag (mpeg4@01F0F550) main debug: no usable vout present, spawning one main debug: Registering subpicture channel, ID: 2 main debug: Registering subpicture channel, ID: 3 main debug: Registering subpicture channel, ID: 4 main debug: Registering subpicture channel, ID: 5 main debug: window size: 720x416 main debug: looking for video output module: 6 candidates vout_directx debug: creating DirectXEventThread main debug: waiting for thread completion vout_directx debug: DirectXCreateWindow vout_directx debug: created video sub-window main debug: thread 4256 (DirectX Events Thread) created at priority 0 (directx.c:278) vout_directx debug: DirectXEventThread running vout_directx debug: DirectXInitDDraw vout_directx debug: directx-device: vout_directx debug: DirectXEnumCallback: Driver video primario, display vout_directx debug: DirectXEnumCallback: ATI Radeon HD 4800 Series, \\.\DISPLAY1 vout_directx debug: selecting ATI Radeon HD 4800 Series, \\.\DISPLAY1 vout_directx debug: screen dimensions (0x0,1680x1050) vout_directx debug: DirectDraw Capabilities: overlay=1 yuvoverlay=1 can_deinterlace_overlay=1 colorkey=1 stretch=1 bltfourcc=1 vout_directx debug: End DirectXInitDDraw vout_directx debug: DirectXCreateDisplay vout_directx debug: DirectXCreateClipper vout_directx debug: disabling screen saver main debug: using video output module "vout_directx" main debug: waiting for thread completion vout_directx debug: NewPictureVec overlay:yes chroma:YV12 vout_directx debug: YUV overlay created successfully vout_directx debug: End NewPictureVec (succeeded) main debug: got 1 direct buffer(s) main debug: picture in 720x416 (0,0,720x416), chroma I420, ar 186923:108000, sar 1:1 main debug: picture user 720x416 (0,0,720x416), chroma I420, ar 186923:108000, sar 1:1 main debug: picture out 720x416 (0,0,720x416), chroma I420, ar 186923:108000, sar 1:1 main debug: direct render, mapping render pictures 0-6 to system pictures 1-7 main debug: thread 4340 (video output) created at priority 1 (video_output/video_output.c:421) aout_directx debug: found device: Driver audio principale aout_directx debug: found device: Realtek HD Audio output aout_directx debug: found device: ATI HD Audio rear output aout_directx debug: device supports 2 channels aout_directx debug: device supports 1 channel aout_directx debug: creating DirectSoundThread main debug: thread 4708 (DirectSound Notification Thread) created at priority 15 (directx.c:372) main debug: using audio output module "aout_directx" main debug: output 's16l' 48000 Hz Stereo frame=1 samples/4 bytes main debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes main debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "float32tos16" main debug: found a filter for the whole conversion main debug: looking for audio mixer module: 3 candidates aout_directx debug: DirectSoundThread ready main debug: using audio mixer module "trivial_mixer" main debug: input 'mpga' 48000 Hz Stereo frame=1152 samples/969 bytes main debug: filter(s) 'mpga'->'fl32' 48000 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "mpgatofixed32" main debug: found a filter for the whole conversion main debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "bandlimited_resampler" main debug: found a filter for the whole conversion main warning: PTS is out of range (52972), dropping buffer main warning: PTS is out of range (28997), dropping buffer main warning: PTS is out of range (5018), dropping buffer main warning: PTS is out of range (-18962), dropping buffer mpgatofixed32 debug: libmad error: bad main_data_begin pointer vout_directx warning: DirectXUpdateOverlay cannot move/resize overlay vout_directx warning: DirectXUpdateOverlay cannot move/resize overlay main debug: control type=0
I see there is a problem with 0.8.6i too, but in this version there is no silence and the audio is no choppy.
The silence is where i hear the silence and that's why audio is choppy. Can anyone help me decode these messages and find a solution? thanks a lot

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Choppy audio in video files with latest releases

Postby VLC_help » 09 Aug 2009 14:04

Does removing %appdata%\vlc folder help?

Carnacky
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Aug 2009 04:43

Re: Choppy audio in video files with latest releases

Postby Carnacky » 09 Aug 2009 14:09

Thanks for the reply, no, it doesn't help.
i write here viewtopic.php?f=14&t=62980 that i think it's a problem related to video infact when i set video output on windows gdi i don't have the problem. in other cases, directx, opengl etc, audio is choppy...

Carnacky
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Aug 2009 04:43

Re: Choppy audio in video files with latest releases

Postby Carnacky » 09 Aug 2009 17:59

UPDATE:
Well, when i set windows gdi in video output i have no problem but i've noticed something that could help to isolate the problem. With the problem, so with video output on default, i have more silences if i set audio output on waveout. If it's on directx, only every 5 seconds...
Hope it could be helpful for vlan guru to solve the problem
thanks

Skavin
New Cone
New Cone
Posts: 2
Joined: 11 Aug 2009 23:03

Re: Choppy audio in video files with latest releases

Postby Skavin » 11 Aug 2009 23:13

do you have power saving enabled?
I have found the same issue and with GIGABYTE Dynamic Energy Saver enabled get audio stuttering, but only in VLC winamp is fine
with power saving disabled I get clean audio
its an easy test.

Carnacky
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Aug 2009 04:43

Re: Choppy audio in video files with latest releases

Postby Carnacky » 12 Aug 2009 03:28

Thanks for the suggestion! Infact i had the power saving enabled, but disabling it i have the same problem, only less. The silence isn't often as before...
BTW it could be a good hint!
Thanks

Code: Select all

main warning: output date isn't PTS date, requesting resampling (-41730) main warning: buffer is 41730 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-42020) main warning: timing screwed, stopping resampling main warning: buffer is 71438 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-41959) main warning: output date isn't PTS date, requesting resampling (-43021) main warning: audio drift is too big (-127210), clearing out main warning: timing screwed, stopping resampling main warning: mixer start isn't output start (-55576) main debug: audio output is starving (143730), playing silence main warning: output date isn't PTS date, requesting resampling (-43730) main warning: buffer is 43563 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-42979) main warning: timing screwed, stopping resampling main warning: buffer is 75605 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-41021) main warning: output date isn't PTS date, requesting resampling (-41000) main warning: timing screwed, stopping resampling main warning: buffer is 118813 in advance, triggering downsampling main warning: output date isn't PTS date, requesting resampling (-41000) main warning: audio drift is too big (-147522), clearing out main warning: timing screwed, stopping resampling main warning: mixer start isn't output start (-64408) main debug: audio output is starving (165730), playing silence main warning: output date isn't PTS date, requesting resampling (-42750) main warning: buffer is 42583 in advance, triggering downsampling main debug: incoming request - stopping current input

Opacus
New Cone
New Cone
Posts: 2
Joined: 12 Aug 2009 13:11

Re: Choppy audio in video files with latest releases

Postby Opacus » 12 Aug 2009 13:17

Hey,

I'm having the same problem, thought it'd be useless to make a new topic about it.
I also have this skipping. I'll try disabeling the energy saver, but I'd rather not, since my pc is already rather power consuming.
It's also only happening in VLC. Not even in Quicktime, which is much heavier on your pc.

My specs are:
Intel Core i7 920 [Overclocked to 3,66ghz]
4gb ddr3 ram @ 1600mhz
Ati Radeon 4870X2 2048MB
WD Caviar Black 640gb

So I sincerely doubt it has to do anything with my hardware.
But VLC used to be my standard player for every single movie, but I can't stand that sound skipping.
So I'd love to have a better solution than just disabeling power saving.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Choppy audio in video files with latest releases

Postby VLC_help » 12 Aug 2009 18:24

This issue isn't related to heaviness of programs. It has something to with timing issues which show up on certain setups (CPU speed or amount of RAM isn't related to this). It seems that power saving options can make the effect worse.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 39 guests