Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: eumagga0x2a on October 19, 2016, 05:28:24 PM

Title: Garbled sound with some webm videos
Post by: eumagga0x2a on October 19, 2016, 05:28:24 PM
Maybe as fallout from recent vorbis-related commits, the sound in the webm video https://www.youtube.com/watch?v=2-QbUQUaB24 (https://www.youtube.com/watch?v=2-QbUQUaB24) with format code 43 has become garbled on playback. ffprobe reports for the file:

Input #0, matroska,webm, from 'a_dog_and_a_parrot.webm':
  Metadata:
    encoder         : google
  Duration: 00:00:24.50, start: 0.000000, bitrate: 900 kb/s
    Stream #0:0: Video: vp8, yuv420p, 480x360, SAR 1:1 DAR 4:3, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
    Stream #0:1: Audio: vorbis, 44100 Hz, mono, fltp (default)
Title: Re: Garbled sound with some webm videos
Post by: mean on October 19, 2016, 05:50:17 PM
Works ok here, but i have a stereo sound track
?
Title: Re: Garbled sound with some webm videos
Post by: eumagga0x2a on October 19, 2016, 05:53:55 PM
Yeah, Google has ruined the testcase... I used this video retrieved four years ago with mono. Trying to identify the first bad commit now.
Title: Re: Garbled sound with some webm videos
Post by: eumagga0x2a on October 19, 2016, 06:17:24 PM
The first bad commit is [lavcodec/audio] Enable vorbis decoder (https://github.com/mean00/avidemux2/commit/4841380a932af84b57be96d47c21de8ea0a9c2d8).

I attach the first 100K of the audio track demonstrating the issue.
Title: Re: Garbled sound with some webm videos
Post by: eumagga0x2a on October 19, 2016, 06:18:01 PM
Here comes the second chunk...
Title: Re: Garbled sound with some webm videos
Post by: eumagga0x2a on October 19, 2016, 06:18:35 PM
...and the last one.
Title: Re: Garbled sound with some webm videos
Post by: eumagga0x2a on October 19, 2016, 06:49:38 PM
A better, minimal test case. The sound should be silent, but is garbled noise in Avidemux. ffprobe reports:

Input #0, matroska,webm, from 'frame800x640-with-mono-sound.mkv':
  Metadata:
    ENCODER         : Lavf57.25.100
  Duration: 00:00:05.16, start: 0.000000, bitrate: 62 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 800x640, SAR 1:1 DAR 5:4, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Metadata:
      ENCODER         : Lavc57.24.102 libx264
      DURATION        : 00:00:05.163000000
    Stream #0:1: Audio: vorbis, 48000 Hz, mono, fltp (default)
    Metadata:
      ENCODER         : Lavc57.24.102 libvorbis
      DURATION        : 00:00:05.007000000

Title: Re: Garbled sound with some webm videos
Post by: mean on October 19, 2016, 07:39:47 PM
If you delete the ad_lav_xxx.so, it will pick up the libvorbis one
Is the sound ok with the libvorbis one ?
Title: Re: Garbled sound with some webm videos
Post by: mean on October 19, 2016, 07:42:23 PM
ok, can reproduce i think
thanks
Title: Re: Garbled sound with some webm videos
Post by: eumagga0x2a on October 19, 2016, 07:54:17 PM
Quote from: mean on October 19, 2016, 07:39:47 PM
If you delete the ad_lav_xxx.so, it will pick up the libvorbis one
Is the sound ok with the libvorbis one ?

Yes, it works fine with libADM_ad_lav.so moved.
Title: Re: Garbled sound with some webm videos
Post by: mean on October 21, 2016, 06:29:43 AM
Should work now
Title: Re: Garbled sound with some webm videos
Post by: eumagga0x2a on October 21, 2016, 08:13:15 AM
Confirming fixed by [AudioDecoder/ff] Fix decoding to float (obvious for mono streams) (https://github.com/mean00/avidemux2/commit/86da6684f4c3340a90f434e77da046058f70d142), thanks! Do we have everything for a release then, a couple of editor bits and regeneration of .ts files + a couple of translations outstanding?
Title: Re: Garbled sound with some webm videos
Post by: mean on October 21, 2016, 09:52:34 AM
Some sierra + win32 stuff
Title: Re: Garbled sound with some webm videos
Post by: eumagga0x2a on October 21, 2016, 09:59:16 AM
Thanks, I just mind the looming release of Fedora 25 in 2 or 3 weeks (if they delay), it would be nice to bring the rpmfusion.org Avidemux package maintainers off the old 2.6.12 release with Qt4 in time for Fedora 25 release.