[mythtv-users] BBC HD on Freesat

Peter pleeke at gmail.com
Fri Jun 6 07:27:09 UTC 2008


On Wed, Jun 4, 2008 at 10:17 PM, John <reidjr at btconnect.com> wrote:

>
> Just in case anybody wants to play, this hack will assume that any mpeg1
> video it sees via the internal player is really ITV-HD, and set the
> frame size and codec id.
>
> Its a real hack, (against 0.21-fixes) so only use it for playing. FFmpeg
> doesnt cope well with the variety of h.264 encoding, so this is only so
> you can happily claim you've seen "the gherkin", or more recently "the
> real deal".
>
> For some reason I cant work out, Livetv doesnt work, but you can record
> and playback. Livetv gives a black screen, but of course you can go back
> and watch the recording from the livetv group.
>
> Index: libs/libmythtv/avformatdecoder.cpp
> ===================================================================
> --- libs/libmythtv/avformatdecoder.cpp    (revision 17392)
> +++ libs/libmythtv/avformatdecoder.cpp    (working copy)
> @@ -1473,9 +1473,19 @@
>                 }
>
>                 // HACK -- begin
> +                // ITV-HD enc is shown as MPG1 and size is also wrong
> +                if (CODEC_ID_MPEG1VIDEO == enc->codec_id)
> +                   {
> +                        enc->codec_id = CODEC_ID_H264;
> +                        enc->width = 1440;
> +                        enc->height = 1080;
> +                   }
>                 // ffmpeg is unable to compute H.264 bitrates in mpegts?
>                 if (CODEC_ID_H264 == enc->codec_id && enc->bit_rate == 0)
> +                {
>                     enc->bit_rate = 500000;
> +                    enc->skip_loop_filter = AVDISCARD_ALL;
> +                }
>                 // HACK -- end
>
>                 bitrate += enc->bit_rate;
>
>
> John
> ______
>


With the above patch and the coreavc-for-linux patches, r60 (from
http://code.google.com/p/coreavc-for-linux/) & using 0.21-fixes 17404. I'm
able to view the ITV-HD file posted earlier in this thread using coreavc
rather than ffmpeg. I'm assuming/hoping that coreavc will be better than
ffmpeg (for now at least) as it tends to support more of the h264 'bits'
than ffmpeg does.

However while I can see the 'gerkin', I get a "picture-over-picture" effect
where the video is displayed twice once covering the whole screen and once
in the top left corner covering about 2 thirds of the screen. Any ideas?
Maybe related to the hard coded size values in the above patch? I'm
outputing at 1920x1080 if it might make any difference.


Thanks
Peter


> _________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20080606/1625478d/attachment.htm 


More information about the mythtv-users mailing list