[mythtv-commits] Ticket #13251: Give mythfilerecorder the ability to run an external program

MythTV noreply at mythtv.org
Wed Mar 21 15:12:33 UTC 2018


#13251: Give mythfilerecorder the ability to run an external program
-------------------------------------+-------------------------------------
     Reporter:  Dan Wilga <mythtv-   |      Owner:
  users2@…>                          |
         Type:  Patch - Feature      |     Status:  new
     Priority:  minor                |  Milestone:  needs_triage
    Component:  MythTV - General     |    Version:  Master Head
     Severity:  medium               |   Keywords:
                                     |  mythfilerecorder,external
Ticket locked:  0                    |  tuner,blackbox
-------------------------------------+-------------------------------------
 I have recently modified mythfilerecorder so that it is possible to run an
 external program (such as ffmpeg) and send its stdout to the backend as a
 TS stream. The attached patch also adds a "--tuner" option, which points
 to an external script to tune the channel before recording begins. This
 allows me to do something like this:

 {{{
 mythfilerecorder --exec --infile 'ffmpeg -channels 8 -format_code Hi59 -f
 decklink -i "DeckLink Mini Recorder" -ac 6 -pix_fmt yuv420p -c:a ac3 -c:v
 libx264 -threads 5 -preset veryfast -f mpegts pipe:1' --tuner
 '/path/to/upnpchannelchanger 192.168.65.18'
 }}}

 to capture from a BlackMagic DeckLink card, compress using H.264/AC-3, and
 output as a TS stream. Another user has used this to capture from a
 generic, IP-based card.

 Since it does not look to me as though mythfilerecorder has changed since
 0.28.1, I actually created this patch there. It should apply equally well
 against master.

 If this patch is accepted I'll gladly update the docs on the Wiki to
 reflect the changes.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13251>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list