On Mon, 2 Oct 2006, Florin Andrei wrote:

> Weird idea: would it be feasible to implement GPU acceleration in
> mpeg2enc? Or rephrased: is MPEG2 encoding the kind of problem that can
> be solved faster with assistance from a GPU accelerator?
        
        Not really.  The overhead of shipping the data to/from the GPU
        would probably be greater than simply doing the operation in the
        main system.  The other hunch I have is that a lot of what an
        encoder is doing is not the type of thing a GPU is good at.

> [EMAIL PROTECTED] already did this for their client on systems with ATI
> cards:

        Windoze only from the looks of it (and doesn't run under Wine), and
        I didn't see mention of  mpeg2 encoding.

> I'm pretty sure I've seen a while ago a library to do similar things
> with NVidia cards.
        
        There's the XvMC library which is very useful for playback of MPEG-2.
        Without using XvMC to offload the _DE_coding of MPEG-2 it is almost
        impossible (at least with MPlayer) to reliably play HD (1920x1080)
        content.

> Since the main (and pretty much the only) complaint I've seen about
> mpeg2enc is the encoding speed, if GPU acceleration is doable that would

        No complaints from me - I get faster than real time encoding *IF*
        NO FILTERING is done.  And I've yet to see the video that didn't need
        _some_ filtering ;(

        Most folks forget that mpeg2enc is usually not the bottleneck in 
        the encoding pipeline.

        It doesn't really matter much if mpeg2enc can get 20 or 30 frames/sec 
        if the denoising or median, or unsharp filters only get 4 or 5 
        frames/sec (or less).

        What might be more helpful would be to use the GPU to do the denoising,
        now THAT would speed things up ;)

        The other thing would would speed things up would be to improve the
        code so that threading was (more) effective.  Dual core systems are
        common (and quad core systems available)  so using more than 1 cpu 
        to do denoising and encoding would speed things up more (and be more 
        portable) than using a windows library to use the GPU

        Cheers,
        Steven Schultz


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to