Opened 20 months ago

Last modified 12 months ago

#13251 new Patch - Feature

Give mythfilerecorder the ability to run an external program

Reported by: Dan Wilga <mythtv-users2@…> Owned by:
Priority: minor Milestone: needs_triage
Component: MythTV - General Version: Master Head
Severity: medium Keywords: mythfilerecorder, external tuner, blackbox
Cc: Ticket locked: no

Description

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.

Attachments (1)

mythfilerecorder-add-exec.patch (11.8 KB) - added by Dan Wilga <mythtv-users2@…> 20 months ago.

Download all attachments as: .zip

Change History (2)

Changed 20 months ago by Dan Wilga <mythtv-users2@…>

comment:1 Changed 12 months ago by jpoet

Hi Dan,

Can you take a look at the new mythexternrecorder application and see if it meets your needs?

Thanks,

John

Note: See TracTickets for help on using tickets.