Avidemux Forum

Avidemux => Unix-Like (Linux/Bsd/...) => Topic started by: uqbar on March 29, 2012, 07:54:33 AM

Title: No audio with X.264
Post by: uqbar on March 29, 2012, 07:54:33 AM
I'm trying to use avidemux to convert a file from "RIFF (little-endian) data, AVI, 720 x 384, 25.00 fps, video: XviD, audio: Dolby AC3 (6 channels, 48000 Hz)" to "MPEG-4 AVC" for video and "AC3 (lav)" for audio. I just added a filter to convert the audio to stereo.
What I get at the end of the process is a file like this: "RIFF (little-endian) data, AVI, 720 x 384, 25.00 fps, video: H.264 X.264 or H.264". Thus no audio stream at all.
Is this a bug or a mistake of mine?
TIA.
Title: Re: No audio with X.264
Post by: Jan Gruuthuse on March 29, 2012, 08:21:21 AM
Used version avidemux: 2.5.4, 2.5.5, 2.5.6 or 2.6, revision number, 32/64-bit on what OS and what flavor?
Title: Re: No audio with X.264
Post by: uqbar on March 29, 2012, 10:34:24 AM
[user@Feynman ~] avidemux --help
*************************
  Avidemux v2.5.4
*************************
http://www.avidemux.org
Code      : Mean, JSC, Grant Pedersen
GFX       : Nestor Di, nestordi@augcyl.org
Design    : Jakub Misak
FreeBSD   : Anish Mistry, amistry@am-productions.biz
Audio     : Mihail Zenkov
Mac OS X  : Kuisathaverat, Harry van der Wolf
Win32     : Grant Pedersen

Compiler: GCC 4.6.1
Build Target: Linux (x86)
User Interface: Qt (4.8.0)

Large file available: 1 offset
...

It's 32bit running under Kubuntu Linux 11.10 (oneiric) also at 32bit.

If I choose "MP2 (lav)" as audio encoding, the resulting file has the audio part.
Thanks so far.
Title: Re: No audio with X.264
Post by: Jan Gruuthuse on March 29, 2012, 10:45:35 AM
can you try installing this one? http://www.avidemux.org/smf/index.php?topic=10270.0
Title: Re: No audio with X.264
Post by: uqbar on March 29, 2012, 11:01:22 AM
Maybe you meant "avidemux cli / QT 2.6 32-bit R7823". Right?
Anyway, I did that and the result is still:

RIFF (little-endian) data, AVI, 720 x 384, 25.00 fps, video: H.264 X.264 or H.264

with no audio stream.
With a different source AVI [RIFF (little-endian) data, AVI, 706 x 384, 25.00 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)] I get the correct output with either avidemux. Which is "RIFF (little-endian) data, AVI, 706 x 384, 25.00 fps, video: H.264 X.264 or H.264, audio: Dolby AC3 (stereo, 48000 Hz)".

This is weird!
Title: Re: No audio with X.264
Post by: Jan Gruuthuse on March 29, 2012, 11:30:26 AM
the last one in that thread is: avidemux cli / QT 2.6 32-bit R7827 deb download second page or if you follow link in 1st topic posting.
Title: Re: No audio with X.264
Post by: Jan Gruuthuse on March 29, 2012, 11:34:20 AM
if the track is DTS, that could explain problem. upload sample 20 MB in size and provide link to it.
Title: Re: No audio with X.264
Post by: uqbar on March 29, 2012, 11:41:34 AM
Quote from: Jan Gruuthuse on March 29, 2012, 11:30:26 AM
the last one in that thread is: avidemux cli / QT 2.6 32-bit R7827 deb download second page or if you follow link in 1st topic posting.
Done. Same result.
Title: Re: No audio with X.264
Post by: Jan Gruuthuse on March 29, 2012, 11:47:47 AM
Sure the audio track is not DTS 5.1 instead of Dolby 5.1? If you want stereo why not try with AAC (LAV) or MP2 (LAV)?
Upload sample to upload site and provide link to it.
Title: Re: No audio with X.264
Post by: uqbar on March 29, 2012, 12:03:41 PM
Quote from: Jan Gruuthuse on March 29, 2012, 11:34:20 AM
if the track is DTS, that could explain problem. upload sample 20 MB in size and provide link to it.
https://rapidshare.com/files/2453301025/sample.avi
Title: Re: No audio with X.264
Post by: uqbar on March 29, 2012, 12:25:37 PM
Quote from: Jan Gruuthuse on March 29, 2012, 11:47:47 AM
Sure the audio track is not DTS 5.1 instead of Dolby 5.1? If you want stereo why not try with AAC (LAV) or MP2 (LAV)?
Upload sample to upload site and provide link to it.
I have no choice for the destination format, as it's mandatory in the finaly player.
What I reported as the original encodings is what the linux "file" command reports.
Title: Re: No audio with X.264
Post by: Jan Gruuthuse on March 29, 2012, 01:04:56 PM
This result? https://rapidshare.com/files/1579100726/test.avi
Title: Re: No audio with X.264
Post by: uqbar on March 29, 2012, 02:12:10 PM
Quote from: Jan Gruuthuse on March 29, 2012, 01:04:56 PM
This result? https://rapidshare.com/files/1579100726/test.avi
That seems to be OK! Did you use the "stock" Ubuntu package?
Despite I see "RIFF (little-endian) data, AVI, 720 x 384, 25.00 fps, video: H.264 X.264 or H.264", the audio stream is there.
In my failing attempts so far, there was no audio stream, though!
So, what'd be my mistake?
Title: Re: No audio with X.264
Post by: Jan Gruuthuse on March 29, 2012, 02:21:21 PM
Don't know, can't see on your computer? Loaded your video sample and only applied changes as depicted in attached photo.

QuoteI have no choice for the destination format,
Not proposing to change the .avi container (box) only re-encoding audio content, there is a difference. You need to verify what your final player is capable of.
Samsung 2009 (B) flatscreen for example can support in
.avi container:
Video decoder: divx 3.11, Div 4.x, Divx 5.1, Divx 6.0, Xvid, H.264 BP, H.264 MP, H.264 HP, MPEG-4 SP, MPEG-4 ASP, Motion JPEG (video content)
Audio Codec: MP3, AC3, LPCM, ADPCM, (mulaw, alaw)  (sound content)
then there is another list for each one of these: .mkv, *.asf, *.mp4, *.wmv (VC1), *.mp4, *.3gp, *.vro (ps), *.mpg/*.mpeg, and .ts

my system:
Avidemux v2.6.0 (r7829)
_____________________________________________
Compiler: GCC 4.6.1
Build Target: Linux (x86-64)
User Interface: Qt (4.7.4)
_____________________________________________
Kernel: Linux 3.0.0-17-generic (x86_64)
Distribution: Linux Ubuntu 11.10 (oneiric)
Desktop: Unity 4.28.0
Display Server: 1.11.2.902 (1.11.3 RC 2)
Display Driver: intel 2.18.0
Intel Core i5-2500K @ 3.30GHz (4 Cores) with 16 GB ram
OpenGL Renderer:  Mesa DRI Intel(R) Sandybridge
Version: 3.0 Mesa 8.0.2
Title: Re: No audio with X.264
Post by: uqbar on March 29, 2012, 02:30:24 PM
As I said earlier, I have not many options: for video I can choose between MPEG2 (for LD) or AVC/H264 (for HD).
Audio needs to be in AC3.
As AVC/H264 works fine also for LD, I just use that.
Now I'm trying the full re-coding again and testing it to my player against your Avidemux v2.6.0 (r7827).
If this works, I will then test with the stock Ubuntu package.

Title: Re: No audio with X.264
Post by: Jan Gruuthuse on March 29, 2012, 02:58:39 PM
OK, got it now.
Quoteyour Avidemux v2.6.0 (r7827).
is not my Avidemux v2.6, I'm user like you are, several developers worked/work on this project:
*************************
  Avidemux v2.6.0 (r7829)
*************************
http://www.avidemux.org
Code      : Mean, JSC, Grant Pedersen
GFX       : Nestor Di
Design    : Jakub Misak
FreeBSD   : Anish Mistry
Audio     : Mihail Zenkov
Mac OS X  : Kuisathaverat, Harry van der Wolf
Win32     : Grant Pedersen

I'm just compiling their hard work on ubuntu 11.10 32/64 bit and make it available for those who want to use the latest version. Ubuntu is lacking behind: avidemux 1:2.5.4-0ubuntu7.1
Title: Re: No audio with X.264
Post by: uqbar on March 29, 2012, 03:22:20 PM
Quote from: Jan Gruuthuse on March 29, 2012, 02:58:39 PM
OK, got it now.
Quoteyour Avidemux v2.6.0 (r7827).
is not my Avidemux v2.6, I'm user like you are
With "your" I meant both "the one you pointed me to" and "the one you are using". :-)
Quote from: Jan Gruuthuse on March 29, 2012, 02:58:39 PMI'm just compiling their hard work on ubuntu 11.10 32/64 bit and make it available for those who want to use the latest version. Ubuntu is lacking behind: avidemux 1:2.5.4-0ubuntu7.1
I have no time now to re-test everything with the stock package (I will in the future). You should consider putting your packages in a PPA on Launchpad, for ease to all other users.
And, by the way, Ubuntu is leaving behind a lot of non-cosmetic stuff. It looks like they focus too much on things that can be easily seen on the screen. But this is just my opinion.
Title: Re: No audio with X.264
Post by: uqbar on March 30, 2012, 02:26:29 PM
I've done a test with stock avidemux (v2.5.4) over the same sample file. Then I've tried to play it with mplayer.
There's no audio stream:Badly interleaved AVI file detected - switching to -ni mode...
AVI: No audio stream found -> no sound.
VIDEO:  [H264]  720x384  12bpp  25.000 fps  366.2 kbps (44.7 kbyte/s)
...
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Unknown/missing audio format -> no sound
My final player complains about "Video Interleave too high", but I have little idead about the actual meaning.
I've then downloaded "your" v2.6.0 (r7829) and then I've got the right stuff:[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
** empty list?!
Could not determine number of frames (for absolute seek).
VIDEO:  [H264]  720x384  24bpp  25.000 fps  -17179870.0 kbps (-2097152.0 kbyte/s)
...
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
There seems to be just an overrun bug on the bandwidth calculation (-17179870.0 kbps (-2097152.0 kbyte/s)) and a delay in the video stream, maybe between 250 and 300 500 msec.
This delay cannot be manually fixed in the "Audio Output Shift" option, as avidemux complains that option is not available any more!
Indeed, this is better than the stock package!
Thanks a lot, Jan!