View Full Version : x264 muxing
mezzanine
11th January 2005, 18:44
Is it a good idea to mux h264/avc and ac3 in avi container ?
akupenguin
11th January 2005, 18:48
No. H.264 in avi is ugly, and may even break in the future (with more exotic B-frame structures).
The recommended container is mp4, and soon mkv.
mezzanine
11th January 2005, 18:56
I made a small gui some months ago (i never really used it). It's like AutoGK only simpler , i made some changes an it works good (i think!) with x264.
Now it's using avimuxgui and it's easy to change it from avi to output mkv (just need to change the overhead calculations). I've encoded some clips (short ones) with b-frames enabled and avi output and it seems to work fine!
Sharktooth
11th January 2005, 18:57
... but it actually works :P
MP4 is safer though...
Sirber
11th January 2005, 19:01
works #1 in mkv. :D
bond
11th January 2005, 19:47
Originally posted by akupenguin
H.264 in avi is ugly, and may even break in the future (with more exotic B-frame structures).what problems do you see?
chilledoutuk
11th January 2005, 20:41
My problem is that mplayer and subsequantly XBMC only seems to support h.264 in avi's and not mp4's (i havent tried mkv tough).
Its the lack of support of the proper container formats which leads to peoeple using containers like avi.
JoeBG
11th January 2005, 20:49
Originally posted by chilledoutuk
My problem is that mplayer and subsequantly XBMC only seems to support h.264 in avi's and not mp4's (i havent tried mkv tough).
Its the lack of support of the proper container formats which leads to peoeple using containers like avi.
No, XBMC accepts MP4 very good. I enjoy all my MPīs on XBox. It works perfect with x264 and it works good with Nero AVC. Just read the threat again you postet in Dezember on XBMC Forum, the developers answered all.
akupenguin
11th January 2005, 22:06
Originally posted by bond
what problems do you see? AVI lacks presentation timestamps.
Current H.264 encoders (other than JM) use only a simple GOP structure (like MPEG-1 through ASP). But you are allowed to code the frames in _any_ order (subject only to limited memory in the decoder). For example, you can improve compression by letting B-frames use multiple future references, which may in turn be B-frames...
First recall what's wrong with the current state of B-frames in AVI (http://forum.doom9.org/showthread.php?s=&threadid=80430). Then imagine that the encoding and decoding delay can be arbitrarily high.
SeeMoreDigital
11th January 2005, 22:13
Jeez akupenguin, you certainly need to know your MPEG stuff :)
What do you currently do? Are you employed, studying etc?
Cheers
akupenguin
11th January 2005, 22:32
I'm a student. The video compression stuff is purely for fun. I was previously into general data compression, but ever since I started watching anime, the existing tools never did quite everything I wanted...
SeeMoreDigital
11th January 2005, 22:37
Originally posted by akupenguin
I'm a student. The video compression stuff is purely for fun. I was previously into general data compression, but ever since I started watching anime, the existing tools never did quite everything I wanted... So, are you able do design your own tools or modify other peoples tools?
Cheers
bond
11th January 2005, 22:43
he is the dev of x264 ;)
Yong
12th January 2005, 12:36
I'm tried muxing AVI warpped x264 video to OGM,
play normally with ffdsow,
but it crash libavcodec.dll after seeking...:p
OGM is not a good friend with H.264???
Hope in the future MEncoder will support output video to MP4 or Matroska container...:cool:
EDIT: Should be MP4 container;)
hellfred
12th January 2005, 15:01
I have only muxed one x264 video stream together with an audio stream into a container once, and that was a success right away.
Video was created with MeGUI/mencoder recompressing existing avi-video material and stroed into an avi. I manually changed the forcc from x264 to h264 in the job.bat, so that libavcodec is used for decoding in the x264 stream in mplayer right away. For encoding with x264 I did not - as far as i remember- use bframes.
The Audio (mp3 vbr) was extracted from the avi input using VirtualDubMod.
Muxing was also done by VirtualDubMod 1.5.10.1 build 2439. I have opened the x264 avi file, added audio via Stream List -> Add, set video compression to direct stream copy and went directly to SaveAs, where i have choosen mkv as container. That was it. File playes fine with mplayer and MPC using ffdshow.
Hellfred
gotaserena
12th January 2005, 15:13
mplayer accepts avc in mp4 too, it just can't write to it yet -- unless someone ports the mpeg4ip muxing implementation into it.
Hei aku, may I take your observation as a hint to the mplayer people so that they should support different output formats? I would be great to have mencoder outputting mkv, mind you.
hellfred
12th January 2005, 15:45
Originally posted by gotaserena
mplayer accepts avc in mp4 too, it just can't write to it yet -- unless someone ports the mpeg4ip muxing implementation into it.
Hei aku, may I take your observation as a hint to the mplayer people so that they should support different output formats? I would be great to have mencoder outputting mkv, mind you.
Half of the mplayer developers will not touch mencoder.c, as it is a bit messy (just stating here!). So i am afraid that including other output formats will not happen there in the near future. I think you may succeed to get mp4 output into ffmpeg much easier.
Hellfred
gotaserena
12th January 2005, 15:54
ffmpeg already outputs to mp4 (and 3gp and what have you :)), but it doesn't encode to h264. Akupenguin has mentioned a number of times that x264 will eventually end up in libavcodec, so maybe it's just a question of time.
hellfred
12th January 2005, 17:23
Originally posted by gotaserena
ffmpeg already outputs to mp4 (and 3gp and what have you :)), but it doesn't encode to h264. Akupenguin has mentioned a number of times that x264 will eventually end up in libavcodec, so maybe it's just a question of time.
Good to hear that. Then Akupenguin has cooperate with Michael. I hope they can work together well.
Hellfred
bob0r
20th January 2005, 03:22
I have x264 video, 2 pass: cap.avi
I have mp3 audio, vbr: cap.mp3
Media Player Classic plays the cap.avi
Media Player Classic plays the cap.mp3
What is the best and/or simplest wat to make these into ONE file?
(Please detailed, as simple as possible steps)
Yong
20th January 2005, 12:30
@bob0r:
Please use MKVtoolnix (http://www.bunkus.org/videotools/mkvtoolnix/win32/mkvtoolnix-1.0.1-setup.exe) to multiplex the avi and mp3 files to Matroska container.
And also download the MKVtoolnix runtime dll (http://www.bunkus.org/videotools/mkvtoolnix/win32/mkvtoolnix-runtime.rar) in order to get MKVtoolnix work.:)
For more information on the Container or someting esle please read the FAQs in this forum.;)
hellfred
20th January 2005, 12:45
The easiest way, quick and dirty, is to take VirtualDubMod and stream copy both streams into one mkv file. Playback worked fine for me using mplayer oder MediaPlayerCLassic.
I have used VirtualDubMod v1.5.10.1 (build 2349/release)
Hellfred
stephanV
20th January 2005, 12:54
Hellfred:
your muxing AVC in VFW mode that way... thats pointless, might as well use AVI then :p
Tommy Carrot
20th January 2005, 12:58
But bob0r never said he doesn't want to use AVI. :)
stephanV
20th January 2005, 13:00
exactly my point :)
bob0r
20th January 2005, 14:10
Originally posted by Yong
@bob0r:
Please use MKVtoolnix (http://www.bunkus.org/videotools/mkvtoolnix/win32/mkvtoolnix-1.0.1-setup.exe) to multiplex the avi and mp3 files to Matroska container.
And also download the MKVtoolnix runtime dll (http://www.bunkus.org/videotools/mkvtoolnix/win32/mkvtoolnix-runtime.rar) in order to get MKVtoolnix work.:)
For more information on the Container or someting esle please read the FAQs in this forum.;)
That was useful, took me less than a minute to make the file! Thanks!
@the vdub/avi tips:
No thanks, i prefer my 15mb sample over 800+mb :)
Tommy Carrot
20th January 2005, 14:19
Originally posted by bob0r
No thanks, i prefer my 15mb sample over 800+mb :)
If you got a huge file for result, you didn't select "direct stream copy" mode.
bond
20th January 2005, 14:24
moved to container forum
bob0r
20th January 2005, 14:40
Originally posted by Tommy Carrot
If you got a huge file for result, you didn't select "direct stream copy" mode.
Funny part is, i did :D
Only with vdubmod you can open via DirectShowSource, and then it gets big, when i open the avi in vdub/vdubmod/nandub in a normal way, it says it cant find a decompressor.
stephanV
20th January 2005, 14:55
dont open it via avisynth, that is pointless for remuxing
configure ffdshow in the vfw configuration to open AVC, then do a direct stream copy.
bob0r
20th January 2005, 15:20
Originally posted by stephanV
dont open it via avisynth, that is pointless for remuxing
configure ffdshow in the vfw configuration to open AVC, then do a direct stream copy.
Awesome!
That worked great via nandub!
Me and my xbox thank you :cool:
hellfred
20th January 2005, 16:52
Originally posted by stephanV
Hellfred:
your muxing AVC in VFW mode that way... thats pointless, might as well use AVI then :p
That is why i labeld it quick and dirty :D
You just get something to double-click to play. avi, mkv who cares.
Hellfred
stephanV
20th January 2005, 17:43
Originally posted by bob0r
That worked great via nandub!
Nothing works "great" in NanDub :p (people who dont encode with it should SHIFT-DEL it immediately)
you could have used VirtualDubMod (preferably avimux GUI though) :)
fogbav
20th January 2005, 17:55
Can someone post a "how to" to get Nero AVC work in my Xbox ?
Even the newest releases are crashing or the picture is getting blocks or gray areas ... hmmm
any hints ?
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.