Author Topic: Trouble with WMAPRO audio  (Read 373 times)

John Hagan

  • Newbie
  • *
  • Posts: 9
Trouble with WMAPRO audio
« 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).

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3015
Re: Trouble with WMAPRO audio
« Reply #1 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).
« Last Edit: March 17, 2019, 09:50:15 PM by eumagga0x2a »

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3015
Re: Trouble with WMAPRO audio
« Reply #2 on: March 21, 2019, 06:59:35 PM »
Please give 2.7.3 a try with WMAPRO audio.

John Hagan

  • Newbie
  • *
  • Posts: 9
Re: Trouble with WMAPRO audio
« Reply #3 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!

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3015
Re: Trouble with WMAPRO audio
« Reply #4 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.