<br><br><div class="gmail_quote">On Wed, Jun 4, 2008 at 10:17 PM, John <<a href="mailto:reidjr@btconnect.com">reidjr@btconnect.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
</div>Just in case anybody wants to play, this hack will assume that any mpeg1<br>
video it sees via the internal player is really ITV-HD, and set the<br>
frame size and codec id.<br>
<br>
Its a real hack, (against 0.21-fixes) so only use it for playing. FFmpeg<br>
doesnt cope well with the variety of h.264 encoding, so this is only so<br>
you can happily claim you've seen "the gherkin", or more recently "the<br>
real deal".<br>
<br>
For some reason I cant work out, Livetv doesnt work, but you can record<br>
and playback. Livetv gives a black screen, but of course you can go back<br>
and watch the recording from the livetv group.<br>
<br>
Index: libs/libmythtv/avformatdecoder.cpp<br>
===================================================================<br>
--- libs/libmythtv/avformatdecoder.cpp (revision 17392)<br>
+++ libs/libmythtv/avformatdecoder.cpp (working copy)<br>
@@ -1473,9 +1473,19 @@<br>
}<br>
<br>
// HACK -- begin<br>
+ // ITV-HD enc is shown as MPG1 and size is also wrong<br>
+ if (CODEC_ID_MPEG1VIDEO == enc->codec_id)<br>
+ {<br>
+ enc->codec_id = CODEC_ID_H264;<br>
+ enc->width = 1440;<br>
+ enc->height = 1080;<br>
+ }<br>
// ffmpeg is unable to compute H.264 bitrates in mpegts?<br>
if (CODEC_ID_H264 == enc->codec_id && enc->bit_rate == 0)<br>
+ {<br>
enc->bit_rate = 500000;<br>
+ enc->skip_loop_filter = AVDISCARD_ALL;<br>
+ }<br>
// HACK -- end<br>
<br>
bitrate += enc->bit_rate;<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
John<br>
______</div></div></blockquote><div><br><br>With the above patch and the coreavc-for-linux patches, r60 (from <a href="http://code.google.com/p/coreavc-for-linux/">http://code.google.com/p/coreavc-for-linux/</a>) & 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.<br>
<br>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.<br>
<br><br>Thanks<br>Peter<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c">_________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br>