<div><div dir="auto">Mythtranscode can do more than nuppel or mjpeg,</div><div dir="auto"><br></div><div dir="auto">I would have loved to drop all those weird formats, but you still have users with nuv recorders. That thing never dies.</div><br><div class="gmail_quote"><div>On Mon, 4 Dec 2017 at 10:07 pm, Peter Bennett <<a href="mailto:pb.mythtv@gmail.com">pb.mythtv@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In my project of updating the deprecated ffmpeg calls, I got to<br>
"avcodec_encode_video2", which is the function that passes frames to<br>
ffmpeg for encoding. It is replaced by avcodec_send_frame and<br>
avcodec_receive_packet.<br>
<br>
It seems the main use of video encoding is for mythtranscode. It is also<br>
used for nuppelvideo recording.<br>
<br>
I have never used mythtranscode, commercial scan or the editing features.<br>
<br>
I tested transcode without my changes. I selected the highest resolution<br>
it would allow in the setup (720x480), and selected mpeg-4 (there are<br>
only 2 options, mjpeg and mpeg-4). I ran it on a 1.0 GB 1080i (mpeg2)<br>
file and it produced a 1.5 GB 1920x1080 nuppelvideo H263 file. This<br>
seems less than useful and I question whether it is still used or<br>
needed. Selecting mjpeg produced a 2.7 GB file, even less useful.<br>
<br>
With my changes, transcoding to mpeg-4 produced a 1.5 GB unplayable<br>
file, with no error message during transcode but huge numbers of errors<br>
during failed playback.<br>
<br>
I checked the code and it seems to be calling everything correctly.<br>
<br>
At this point I am leaving the deprecated avcodec_encode_video2 in<br>
place. Maybe the entire transcode process should be deprecated, or maybe<br>
it should be fixed so it is useful and actually produce a smaller file<br>
than the original. H264 would be a better choice.<br>
<br>
Peter<br>
<br>
_______________________________________________<br>
mythtv-dev mailing list<br>
<a href="mailto:mythtv-dev@mythtv.org" target="_blank">mythtv-dev@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-dev" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-dev</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div></div>