lossless realtime video capturing codec
I'm looking for a codec and container format for lossless realtime video capturing. The requirements are: o Code should be OpenSource (or usable under linux in my own application) o lossless or near-lossless (YV12 format is fine) o min resulution: 1280x1024 o variable framerate, (but with a maximum: 20 or 25fps) o under these conditions (1280x1024 at 25) it should produce a bitstream smaller then 3.5MByte/s (to copy the data over a 100MBit network to a server) o realtime on a 64bit AMD Athlon X2 4400+ (2.2GHz), one core can be dedicated for the encoding. FFV1 is quite good, but its too slow, even with VLC it does only 16fps on my CPU. I'd prefer a lossless coded, but a near-lossless would do it, too. I don't know about HuffYUV, but I've heard that it produces slightly bigger files. For the container format, I don't know whether AVI can handle variable framerate, MP4 can, but is it supported in ffpemg? Can someone please point me to a codec and container format that would fit my requirements? thanks tom
Tomas Carnecky wrote:
I'm looking for a codec and container format for lossless realtime video capturing. The requirements are:
o Code should be OpenSource (or usable under linux in my own application) o lossless or near-lossless (YV12 format is fine) o min resulution: 1280x1024 o variable framerate, (but with a maximum: 20 or 25fps) o under these conditions (1280x1024 at 25) it should produce a bitstream smaller then 3.5MByte/s (to copy the data over a 100MBit network to a server) o realtime on a 64bit AMD Athlon X2 4400+ (2.2GHz), one core can be dedicated for the encoding.
FFV1 is quite good, but its too slow, even with VLC it does only 16fps on my CPU. I'd prefer a lossless coded, but a near-lossless would do it, too. I don't know about HuffYUV, but I've heard that it produces slightly bigger files.
For the container format, I don't know whether AVI can handle variable framerate, MP4 can, but is it supported in ffpemg?
Can someone please point me to a codec and container format that would fit my requirements?
YUV420P at 20fps is 1280x1024x20x1.5=39MBytes/sec. So, 3.5MBytes/sec is nowhere NEAR lossless (unless you're targetting video with lots of runs, like anime). However, DVD (IIRC) is 768x576x25x1.5=132MBit/sec compressed by MPEG-2 to 6MBit/sec, a ratio of 22. So, using mpeg-2 might be a possibility. However, *if* CPU scales as number of pixels, I dont feel your CPU will be fast enough - but you should try. Seat-of-the-pants: I use 1/2 P4-2.4GHz for encoding 352x288x25 pixels/sec. You will need something like (1280x1024x20)/(352x288x25) or 10 times that, i.e. 12GHz on the P4 scale; but I dont know how the Athlon GHz compare to P4 GHz. But it seems you will have to compromise on the resolution... Also note, ffmpeg is quite the cache hog, so what is your cache size?
thanks tom
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
-- Michel Bardiaux R&D Director T +32 [0] 2 790 29 41 F +32 [0] 2 790 29 02 E mailto:mbardiaux at mediaxim.be Mediaxim NV/SA Vorstlaan 191 Boulevard du Souverain Brussel 1160 Bruxelles http://www.mediaxim.com/
On Thu, Dec 22, 2005 at 04:28:50PM +0100, Michel Bardiaux wrote:
Tomas Carnecky wrote:
I'm looking for a codec and container format for lossless realtime video capturing. The requirements are:
o Code should be OpenSource (or usable under linux in my own application) o lossless or near-lossless (YV12 format is fine) o min resulution: 1280x1024 o variable framerate, (but with a maximum: 20 or 25fps) o under these conditions (1280x1024 at 25) it should produce a bitstream smaller then 3.5MByte/s (to copy the data over a 100MBit network to a server) o realtime on a 64bit AMD Athlon X2 4400+ (2.2GHz), one core can be dedicated for the encoding.
FFV1 is quite good, but its too slow, even with VLC it does only 16fps on my CPU. I'd prefer a lossless coded, but a near-lossless would do it, too. I don't know about HuffYUV, but I've heard that it produces slightly bigger files.
For the container format, I don't know whether AVI can handle variable framerate, MP4 can, but is it supported in ffpemg?
Can someone please point me to a codec and container format that would fit my requirements?
YUV420P at 20fps is 1280x1024x20x1.5=39MBytes/sec. So, 3.5MBytes/sec is nowhere NEAR lossless (unless you're targetting video with lots of runs, like anime).
Anime has basically no runs. _SOME_ near-runs but no runs. Perhaps you were thinking of flash animations, screen capture, or some other sort of vector gfx. Rich
participants (3)
-
dalias@aerifal.cx -
mbardiaux@mediaxim.be -
tom@dbservice.com