Opened 7 years ago

Closed 3 years ago

#13251 closed Patch - Feature (Trac EOL)

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@…> 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by Dan Wilga <mythtv-users2@…>

comment:1 Changed 6 years ago by jpoet

Hi Dan,

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

Thanks,

John

comment:2 Changed 3 years ago by Stuart Auchterlonie

Resolution: Trac EOL
Status: newclosed

We have moved all bug tracking to github [1]

If you continue to have this issue, please open a new issue at github, referencing this ticket.

[1] - https://github.com/MythTV/mythtv/issues

Note: See TracTickets for help on using tickets.