Avidemux Forum

Avidemux => Windows => Topic started by: hesperides on February 05, 2016, 06:20:53 PM

Title: No audio in output file (mp4 format)
Post by: hesperides on February 05, 2016, 06:20:53 PM
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:

Code: [Select]
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:

Code: [Select]
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.
Title: Re: No audio in output file (mp4 format)
Post by: AQUAR on February 06, 2016, 03:58:04 AM
Maybe check your audio remix setting - as the output audio has just one channel.
Its just a thought!
Title: Re: No audio in output file (mp4 format)
Post by: mean on February 06, 2016, 06:32:44 AM
is there audio with vlc ?
Title: Re: No audio in output file (mp4 format)
Post by: hesperides on February 06, 2016, 04:53:37 PM
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.
Title: Re: No audio in output file (mp4 format)
Post by: 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.
ps:- Use a free dropbox account, mega or similar webservice (free public access, without registration to download your uploaded video) thank you.
Title: Re: No audio in output file (mp4 format)
Post by: AQUAR on February 07, 2016, 11:29:27 AM
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 ?).
Title: Re: No audio in output file (mp4 format)
Post by: hesperides on February 07, 2016, 06:37:02 PM
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?
Title: Re: No audio in output file (mp4 format)
Post by: hesperides on February 07, 2016, 06:49:52 PM
If 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.

Title: Re: No audio in output file (mp4 format)
Post by: mean on February 07, 2016, 07:25:47 PM
yes a piece of the original file , *if* the problem happens with that piece, would help
Title: Re: No audio in output file (mp4 format)
Post by: hesperides on February 08, 2016, 06:43:42 AM
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.
Title: Re: No audio in output file (mp4 format)
Post by: Jan Gruuthuse on February 08, 2016, 07:09:19 AM
Not downloading for me: http://www94.zippyshare.com/d/kCvd6clP/40842/xyz.zip. Looks like zippishare websiite is crap.
Title: Re: No audio in output file (mp4 format)
Post by: 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 ?
Title: Re: No audio in output file (mp4 format)
Post by: AQUAR on February 08, 2016, 09:08:23 AM
As Mean said, there is no audio just video from mediacorp.
Title: Re: No audio in output file (mp4 format)
Post by: Jan Gruuthuse on February 08, 2016, 10:29:32 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.
Title: Re: No audio in output file (mp4 format)
Post by: hesperides on February 08, 2016, 11:07:28 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.
Title: Re: No audio in output file (mp4 format)
Post by: hesperides on February 08, 2016, 11:11:57 AM
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.

As requested, I made a fresh recording, did not process it using any software including Avidemux and uploaded it to:

http://www34.zippyshare.com/v/SmtH4ehg/file.html

For your info, Windows Media Player in Microsoft Windows 8.1 played it back with some pixelation. However the video player, which has no name, in Xbox Video --> TV Store of the same OS played it back flawlessly.
Title: Re: No audio in output file (mp4 format)
Post by: AQUAR on February 08, 2016, 12:15:56 PM
MKVToolnix says "Malformed AAC codec initialization data found"
Mediainfo, ADM, TSmuxer all interpret the audio channels differently (confused more likely).
Its probably due to packet errors/lost in the transport stream.
None of my directshow audio filters (or players) make a sound!

Only Mean will have the knowledge if ADM can be tweaked to work with such "malformed" tracks.
Title: Re: No audio in output file (mp4 format)
Post by: mean on February 08, 2016, 12:55:47 PM
Is it DVR-MS format ?
I.e. the non standard format used by microsoft for its PVR solution ?
Title: Re: No audio in output file (mp4 format)
Post by: hesperides on February 08, 2016, 02:35:14 PM
Is it DVR-MS format ?
I.e. the non standard format used by microsoft for its PVR solution ?

Frankly I don't know the answer to your question.

All I know is that I use this product to record Digital TV high-definition programs: http://www.acryan.com/live-digital-tv/
Title: Re: No audio in output file (mp4 format)
Post by: Jan Gruuthuse on February 08, 2016, 03:52:56 PM
Singapore’s DVB-T2: http://www.enensys.com/technologies/dvb-t2-overview.html
All I could currently find.

Title: Re: No audio in output file (mp4 format)
Post by: mean on February 08, 2016, 04:18:46 PM
Ok , i'll look into it, it might take a bit of time

Title: Re: No audio in output file (mp4 format)
Post by: hesperides on February 08, 2016, 07:16:26 PM
Ok , i'll look into it, it might take a bit of time

Thanks. I am not in a hurry.

In one of my earlier posts, I mentioned that TEncoder Video Converter is able to produce an output file in mp4 format with both video and audio. It is just that pixelation occurs in some parts of the video playback of the output file. Moreover the size of the output file produced by TEncoder can be incredibly small. A 1 GB original TS file can be shrunk to just 150MB mp4 file.

The URL to TEncoder is http://sourceforge.net/projects/tencoder/
Title: Re: No audio in output file (mp4 format)
Post by: Tisthammerw on March 31, 2016, 12:01:30 AM
I am using the latest version of Avidemux for Windows (64-bit), win64 2.6.11beta1, on Microsoft Windows 8.1 Pro, 64-bit.

I have the same problem using Windows 10, 64-bit.

Avidemux version: 2.6.12.
Video Output: Mpeg4 AVC (x264)
Output Format: MP4v2 Muxer
Audio Output: Copy (I'm using AAC, mono channel)

I've already went to the "Audio" tab in the preferences and the "AudioDevice" is selected as "Win32" rather than "Dummy."
Title: Re: No audio in output file (mp4 format)
Post by: AQUAR on March 31, 2016, 11:43:54 AM
I'll have to DL the latest nightly and see if there is a problem on win10.

I only have win 10 on virtualbox though (hate the data mining of this OS).
Title: Re: No audio in output file (mp4 format)
Post by: Tisthammerw on April 02, 2016, 11:39:18 AM
Don't understand your problem? Using windows 10, 64-bit? ...?

If that's in response to me, recall I quoted the OP and said "I have the same problem using Windows 10, 64-bit."  :P

That is, I have no audio in the output file (mp4 format).
Title: Re: No audio in output file (mp4 format)
Post by: AQUAR on April 02, 2016, 11:49:08 AM
@ Tisthammerw

Let me quote the Author of ADM:
Is it DVR-MS format ?
I.e. the non standard format used by microsoft for its PVR solution ?










Title: Re: No audio in output file (mp4 format)
Post by: Tisthammerw on April 02, 2016, 12:09:55 PM
@ Tisthammerw

Let me quote the Author of ADM:
Is it DVR-MS format ?
I.e. the non standard format used by microsoft for its PVR solution ?

Nope.  It was actually a series of PNG images I was attempting to transform into a video.  My most recent attempt was to just not bother adding audio when doing the first rendering, giving me an mp4 video without audio.  I then opened that mp4 video with Avidemux and attempted to copy the AAC track, but still no luck.
Title: Re: No audio in output file (mp4 format)
Post by: Tisthammerw on April 03, 2016, 12:50:22 AM
You should not have highjacked this thread. Your problem is not at all related to the OP topic.

If I recall the OP topic is that there is no audio in the output file whereby the output file is mp4 format.  Was I mistaken?  If not, please remember that this is the same problem I reported (http://avidemux.org/smif/index.php/topic,16593.msg74425.html#msg74425).

How can you copy a none existing audio track? You just rendered image to video.

That's not all I did; I also attempted to copy the audio track I added to the project.  I also rendered the series of images to a video, and then tried to use Avidemux to add the audio track, once again selecting the "Copy" option for the AAC track I installed for the project.  (This attempt to copy the audio was likewise unsuccessful.)
Title: Re: No audio in output file (mp4 format)
Post by: AQUAR on April 03, 2016, 10:15:36 AM
@ Tisthammerw

Your issue "sounds" the same but isn't from the same baseline.
Best you start a new thread if the advise from Jan doesn't resolve your issue (which looks like unfamiliarity in using ADM!).




 
 
Title: Re: No audio in output file (mp4 format)
Post by: Tisthammerw on April 03, 2016, 12:45:33 PM
Adding audio tracks is not done with Copy, is done by appending: Menu -> Audio -> Select Track, in Audio Tracks Configuration:
Choose a track, click on [Track # ] and change this  to [.... Add audio track] and browse to audio track you want to add in the video and select the audio file.

That's...precisely what I did when I rendered my mp4 video, and there was no audio in the output file.  Hence my posting in this thread.

   
It doesn't make sense, you now have already 2 problems
- I also attempted to copy the audio track I added to the project.
- and then tried to use Avidemux to add the audio track, once again selecting the "Copy" option for the AAC track I installed for the project.

No that's not correct.  I'll try explaining the situation again.  In my first attempt to render the mp4 video, it was originally an image sequence and I also added the audio track.  The "Copy" option was selected for the "Audio Output" section; I was attempting to copy the audio track I had installed for the project.  In my second attempt to get the audio in the mp4 file, I had rendered the image sequence into a video.  I then used Avidemux to open that video, install the audio track, and again I selected "Copy" for the "Audio Output" section.  Once again, there was no audio in the mp4 output file.

The OP has original source video with included audio track.

Let me see if I understand this correctly.  The OP reports there is no audio in output file (mp4 format).  I also have no audio in the output file (mp4 format).  But because his original source video already had the audio track within it (as opposed to being an audio track that was added), you want me to start a new thread?  I'll do that if you want me to; I'm just asking because I want to be clear before I start being accused of creating a duplicate thread.
Title: Re: No audio in output file (mp4 format)
Post by: Tisthammerw on April 03, 2016, 12:46:44 PM
@ Tisthammerw

Your issue "sounds" the same but isn't from the same baseline.
Best you start a new thread if the advise from Jan doesn't resolve your issue (which looks like unfamiliarity in using ADM!).

See my post above (http://avidemux.org/smif/index.php/topic,16593.msg74443.html#msg74443).  I suspect Jan might have misunderstood the situation I was facing.

Still think I should start a new thread?
Title: Re: No audio in output file (mp4 format)
Post by: AQUAR on April 03, 2016, 01:41:15 PM
As I said, your issue sounds the same viz, ending up with no sound in mp4, as per the OP issue.

However your starting point is quite different, so the reasons for the lack of sound in MP4 may also be quite different.

I suggest you start a new thread that properly defines your situation/workflow.

Even if the cause turns out to be the same, there is IMHO no harm in having a "duplicate" thread that demonstrates the same issue by way of a tangent scenario.

It's up to You really if you want to wait out this thread or raise your own for maybe a more focussed discussion.


Title: Re: No audio in output file (mp4 format)
Post by: Tisthammerw on April 03, 2016, 02:03:54 PM
I suggest you start a new thread that properly defines your situation/workflow.

Even if the cause turns out to be the same, there is IMHO no harm in having a "duplicate" thread that demonstrates the same issue by way of a tangent scenario.

* Shrugs *

Okie dokie.  I'll take your advice and start a new thread (http://avidemux.org/smif/index.php/topic,16712.0.html).
Title: Re: No audio in output file (mp4 format)
Post by: Jan Gruuthuse on April 03, 2016, 05:46:02 PM
@Tisthammerw, kindly remove your postings from this thread, thank you. Each posting has at top right hand corner a remove button.
thank you