[vdr] How to convert a JPEG image to an I-frame?
Klaus.Schmidinger at cadsoft.de
Sun Nov 11 15:00:12 CET 2007
On 11/01/07 13:21, Stefan Huelswitt wrote:
> On 01 Nov 2007 Klaus Schmidinger <Klaus.Schmidinger at cadsoft.de> wrote:
>> I'm looking for a method to convert a JPEG image to an
>> MPEG-2 I-frame that can be displayed through VDR's
>> cDevice::StillPicture() function. The conversion should
>> be done by a (sequence of) shell command(s).
> May be something like this:
> # requires: ...topnm, pnmscale, pnmcomp, ppmntsc, ppmtoy4m, mpeg2enc
When I display a picture generated with this script through a call
to DeviceStillPicture(), the display looks very nice for a short while,
and after that slanted lines get jagged. It appears as if the two
interlaced half-pictures are first sent in turn, and finally only
one of them is displayed continuously.
Calling DeviceStillPicture() repeatedly in a loop results in the
display jumping between "nice" and "jagged".
So I thought about sending the picture file to the device through
cPlayer::PlayPes() in a continuous loop. For that purpose I have
added a call to 'mplex' to the script, as can be seen in the attachment.
When I display such a still file on a FF DVB card by calling cPlayer::PlayPes()
in a continuous loop, the image on the tv screen looks like it is
displaying both interlaced half-pictures in turn, but it is "jumpy" (as if
the time between displaying the two half pictures is too long).
Does anybody have an idea how this could be improved, so that
I get a smooth display, with slanted lines not jagged (just as if
a still picture was shown in a normal movie)?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the vdr