Opened 13 years ago

Closed 13 years ago

#2233 closed enhancement (fixed)

A PERL script to be run as a userjob to export DVB radio recordings to MP3

Reported by: justin.hornsby@… Owned by: Stuart Auchterlonie
Priority: trivial Milestone: 0.21
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

How to use dvbradioexport.pl

dvbradioexport.pl %CHANID% %STARTTIME% %ENDTIME% exportdir bitrate --debug

%CHANID% = channel ID associated with the recording to export

%STARTTIME% = recording start time in either 'yyyy-mm-dd hh:mm:ss' or 'yyyymmddhhmmss' format

%ENDTIME = as %STARTTIME% but for the recording end time

exportdir = dir to export completed MP3 files to (note the user the script runs as must have write permission on that dir

bitrate = CBR bitrate in kbps (e.g. 192)

--debug = enable debugging information - outputs which commands would be run etc

Attachments (3)

dvbradioexport.pl (7.4 KB) - added by Juski 13 years ago.
dvbradioexport.2.pl (6.9 KB) - added by Juski 13 years ago.
slightly updated version of the script
dvbradioexport.3.pl (4.8 KB) - added by Stuart Auchterlonie 13 years ago.
Updated to use perl bindings and work with storage groups.

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by Juski

Attachment: dvbradioexport.pl added

comment:1 Changed 13 years ago by Stuart Auchterlonie

Milestone: unknown0.21

This needs to be updated to work with the latest ffmpeg command line. Also it would be wise to check the bitrate of the recorded stream before exporting so as to avoid upconverting the recording to a higher bitrate which is pointless and a waste of disk space.

comment:2 Changed 13 years ago by anonymous

Thanks for this script. I have used it but changed it to output pcm instead of mp3, because I burned the files to an audio CD. I used, for instance, '-acodec pcm_s16le -ar 44100 -f wav' instead of '-acodec mp3 -ab 192 -f mp3'. This should IMHO be configurable, i.e. command line option for specifying codec too. In case of pcm, the command line option 'bitrate' is then samplerate.

Changed 13 years ago by Juski

Attachment: dvbradioexport.2.pl added

slightly updated version of the script

Changed 13 years ago by Stuart Auchterlonie

Attachment: dvbradioexport.3.pl added

Updated to use perl bindings and work with storage groups.

comment:3 Changed 13 years ago by Stuart Auchterlonie

Resolution: fixed
Status: newclosed

(In [13373]) Closes #2233. Adds a script to be run as a user job to export dvb radio recordings to mp3.

Original script by Justin Hornsby.

I've updated it to use the MythTV perl bindings and to support storage groups.

This will also work against 0.20 provides you have installed the perl bindings.

Note: See TracTickets for help on using tickets.