<div dir="ltr">On Thu, Mar 17, 2016 at 5:43 PM HP-mini <<a href="mailto:blm-ubunet@slingshot.co.nz">blm-ubunet@slingshot.co.nz</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 2016-03-17 at 18:52 +0000, John P Poet wrote:<br>
><br>
><br>
> On Thu, Mar 17, 2016 at 12:32 PM HP-mini <<a href="mailto:blm-ubunet@slingshot.co.nz" target="_blank">blm-ubunet@slingshot.co.nz</a>><br>
> wrote:<br>
><br>
> On Wed, 2016-03-16 at 21:02 -0400, eric wrote:<br>
> > Hey I am trying to setup a external recorder in mythtv 0.28<br>
> and am<br>
> > having some issues getting it setup<br>
> > I have setup a new external recorder in mythtv-setup and<br>
> added<br>
> > /usr/bin/mythfilerecorder --infile test.mpg<br>
> > as the recorder. I connect it to my no grab video source<br>
> with a channel<br>
> > changing command of "echo"<br>
> ><br>
> > When switching the source to the external recorder in the<br>
> frontend<br>
> > causes nothing to happen. Any idea what I'm doing wrong<br>
> here?<br>
> ><br>
> > This is the error in the log file<br>
> > mythtv mythbackend: mythbackend[8069]: E CoreContext<br>
> > recorders/dtvchannel.cpp:343 (SetChannelByString)<br>
> > DTVChan[26](/usr/bin/mythfilerecorder --infile<br>
> > /home/eric/pvr2/test.mpg): SetChannelByString(998): PID<br>
> cache is empty<br>
> ><br>
> > I can provide the whole log file if it helps<br>
> > regards<br>
> > Eric<br>
> ><br>
><br>
> I would suspect it's possible that the file "test.mpg" is<br>
> required to be<br>
> mpeg transport stream.<br>
> mediainfo or (myth)ffprobe the file to check.<br>
><br>
><br>
> It does need to be a TS. I am working on a new version which will<br>
> allow it to be a PS instead, but I have not had time to finish it.<br>
><br>
><br>
> John<br>
><br>
> _______________________________________________<br>
<br>
H264 in PS -> TS:<br>
ffmpeg -i test.mpg -c:v copy -c:a copy -f mpegts -bsf:v h264_mp4toannexb<br>
Videos/testmpg.ts<br>
<br>
John<br>
Is that a BE parser for H264 in PS (avcC) & does that then allow for<br>
seektables for H264 in mpeg PS & MKV containers ?<br></blockquote><div><br></div><div>The ExternalRecorder mechanism currently handles the data just like it would for any other TS data source such as DVB. The new code will allow the ExternalRecorder application to specify that it is a Program Stream instead, and then it would be processed like any other PS, such as from a V4L2 compatible encoder card.<br><br></div><div>Either way, the data is analyzed for keyframes and a seektable is created.<br><br></div><div>I have no plans on handling any containers other than straight TS or PS as MythTV does not currently have any support for anything else.<br><br></div><div>Does that answer your question?<br><br></div><div>John<br><br></div><div><br> <br></div></div></div>