Page 1 of 1

MP4 encoding: missing audio stream

Posted: 08 Sep 2008 17:07
by krolft
Hi folks!

First: VLC rocks! Thanks to all contributing to this piece of software!

Now that teeny tiny bit not working (for me) that I need so desperately:
I couldn't find a way to create mp4 videos with an audio stream using VLC on a 32 bit Vista .

For playback only this works just fine:
"C:\Program Files\VideoLAN\VLC\vlc.exe" "dvdsimple://H:@1"

What I want is to save the dvd titles to mp4 files (for watching it on an iPod nano 3G):

"C:\Program Files\VideoLAN\VLC\vlc.exe" "dvdsimple://H:@1" :sout="#transcode{vcodec=h264, vb=1024, acodec=mp4a, ab=128, channels=2}:standard{access=file, mux=mp4, url=C:\tmp\test.mp4}"

What I get is an mp4 file having two identical video streams with the wrong codec and no audio streams set. Here is the media info:

Stream 0
- Codec: avc1
- Language:
- Type: Video
- Resolution: 720x576
- Screen resolution: 720x576
- Frame rate: 25.025000
Common
- Run time: 0:00:12
Stream 1
- Codec: avc1
- Language:
- Type: Video
- Resolution: 720x576
- Screen resolution: 720x576
- Frame rate: 25.025000

The codec seems to be wrong, there shouldn't be a second video stream and the audio stream is missing.

What else did I try?
- Different encapsulation ts: Of couse this is a hack (MP4 is what I need) but h264 is working and the audio stream was included
- Different video encoding mp4v: Correct video codec but still 2 video streams and no audio
- Different audio encodings: Also a hack (mp4 encapsulation only supports mp4a) and no improvement
- Different video and audio bitrates: No improvement
- VLC 0.8.6e to VLC 0.8.6i: No difference at all
- VLC 0.9 and VLC 1.0: crashed

Notes:
- I know the resolution wouldn't work with an iPod nano 3G, I just wanted keep the example as simple as possible

I hope someone can help me with this.