[mythtv] mythmusic - encoding while ripping

Lonnie Hutchinson chinacat at chinacat.org
Sun Feb 9 17:41:38 EST 2003

Here is a patch that modifies mythmusic to interleave the ripping and
encoding. See the email below for a more detailed description of the

Please consider for inclusion in CVS. The patch is against current CVS.


On Sun, 2003-02-09 at 07:02, Lonnie Hutchinson wrote:
> I am working on a patch to mythmusic to do the encoding at the same time
> as ripping, rather than ripping to a temporary file, then encoding to
> the final file. I have yet to think of any drawbacks, so if there are
> any please bring them to my attention. The benefits to this are listed
> below.
> As it is now, ripping a track takes very little CPU, but the encoding
> pegs the CPU. By interleaving ripping and encoding the CPU cycles for
> encoding can be spread out over the time it takes to rip the track,
> which may help alleviate the pegging of the CPU. If the encoder that is
> being used takes as long or longer than the time to rip the CPU will
> still be pegged.
> Another advantage is there is no need for temporary space since there is
> no temporary file.
> I don't have any metrics on whether or not it is faster, that isn't my
> main goal. I just want ripping/encoding to be as friendly to the system
> as possible in case a recording is being done at the same time. That
> said, it "feels" faster.
> Lonnie Hutchinson
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1pass-rip.patch
Type: text/x-patch
Size: 23993 bytes
Desc: not available
Url : /pipermail/attachments/20030209/390ae825/1pass-rip.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: encoder.h
Type: text/x-c-header
Size: 439 bytes
Desc: not available
Url : /pipermail/attachments/20030209/390ae825/encoder.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: encoder.cpp
Type: text/x-c++
Size: 533 bytes
Desc: not available
Url : /pipermail/attachments/20030209/390ae825/encoder-0001.bin

More information about the mythtv-dev mailing list