<br><br><div class="gmail_quote">On Wed, Jun 4, 2008 at 10:17 PM, John &lt;<a href="mailto:reidjr@btconnect.com">reidjr@btconnect.com</a>&gt; 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&#39;ve seen &quot;the gherkin&quot;, or more recently &quot;the<br>
real deal&quot;.<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 &nbsp; &nbsp;(revision 17392)<br>
+++ libs/libmythtv/avformatdecoder.cpp &nbsp; &nbsp;(working copy)<br>
@@ -1473,9 +1473,19 @@<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // HACK -- begin<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// ITV-HD enc is shown as MPG1 and size is also wrong<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (CODEC_ID_MPEG1VIDEO == enc-&gt;codec_id)<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enc-&gt;codec_id = CODEC_ID_H264;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enc-&gt;width = 1440;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enc-&gt;height = 1080;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // ffmpeg is unable to compute H.264 bitrates in mpegts?<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CODEC_ID_H264 == enc-&gt;codec_id &amp;&amp; enc-&gt;bit_rate == 0)<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enc-&gt;bit_rate = 500000;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enc-&gt;skip_loop_filter = AVDISCARD_ALL;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // HACK -- end<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bitrate += enc-&gt;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>) &amp; using 0.21-fixes 17404. I&#39;m able to view the ITV-HD file posted earlier in this thread using coreavc rather than ffmpeg. I&#39;m assuming/hoping that coreavc will be better than ffmpeg (for now at least) as it tends to support more of the h264 &#39;bits&#39; than ffmpeg does.<br>
<br>However while I can see the &#39;gerkin&#39;, I get a &quot;picture-over-picture&quot; 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&#39;m outputing at 1920x1080 if it might make any difference.<br>
<br><br>Thanks<br>Peter<br>&nbsp;</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>