Avidemux Forum

Avidemux => Windows => Topic started by: hiro on September 04, 2017, 01:58:16 PM

Title: ADM 2.6.x and 2.7.0 PCM problem (2.5.6: NO audio problem)
Post by: hiro on September 04, 2017, 01:58:16 PM
Hi

Whatever ADM 2.6 version I try, and 2.7.0, when I recode any video, selecting any .avi compatible codec — and PCM audio, the VIDEO stream only will play

—— but: no playable audio.


Both "PotPlayer" and "VLC" (+ other players I tested longer ago) see an audio stream but complain: "Can't play audio stream / no compatible codec found" etc.


---- "VLC" report on ADM 2.6.x and 2.7.0 PCM audio stream of (HuffYUV and Xvid / makes no difference) .avi recoded files (from an AVC H.264 sample vid. containing .aac audio, previously recoded using ADM 2.6.8 and 2.7.0):

Type: audio
Codec: araw
Sampling rate: 44100 Hz
Bitrate: 1411 kb/s


I tried to resample the audio to 44100 Hz, + check "stereo" option and more; but no change...

Note 1: ADM 2.5.6 only will play the video including the audio stream. But again, no other player.

_______________________


Note 2: it never happens with ADM 2.5.6 .avi PCM audio stream / playing alright / no complaints:


---- "VLC" report — on the same test video sample, recoded to (HuffYUV) .avi, using ADM 2.5.6:

Type: audio
Codec: PCM S16 LE (araw)
Ch.: Stereo
Sampling rate: 44100 Hz
Bits per sample: 16

.
Title: Interleave, duration : 20 ms (1.00 video frame)
Post by: Jan Gruuthuse on September 05, 2017, 07:31:54 AM
Yes, VLC has issues playing (MediaInfo)
Audio
ID                                       : 1
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : 1
Duration                                 : 37s 880ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 6.94 MiB (1%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 20 ms (1.00 video frame)


Saving audio with PCM in 2.7 produces audio like above.
Title: Interleave, duration : 5400 ms (270.00 video frames)
Post by: Jan Gruuthuse on September 05, 2017, 07:43:54 AM
Developers:
Audio
ID                                       : 1
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : 1
Duration                                 : 37s 880ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 6.94 MiB (15%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 5400 ms (270.00 video frames)
Title: Re: ADM 2.6.x and 2.7.0 PCM problem (2.5.6: NO audio problem)
Post by: Jan Gruuthuse on September 05, 2017, 08:02:03 AM
PM send with sample videos regarding PCM issue to developers
Title: Re: ADM 2.6.x and 2.7.0 PCM problem (2.5.6: NO audio problem)
Post by: hiro on September 05, 2017, 08:15:49 AM
Thanks for the answers, incl. "PM send with sample videos regarding PCM issue to developers"


— but it's not "VLC" only, that won't play 2.6.x and 2.7.0 PCM recoded .avi streams ("VLC" only, I wouldn't care):

e.g. "PotPlayer" + several others won't either; I also tried to convert the result using "Pazera Audio Extractor" (rather tolerant, on all kinds of videos): same problem...

Now, since ADM 2.5.6 does play that stubborn PCM stream alright, I'm wondering which encoding error — or muxing oddity, may be? — bugs most other players.

Therefore + so far, after encoding with 2.6.x or 7, I'm still forced to use ADM 2.5.6 to recode the audio stream only...


.
Title: Re: ADM 2.6.x and 2.7.0 PCM problem (2.5.6: NO audio problem)
Post by: Jan Gruuthuse on September 05, 2017, 08:45:23 AM
We have to wait for developers findings and eventually a solution.
My guess is Interleave, duration                     : 20 ms (1.00 video frame) causes the problem, PCM re-encoded in 2.7.

For now with avidmux 2.7.
- Reload video with newly PCM encoded audio (kind of not playing in VLC)
- Menu: audio: Save Audio
- Menu: Select track: Track 1 [V] enabled
- [track 0 from video (PCM, stereo, ....kbps) <- click and select [.... Add audio track]
-- browse to the just saved audio track, [OK]
-- save video

video should now be fine and play in media players


Title: Re: ADM 2.6.x and 2.7.0 PCM problem (2.5.6: NO audio problem)
Post by: mean on September 05, 2017, 01:08:56 PM
I can't reproduce the problem
What are the steps ?

The not playing file has bit per sample =0, but i cannot make avidemux do that
Title: Re: ADM 2.6.x and 2.7.0 PCM problem (2.5.6: NO audio problem)
Post by: Jan Gruuthuse on September 05, 2017, 02:45:36 PM
load the video, if you don't have on your system https://www.dropbox.com/s/a8scxh0m134zxh0/720p4audioTracks3sat.ts?dl=0

video output:mpeg4 asp (xvid4)
avi muxer
audio output: pcm

Menu: audio: Select track:
only enable Track 1 [v]
and select track 1 from video
save video

or load video and run attached script (sorry for late response)
Title: Re: ADM 2.6.x and 2.7.0 PCM problem (2.5.6: NO audio problem)
Post by: Jan Gruuthuse on September 05, 2017, 02:58:44 PM
Strangely enough, Totem Movie Player produces the audio track?
totem (3.18.1-1ubuntu4) xenial
Title: Re: ADM 2.6.x and 2.7.0 PCM problem (2.5.6: NO audio problem)
Post by: mean on September 05, 2017, 03:27:14 PM
Maybe fixed
Title: Re: ADM 2.6.x and 2.7.0 PCM problem (2.5.6: NO audio problem)
Post by: Jan Gruuthuse on September 05, 2017, 03:36:55 PM
Works now.
available in nightly: avidemux_r170905_win64Qt5_459 http://www.avidemux.org/nightly/win64/