News:

--

Main Menu

No audio in output file (mp4 format)

Started by hesperides, February 05, 2016, 06:20:53 PM

Previous topic - Next topic

hesperides

I am using the latest version of Avidemux for Windows (64-bit), win64 2.6.11beta1, on Microsoft Windows 8.1 Pro, 64-bit.

MediaInfo gives the following data about my input file:

General
Complete name                            : C:\test\xyz.ts
Format                                   : MPEG-TS
File size                                : 1.00 GiB
Duration                                 : 16mn 36s
Overall bit rate mode                    : Variable
Overall bit rate                         : 8 622 Kbps

Video
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Format settings, GOP                     : M=4, N=12
Codec ID                                 : 27
Duration                                 : 16mn 36s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan type, store method                  : Separated fields
Scan order                               : Top Field First
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 631 (0x277)
Menu ID                                  : 16 (0x10)
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : HE-AACv2 / HE-AAC / LC
Muxing mode                              : LATM
Codec ID                                 : 17
Duration                                 : 16mn 36s
Bit rate mode                            : Variable
Channel(s)                               : 2 channels / 1 channel / 1 channel
Channel positions                        : Front: L R / Front: C / Front: C
Sampling rate                            : 48.0 KHz / 48.0 KHz / 24.0 KHz
Frame rate                               : 23.438 fps (1024 spf)
Compression mode                         : Lossy
Delay relative to video                  : -56ms

Audio #2
ID                                       : 632 (0x278)
Menu ID                                  : 16 (0x10)
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : HE-AACv2 / HE-AAC / LC
Muxing mode                              : LATM
Codec ID                                 : 17
Duration                                 : 16mn 36s
Bit rate mode                            : Variable
Channel(s)                               : 2 channels / 1 channel / 1 channel
Channel positions                        : Front: L R / Front: C / Front: C
Sampling rate                            : 48.0 KHz / 48.0 KHz / 24.0 KHz
Frame rate                               : 23.438 fps (1024 spf)
Compression mode                         : Lossy
Delay relative to video                  : -56ms


Note: I am able to playback the input file using mpc-hc player without problems. Both video and audio are OK.

I launched Avidemux for Windows, selected my input file and chose the following options:

Video decoder: Lavcodec RGB
Video output: Mpeg4-ASP (ff)
Audio output: MP3 (lame), bitrate mode: CBR, bitrate: 96
Output format: MP4v2 muxer

Encoding was 1-pass and after about 40 minutes, the output file was generated.

MediaInfo provides the following data on my output file:

General
Complete name                            : C:\Users\hesperides\Videos\000.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/isom)
File size                                : 1.97 GiB
Duration                                 : 16mn 36s
Overall bit rate                         : 17.0 Mbps

Video
ID                                       : 1
Format                                   : MPEG-4 Visual
Format settings, BVOP                    : Yes
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : 20
Duration                                 : 16mn 36s
Bit rate                                 : 17.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 25.000 fps
Minimum frame rate                       : 4.167 fps
Maximum frame rate                       : 50.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.329
Stream size                              : 1.97 GiB (100%)
Writing library                          : Lavc56.41.100

Audio #1
ID                                       : 2
Format                                   : MPEG Audio
Format version                           : Version 2
Format profile                           : Layer 3
Codec ID                                 : 69
Duration                                 : 200ms
Duration_FirstFrame                      : 80ms
Bit rate mode                            : Constant
Bit rate                                 : 96.0 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 24.0 KHz
Compression mode                         : Lossy
Stream size                              : 1.41 KiB (0%)
Title                                    : Stereo
Writing library                          : LAME3.99.5

Audio #2
ID                                       : 3
Format                                   : MPEG Audio
Format version                           : Version 2
Format profile                           : Layer 3
Codec ID                                 : 69
Duration                                 : 200ms
Duration_FirstFrame                      : 80ms
Bit rate mode                            : Constant
Bit rate                                 : 96.0 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 24.0 KHz
Compression mode                         : Lossy
Stream size                              : 1.41 KiB (0%)
Title                                    : Stereo
Writing library                          : LAME3.99.5UUUUUUUUUÃ,­


When I use mpc-hc player to play the output file, the video is OK but there is no audio.

Thanks in advance for showing me how to fix the above issue.

AQUAR

Maybe check your audio remix setting - as the output audio has just one channel.
Its just a thought!

mean


hesperides

#3
Quote from: mean on February 06, 2016, 06:32:44 AM
is there audio with vlc ?

Very good question.

I downloaded the latest version of VLC for Windows 64-bit, installed and launched it.

I opened the same media file and there was NO audio. All I heard were high-pitched squeaks here and there. The media file is a recording of a TV program broadcast in DVB-T2.

Why is MPC-HC player able to playback both the video and audio without problems?

Edited post: The media file referred to above is the source file, that is, xyz.ts not the converted mp4 file.

Jan Gruuthuse

Provide a 10 seconds in duration of such a recording, perhaps developer(s) can do something with it.
ps:- Use a free dropbox account, mega or similar webservice (free public access, without registration to download your uploaded video) thank you.

AQUAR

#5
If you look at the Mediainfo stats, it suggests that the recoded audio channels have just 1 track with a stream size of 1.41KB (ie < .0001% of total file size).
If it's really that small I wonder how come MPHC can playback the audio just fine.

Something is wrong for sure (missing signalling tables in the TS ?).

hesperides

Quote from: Jan Gruuthuse on February 07, 2016, 10:46:40 AM
Provide a 10 seconds in duration of such a recording, perhaps developer(s) can do something with it.

Are you referring to the original media file, xyz.ts?

hesperides

Quote from: AQUAR on February 07, 2016, 11:29:27 AMIf it's really that small I wonder how come MPHC can playback the audio just fine.

You might have misunderstood what I wrote in my earlier post and I've edited it to clarify things.

The MPC-HC player was able to play the original media file, xyz.ts, without problems. After converting it to mp4 format using Avidemux, the video quality is good but there is no audio when played back using MPC-HC player.

What is strange is that I used TEncoder Video Converter, http://sourceforge.net/projects/tencoder/, to convert the original media file, xyz.ts, to mp4 format. There is pixelation in the converted mp4 file but the audio is fine when the converted mp4 file was played back using MPC-HC player.


mean

yes a piece of the original file , *if* the problem happens with that piece, would help

hesperides

Guys,

I have uploaded a very short clip of the original, that is, source file to http://www94.zippyshare.com/v/kCvd6clP/file.html

The software used to clip the original file is Avidemux for Windows (latest version) and the following options were selected:

Video Decoder: Lavcodec RGB

Video output: Copy

Audio Output (2 tracks): Copy

Shift: None

Output Format: MPEG TS (muxer), VBR muxing

Please let me know if you need further details.

Jan Gruuthuse


mean

As far as i can see, xyz.ts is h264 with no audio
Is this part of the original file ?

AQUAR

As Mean said, there is no audio just video from mediacorp.

Jan Gruuthuse

Quote from: hesperides on February 08, 2016, 06:43:42 AM
The software used to clip the original file is Avidemux for Windows (latest version) and the following options were selected:
No: it is processed video with avidemux
Please provide a 10 seconds original recording: please make a new recording 10 seconds to max 1 minute. Don't process that recording and forward it like it is.

hesperides

Quote from: mean on February 08, 2016, 07:10:42 AM
As far as i can see, xyz.ts is h264 with no audio
Is this part of the original file ?

No, it's been output via Avidemux.