MOV - Input audio format PCM - output audio gibberish

Started by Grobe, July 07, 2013, 11:33:00 PM

Previous topic - Next topic

Grobe

Avidemux 2.6.4 (r8751), Windows XP sp3

Sample files:
Source file (MOV) taken from a Fujifilm HS-10 camera
Resulting file - MP4 (x264 + MP3)

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

  • When Audio output is set to "Copy", i get an error message saying: "Only AAC & mpegaudio is supported for audio
  • When choosing AAC or MP3 (independent of bitrate), the resulting audio on output video is just gibberish. Just listen at the end of the resulting file that I uploaded.

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.

Jan Gruuthuse

#1
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 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 7.7 MB package with
- audacity extracted audio track exported to mp3
- re-encoded video with replaced audio track


Flemish ;)

toracat

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