pouët.net

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...
added on the 2007-07-20 12:20:54 by raer raer
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?
added on the 2007-07-23 16:12:51 by raer raer
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...
added on the 2007-07-23 19:25:14 by raer raer
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...
added on the 2007-07-24 12:24:48 by bartman bartman
Thanks for trying!
I have no tearing on my machine here... strange.
added on the 2007-07-24 12:39:44 by raer raer
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
added on the 2007-07-24 12:45:00 by raer raer
rarefluid: quality seems great. didn't notice any tearing when i watched it, but it didn't explicitly look out for it either.
added on the 2007-07-24 19:22:25 by ryg ryg
Thanks ryg. And bartman: Have you tried on XBMC? I'd be interested if you can play back it there...
added on the 2007-07-24 21:19:04 by raer raer
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....
added on the 2007-07-24 21:44:17 by bartman bartman
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...

added on the 2007-07-29 00:15:27 by raer raer

login