Log in

View Full Version : VirtualDub save as *.mp4?


Pages : 1 [2]

gotaserena
1st February 2005, 13:17
Originally posted by Neo Neko
My thoughts on the subject would be this. Isolate the code in ffmpeg to output MP4.

Doesn't ffmpeg break isma compliance when muxing AVC? That would be a problem when it comes to playback in hardware. It works very well for ASP, though.

Neo Neko
1st February 2005, 21:10
1. I was thinking of muxing ASP mostly.

2. ISMA 2.0 just came out. Give FFMPEG some time. They will get it right.

gotaserena
2nd February 2005, 09:32
I'm just making clear that ffmpeg is still not meant as a muxing tool for AVC to mp4. It's of course a wonderful tool for just about everything else.

Neo Neko
2nd February 2005, 22:31
Oh indeed. But that is largely due to the relative "newness" of FFMPEG AVC support and the ISMA standards etc. I have created MP4 AVC files with FFMPEG and Videolan. The Nero Digital filters parse and play them back ok save for 1 issue. Any x264 based encodes I have decoded with ND get flipped upside down for some reason or another regardless of container. I have yet to figure out why. Especially since Videolan and FFMPEG etc have no such problems with ND.

SeeMoreDigital
3rd February 2005, 10:12
Originally posted by Neo Neko
... ISMA 2.0 just came out. Give FFMPEG some time. They will get it right. And if you have .MP4 files containing 6Ch AAC "LC" audio, don't forget ISMA3 and ISMA4: -

http://img224.exs.cx/img224/6073/isma2qj.gif


Cheers

bond
3rd February 2005, 13:23
Originally posted by Neo Neko
I have created MP4 AVC files with FFMPEG and Videolan. The Nero Digital filters parse and play them back ok save for 1 issue.you could get vlc to mux avc into .mp4?
what commandline did you use and even more important what version exactly (if nightly build what date)

the reason i ask is because i couldnt get new vlc builds to mux correctly (always a totally b0rked .mp4 gets created), still old builds seem to work great (i use 0.7.3 from 24 july 2004) :(

SeeMoreDigital
3rd February 2005, 13:42
Originally posted by bond
you could get vlc to mux avc into .mp4?
what commandline did you use and even more important what version exactly (if nightly build what date)

the reason i ask is because i couldnt get new vlc builds to mux correctly (always a totally b0rked .mp4 gets created), still old builds seem to work great (i use 0.7.3 from 24 july 2004) :( Same here!

Although I thought it was something I had done, as I'm not really into command-line applications ;)

But what was Neo Neko's "save for 1 issue" ?


Cheers

Elias
3rd February 2005, 16:56
What the hell? I didn't know that VLC could create mp4 files. Is it like using mp4UI, except that it's not that buggy? I take it that it can create compliant mp4 files from ASP+AAC?

bond
3rd February 2005, 17:44
Originally posted by Elias
What the hell? I didn't know that VLC could create mp4 files. Is it like using mp4UI, except that it's not that buggy? I take it that it can create compliant mp4 files from ASP+AAC? surely not with packed bitstreams
the rest should work (if it works correctly ;) :D )

Elias
3rd February 2005, 17:48
Originally posted by bond
surely not with packed bitstreams
the rest should work (if it works correctly ;) :D ) Cool. How do I do it? Any how-to-guides?

gotaserena
3rd February 2005, 17:49
Since VLC is based on libavcodec it should work pretty well for ASP -- even quicktime didn't complain about the files I created with ffmpeg -- but AVC is another matter: one is hopeful that full, compliant, suport will come soon but for now I wouldn't trust the files created for anything that doesn't use libavcodec, like standalones or Nero/3ivx/Moonlight DS filters.

Having said that, ffdshow and pretty much every free media player available should work fine.

SeeMoreDigital
3rd February 2005, 17:57
Originally posted by Elias
Cool. How do I do it? Any how-to-guides? Here's mine for mp4UI: -

http://www.SeeMoreDigital.net/05_How_to..._Files/MP4UI.html


Cheers

Elias
3rd February 2005, 18:02
Originally posted by SeeMoreDigital
Here's mine for mp4UI: -

http://www.SeeMoreDigital.net/05_How_to..._Files/MP4UI.html


Cheers I meant for VLC, but thanks anyway :)

bond
3rd February 2005, 18:23
Originally posted by Elias
Cool. How do I do it? Any how-to-guides? :search:
http://forum.doom9.org/showthread.php?s=&threadid=81501

gotaserena
3rd February 2005, 20:13
Originally posted by gotaserena
I'm just making clear that ffmpeg is still not meant as a muxing tool for AVC to mp4.

Now, here's the dub. ffmpeg does indeed mux AVC to mp4, but in a non-compliant way. First, it only muxes if the fourcc of the avi file is set to "h264". It will import the video stream with this fourcc to the mp4 file, along with the nice report:
[mp4 @ 0x836dcb0]Warning, using MS style video codec tag, the file may be unplayable!
The file plays well in libavcodec-based players, like ffplay, ffdshow, vlc and mplayer. If I could make Osmo4 run in my machine (that's 0 out of 4 systems so far), I could say anything about GPAC. MP4Box and mp4creator recognise something akin to a video track in the file.

If you try to weasel the fourcc to the correct one by using the -vtag flag in ffmpeg, the resulting file will not play in mplayer or ffplay (did not try any of the alternatives). Mplayer's error will be
[h264 @ 0x86eda28]AVC codec requires avcC data
Showing that there is indeed something rotten in the Kingdom of Denmark.

This behaviour shows in build 4742 of libavcodec. Let's hope it gets fixed soon.

bond
4th February 2005, 02:23
that ffmpeg way of storing avc in .mp4 is not compliant and shouldnt be done! "nuff said" :D

the way of how to store avc in .mp4 is defined in iso 14496-15 (and there are differences compared to normal "asp-in-mp4"), if thats supported we should look at ffmpeg's avc mp4 muxing capabilities, till then its wasted time