Log in

View Full Version : MP4 stream created with Recode = ISO compliant ??


Bluedan
19th January 2005, 22:41
I have difficulties demuxing or multiplexing a stream created with Recode 2.2.6.1.
I does't matter if audio (AAC) is included or not.
I'm able to play those files with ffdshow in bsplayer.
OSMO on the other side shows jerky playback.

With the respective tools - I tried MP4UI and the mighty MP4box - it was impossible to extract the video from its container.
MP4UI says unable to read sample 1 and I think MP4box says something about possibly some file atoms missing.
Both couldn't show video type and resolution, but File brand is shown as AVC1 version 0.
Eventuel audio files are recognized very well...

Anybody else having these problems??

bond
19th January 2005, 23:40
mp4box and mp4ui dont handle avc streams in .mp4
osmo4 handles playback, but i assume the compile you got used an old ffmpeg version, which isnt able to decode b-frames in avc correctly

Bluedan
20th January 2005, 12:21
You're right.
I used GPAC build 0.2.3 from sourceforge.

Looking at the complete changelog I found this:

05/01/05: GPAC 0.2.3 release
[...]
- fixed ffmpeg H264 support
[...]

15/10/04: GPAC 0.2.1 release
[...]
- basic AVC support in MP4 (only AVCSampleEntry and child atoms)
[...]

18/04/04: JLF: GPAC Release 0.1.3 rc2
[...]
- MP4Box B-frame import now works with data referencing
- better MPEG-4 video import (B-frame and packed bitstream)
[...]

The latest change concerning AVC with b-frames support is vaguely determined, but as it relies on avcodec libary from ffmpeg it couldn't support b-frames (correctly), as the respective code was added by 'aku' IIRC later than 05-01-2005.

This also explains the problems I have with MP4box and Nero MP4/AVC stream extraction.
But mp4ip tools should do the job now: http://forum.doom9.org/showthread.php?s=&postid=598421#post598421
Will try soon.