Video codecs
category: general [glöplog]
Did some tests again with Xvid/H.264, 640x400, 60fps, 4000/2000kBps.
If I convert the framerate to even 60fps (not some odd framerate like 70.0815 you get frome DOSBox) then the CPU usage is next to nothing! Even the h.264 playback now only comsumes max. 15% cpu when there's a lot of movement in the video!
With fractional framerates the decoder might be forced to to some fancy software stuff that takes a lot of cpu...
If I convert the framerate to even 60fps (not some odd framerate like 70.0815 you get frome DOSBox) then the CPU usage is next to nothing! Even the h.264 playback now only comsumes max. 15% cpu when there's a lot of movement in the video!
With fractional framerates the decoder might be forced to to some fancy software stuff that takes a lot of cpu...
I have problems creating videos that play/stream on quicktime...
I use virtualdub to cut + convert videos to h.264 and then do sort of:
DEMUX AUDIO AND VIDEO TO NATIVE FORMAT:
-----------------------------------------------------------------------
mp4box -aviraw video "<INPUT>.avi"
mp4box -aviraw audio "<INPUT>.avi"
CONVERT AUDIO TO AAC
-----------------------------------------------------------------------
faac <INPUT>.wav -b 128 -w --mpeg-vers 4 -o <OUTPUT>.mp4 --artist "<GROUP>" --title "<TITLE> soundtrack" --year <YEAR>
MUX TO NEW MP4 STREAM
-----------------------------------------------------------------------
MP4Box -new -add "<VIDEO>.h264" -add "<AUDIO>.aac" -add "<SUBTITLE>.ttxt" -lang eng -fps 60.000 "<OUT>.mp4"
HINTING FOR STREAMING
-----------------------------------------------------------------------
MP4Box -unhint -hint <OUT>.mp4
TAGGING FOR ITUNES
-----------------------------------------------------------------------
AtomicParsley <OUT>.mp4 --metaEnema --artist "<GROUP>" --title "<TITLE>" --year <YEAR> --stik Normal --freefree --overWrite
All the commands run fine and I get an MP4 file I can perfectly play in VLC. Audio, Video and even the subtitles work. But if I play the file with Quicktime or Winamp I get only the sound...
Any ideas?
I use virtualdub to cut + convert videos to h.264 and then do sort of:
DEMUX AUDIO AND VIDEO TO NATIVE FORMAT:
-----------------------------------------------------------------------
mp4box -aviraw video "<INPUT>.avi"
mp4box -aviraw audio "<INPUT>.avi"
CONVERT AUDIO TO AAC
-----------------------------------------------------------------------
faac <INPUT>.wav -b 128 -w --mpeg-vers 4 -o <OUTPUT>.mp4 --artist "<GROUP>" --title "<TITLE> soundtrack" --year <YEAR>
MUX TO NEW MP4 STREAM
-----------------------------------------------------------------------
MP4Box -new -add "<VIDEO>.h264" -add "<AUDIO>.aac" -add "<SUBTITLE>.ttxt" -lang eng -fps 60.000 "<OUT>.mp4"
HINTING FOR STREAMING
-----------------------------------------------------------------------
MP4Box -unhint -hint <OUT>.mp4
TAGGING FOR ITUNES
-----------------------------------------------------------------------
AtomicParsley <OUT>.mp4 --metaEnema --artist "<GROUP>" --title "<TITLE>" --year <YEAR> --stik Normal --freefree --overWrite
All the commands run fine and I get an MP4 file I can perfectly play in VLC. Audio, Video and even the subtitles work. But if I play the file with Quicktime or Winamp I get only the sound...
Any ideas?
For all who want to take a look, here's a H.264/AAC capture of Bomb! - State of mind. Doesn't play on my quicktime player...
video plays fine in media player classic, but there seems to be some tearing in the video itself. (no vsync?)
got no quicktime here, sorry.
winamp only plays audio, but infos show there's audio, video and text present...
got no quicktime here, sorry.
winamp only plays audio, but infos show there's audio, video and text present...
Thanks for trying!
I have no tearing on my machine here... strange.
I have no tearing on my machine here... strange.
Oh and if somebody has hints on creating Quicktime-compatible MP4s, other than yelling "Google" I'd be teh happy ;)
Is your display running @ 60fps? My friend has a similar problem with 2 LCD-screens. One has tearing, the other not... even stranger
Is your display running @ 60fps? My friend has a similar problem with 2 LCD-screens. One has tearing, the other not... even stranger
rarefluid: quality seems great. didn't notice any tearing when i watched it, but it didn't explicitly look out for it either.
Thanks ryg. And bartman: Have you tried on XBMC? I'd be interested if you can play back it there...
tried on XBMC: forget it. framerate drops to 5fps, then to 0.66fps and then it freezes with only audio playing.. with a special config file "lavdopts=skiploopfilter=all" it runs 20-60fps, mostly 50-60fps. but that config decreases quality. about half-through the video now also froze :( also tearing is here too... i also saw the tearing in media player classic with single framing mode (cursor right to advance 1 frame at a time) so i guess the tearing comes not from playback but is in the video....
rarefluid : the video works in QuickTime Player 7.2.
Thanks for trying rickst. Couldn't play it with Quicktime 7.0.4. Works now in QT 7.2. Oh yeah, and quicktime sucks ass. It uses twice as much CPU as VLC when playing back the file!
and @bartman: Did a Xvid version also. Check my page...
The tearing might be already in the original capture. Might not even be my fault, dunno. I don't really want to do it again though...
and @bartman: Did a Xvid version also. Check my page...
The tearing might be already in the original capture. Might not even be my fault, dunno. I don't really want to do it again though...