Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: Grobe on July 07, 2013, 11:33:00 PM

Title: MOV - Input audio format PCM - output audio gibberish
Post by: Grobe on July 07, 2013, 11:33:00 PM
Avidemux 2.6.4 (r8751), Windows XP sp3

Sample files:
Source file (MOV) taken from a Fujifilm HS-10 camera (http://rapidshare.com/files/3873510598/DSCF2708.MOV)
Resulting file - MP4 (x264 + MP3) (http://rapidshare.com/files/2294671351/Crow_justsittingthere.mp4)

The issue seems to affect only the source video files taken with this spesific camera. I can describe the problem in short:

Note: I use a free account for file uploads, and therefore the files might be deleted when a month is passed. Just PM me if the files is gone, and I will upload them.
Title: Re: MOV - Input audio format PCM - output audio gibberish
Post by: Jan Gruuthuse on July 08, 2013, 06:42:16 AM
Currently avidemux has an issue with this kind of PCM
Audio
ID                                       : 2
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : sowt
Duration                                 : 21s 21ms
Source duration                          : 21s 26ms
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 1.92 MiB (7%)
Source stream size                       : 1.92 MiB (7%)
Language                                 : English
Encoded date                             : UTC 2013-07-07 23:20:28
Tagged date                              : UTC 2013-07-07 23:20:28


Workaround: install audacity (http://audacity.sourceforge.net/download/) if you not already done so. Windows users: install the Optional FFmpeg import/export library.
Now you should be able to drag and drop your videos on audacity and export the audiotrack (mp3, ...)
and replace the existing audio track with it in avidemux:
Main menu: Audio: Select Track: Track 1 [v]: click on Track 0 form video ... and select .... Add audio Track

download 7zip (http://www.7-zip.org/) 7.7 MB package with
- audacity extracted audio track exported to mp3
- re-encoded video with replaced audio track


Flemish ;)
Title: Re: MOV - Input audio format PCM - output audio gibberish
Post by: toracat on July 08, 2013, 11:56:10 PM
Thanks for posting the mediainfo. I have a similar issue with the files saved by Canon Powershot G15.


Audio
ID                                       : 2
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : sowt
Duration                                 : 7s 40ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits


My workaround is to use ffmpeg (this is under Linux) :


ffmpeg -i <infile> -vcodec copy -acodec libfaac <outfile>


The resultant files (audio AAC) load in avidemux 2.6.4 just fine.

More specifically, the camera names the files in the form of MVIxxx.MOV. I save the output as aacxxx.mov. So, I run the following bash one-liner to do a batch conversion of all files in a directory. One other thing it does is to preserve each file's timestamp.


for i in $(ls . | grep ^MVI|sed 's/.MOV//g');do  ffmpeg -i $i".MOV" -vcodec copy -acodec libfaac aac$i".mov" ; touch -d "$(ls -l $i".MOV" | awk '{print $6" "$7" "$8}')" aac$i".mov" ; done