News:

--

Main Menu

No audio with X.264

Started by uqbar, March 29, 2012, 07:54:33 AM

Previous topic - Next topic

uqbar

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.

Jan Gruuthuse

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?

uqbar

[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.


uqbar

#4
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!

Jan Gruuthuse

#5
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.

Jan Gruuthuse

if the track is DTS, that could explain problem. upload sample 20 MB in size and provide link to it.

uqbar

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.

Jan Gruuthuse

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.

uqbar

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

uqbar

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.


uqbar

#12
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?

Jan Gruuthuse

#13
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

uqbar

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.