Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: John Hagan on March 17, 2019, 09:31:05 PM

Title: Trouble with WMAPRO audio
Post by: John Hagan on March 17, 2019, 09:31:05 PM
Here's a link to a short test WMV file with WMAPRO audio that plays with no sound in Avidemux 2.7.2 - Release:

https://1drv.ms/u/s!AtRWanx5i6MM9xLRCtti5CzaVbdu

I've also noticed on larger / longer WMV files employing WMAPRO audio that, although they scrub perfectly, when pressing play from any position, Avidemux freezes until forced close. If before attempting to play the same file, all WMAPRO audio tracks are first unchecked (that is, not enabled), the file can be scrubbed and played normally (although without any audio, of course).
Title: Re: Trouble with WMAPRO audio
Post by: eumagga0x2a on March 17, 2019, 09:46:31 PM
Thank you very much for the sample, now it might be possible to develop a fix. The freeze is a self-DOS due to enormous amount of debug output which is written to the Avidemux log when decoding of audio packets by the internal libavcodec fails (one line PER BYTE).
Title: Re: Trouble with WMAPRO audio
Post by: eumagga0x2a on March 21, 2019, 06:59:35 PM
Please give 2.7.3 (https://www.fosshub.com/Avidemux.html) a try with WMAPRO audio.
Title: Re: Trouble with WMAPRO audio
Post by: John Hagan on March 21, 2019, 08:08:03 PM
Looks--and more importantly, sounds--great! Every test file I throw at 2.7.3 with WMAPRO plays correctly.

Thanks!
Title: Re: Trouble with WMAPRO audio
Post by: eumagga0x2a on March 21, 2019, 08:18:05 PM
Glad that it helped. Moving from the old libavcodec decoding API to avcodec_send_packet / avcodec_receive_frame was the key to success.