Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th October 2004, 11:42   #1  |  Link
ivan_alias
H.264 is the Future
 
ivan_alias's Avatar
 
Join Date: Dec 2001
Location: UK
Posts: 210
muxing h.264 in mp4

Does anyone know of a way to put h.264 in an mp4 container? (in windows)

I thought mp4creator would work, but the version I have is from May and it doesnt seem to like the raw h.264 bit stream.

Videolan doesnt seem to do it.

mencoder doesnt output mp4

ffmpeg doesn encode h.264

Im stuck!

Anyone have an idea of how to do this!?

Thanks a lot
ivan_alias is offline   Reply With Quote
Old 26th October 2004, 18:21   #2  |  Link
tiki4
Registered User
 
tiki4's Avatar
 
Join Date: Dec 2001
Location: Who Knows?
Posts: 929
I made some x264 encodes with ffdshow in AVI container. I was able to mux them to MP4 with VLC latest 0.8.0 beta. Nero Showtime was able to decode that files, so give it a try.

tiki4

edit: typo
tiki4 is offline   Reply With Quote
Old 26th October 2004, 21:08   #3  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
latest cvs of mp4creator should do it too
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 27th October 2004, 00:13   #4  |  Link
pogo stick
I have sawdust in my head
 
pogo stick's Avatar
 
Join Date: Aug 2003
Location: Russia
Posts: 305
Is there anywhere I can find compiled version of it?
And by the way, does VLC produce compliant mp4 files now?
pogo stick is offline   Reply With Quote
Old 27th October 2004, 07:32   #5  |  Link
tiki4
Registered User
 
tiki4's Avatar
 
Join Date: Dec 2001
Location: Who Knows?
Posts: 929
Here, latest beta package (0.8.0-test2), dunno about mp4creator, I could possibly compile it for Linux, though.

tiki4
tiki4 is offline   Reply With Quote
Old 27th October 2004, 11:21   #6  |  Link
Drachir
Teetrinker
 
Drachir's Avatar
 
Join Date: Jan 2002
Posts: 258
Quote:
Originally posted by pogo stick
And by the way, does VLC produce compliant mp4 files now?
NO, VLC doesn't produce compliant mp4 files.

"mp4.c" have not changed for 2 months.( http://developers.videolan.org/cgi-b...k/modules/mux/ )
Drachir is offline   Reply With Quote
Old 27th October 2004, 13:11   #7  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
Re: muxing h.264 in mp4

Quote:
Originally posted by ivan_alias
Does anyone know of a way to put h.264 in an mp4 container? (in windows)

I thought mp4creator would work, but the version I have is from May and it doesnt seem to like the raw h.264 bit stream.
Fenrir has made a tool to store raw video h.264 in an AVI container. I haven't tested yet but you can grap it here. Then, with mp4crator you could create your mp4 file.

Last edited by Kurtnoise; 27th October 2004 at 13:14.
Kurtnoise is offline   Reply With Quote
Old 27th October 2004, 13:43   #8  |  Link
gotaserena
String Theorist
 
Join Date: Mar 2003
Location: Na terra dos 10000 lagos.
Posts: 218
no need for that, since mencoder can output avi already. Also, mp4creator does not like to use avi files, and v1.1 does not recognize h.264 streams in the avi container.

I'll give another shot at compiling the mpeg4ip CVS at home and try to mux it. If it works I'll upload the binaries somewhere.
gotaserena is offline   Reply With Quote
Old 27th October 2004, 14:57   #9  |  Link
ivan_alias
H.264 is the Future
 
ivan_alias's Avatar
 
Join Date: Dec 2001
Location: UK
Posts: 210
Thanks gotaserena

Hope it works!

then I hope videolan will be able to play it back..
ivan_alias is offline   Reply With Quote
Old 27th October 2004, 15:12   #10  |  Link
gotaserena
String Theorist
 
Join Date: Mar 2003
Location: Na terra dos 10000 lagos.
Posts: 218
CVS worked fine in linux:
Quote:
$ mp4info video.mp4
mp4info version 1.1.7
video.mp4:
Track Type Info
1 video H.264, 203.520 secs, 1068 kbps, 320x256 @ 25.000000 fps
Metadata Tool: mp4creator 1.1.7
I even muxed two video streams in the same file by mistake! :P

In case pp are trying to play it in mplayer (best for slow < 2.0GHz computers), just remember to edit codecs.conf:
Quote:
videocodec ffh264
info "FFmpeg H.264"
status working
fourcc H264,h264,avc1
format 0x10000005
driver ffmpeg
dll h264
out YV12,I420,IYUV
since mp4creator changes the fourcc of the stream when importing. I don't know if celtic_druid's builds have this problem, but it did show in my compilation.
gotaserena is offline   Reply With Quote
Old 27th October 2004, 18:08   #11  |  Link
ivan_alias
H.264 is the Future
 
ivan_alias's Avatar
 
Join Date: Dec 2001
Location: UK
Posts: 210
Well this is good news.

Does anyone have a windows compile?? :-)
ivan_alias is offline   Reply With Quote
Old 27th October 2004, 18:29   #12  |  Link
gotaserena
String Theorist
 
Join Date: Mar 2003
Location: Na terra dos 10000 lagos.
Posts: 218
here!

Seems to work here (in a P4), but don't blame me if it breaks anything (or itself).
gotaserena is offline   Reply With Quote
Old 27th October 2004, 18:46   #13  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
Quote:
Originally posted by Drachir
NO, VLC doesn't produce compliant mp4 files.
hm, i read somewhere that the nero filters can play h.264 vlc-muxed .mp4 files, so i dunno if they arent spec compliant already and the failure was in neros filters

or do you have other info, why these files are not compliant?
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 27th October 2004, 19:19   #14  |  Link
Drachir
Teetrinker
 
Drachir's Avatar
 
Join Date: Jan 2002
Posts: 258
I posted here a question to mp4 files produced with vlc: http://sourceforge.net/forum/forum.p...orum_id=287546


Quote:
Jean Le Feuvre1- the IODS box/atom is optional in MP4 specification
2- more quoting:
"There are a number of possible file types based on usage, depending on the descriptor:
· Presentation, contains IOD which contains a BIFS stream (MP4 file)
· Sub-part of a presentation, contains an IOD without a BIFS stream (MP4 file)
· Sub-part of a presentation, contains an OD (MP4 file)
· Free-form file, referenced by MP4 data references (free-format)
· Sub-part of a presentation, referenced by an ES URL.
NOTE - The first three are MP4 files, a file referenced by a data reference is not necessarily an MP4 file, as it is free-format. Files referenced by ES URLs, by data references, or intended as input to an editing process, need not have an Object Descriptor Box."


so the files created by VLC should not be treated as "compliant MPEG-4 presentation" by a player - which doesn't mean it won't read it, cf gpac
Drachir is offline   Reply With Quote
Old 27th October 2004, 20:33   #15  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
ah thanks, totally forgot that thread
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 27th October 2004, 20:49   #16  |  Link
gotaserena
String Theorist
 
Join Date: Mar 2003
Location: Na terra dos 10000 lagos.
Posts: 218
ffdshow-20041012 doesn't like avc1 in mp4 it seems. I just manage to open a h.264 encode done by mencoder in avi using graphedit, but if I mux the raw stream into mp4 using mp4creator I can't decode it anymore. Splitter was 3ivx's. I changed the fourcc from h264 to avc1 and ffdshow still played it.

VLC 0.8-2 opens the mp4 without any problems, though.
gotaserena is offline   Reply With Quote
Old 27th October 2004, 20:59   #17  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
the 3ivx splitter doesnt support avc-in-mp4, you cant use it with such files!
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 27th October 2004, 21:10   #18  |  Link
gotaserena
String Theorist
 
Join Date: Mar 2003
Location: Na terra dos 10000 lagos.
Posts: 218
Yes, now I see that. But isn't the splitter supposed to give some error message when it encounters a track that it cannot handle?
gotaserena is offline   Reply With Quote
Old 28th October 2004, 20:02   #19  |  Link
gotaserena
String Theorist
 
Join Date: Mar 2003
Location: Na terra dos 10000 lagos.
Posts: 218
Ok, I've managed to encode my first H.264+5.1AAC using mencoder, faac and mp4creator! I'm feeling like that ape from 2001: clutching at bones trying to figure them out!

Bad news is that mp4creator still has some trouble importing AVC. Even with --rate=25 the reported fps of the video stream is "61.553780 fps". mplayer (linux) did not complain, though. VLC plays it also but reports the length of the video as 11h35min, and only decodes stereo. I have to wait till next moonlights beta splitter to try ffdshow.
gotaserena is offline   Reply With Quote
Old 28th October 2004, 23:25   #20  |  Link
ak
Registered User
 
ak's Avatar
 
Join Date: Oct 2002
Posts: 89
Hm, just checked bunch of samples lying around (.mp4's with x264 encodes inside), it shows fps correctly on all of them (mp4info that is). They are mostly video-only though.

As for decoders, moonlight h264 ds decoder is the only one that can decode b-frames correctly at the mo. Even with new nero filters it's jerky and corrupted all over the place, just like with lavc :shocked:
ak is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 13:36.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.