[mythtv] Update recording file name from command line?
Richard Shaw
hobbes1069 at gmail.com
Tue Dec 18 22:16:25 UTC 2018
Tue, Dec 18, 2018 at 3:19 AM John Pilkington <johnpilk222 at gmail.com> wrote:
> On 18/12/2018 00:09, Richard Shaw wrote:
>
> I misunderstood your wish to rename your recording. I use this in
> mythDVBcut to rename after conversion from .ts to .mpg
>
> {{{
>
> # tell mythDB about new filename and set the 'transcoded' flag
> echo "update recorded set basename='${OUTFILE}', transcoded = 1
> where recordedid = '$recordedid' ; " |
> mysql -N -u${DBUserName} -p${DBPassword} -h${DBLocalHostName} ${DBName}
>
>
> # Update the container type, needed for uPnP playback. Empty will
> work too, if the transcoded flag is set.
> # This is a HACK pending 0.28 release, when mythutil should do it.
> See Ticket #12388
>
> echo "update recordedfile set basename = '${OUTFILE}', container =
> 'MPEG2-PS' where recordedid = '$recordedid' ;" |
> mysql -N -u${DBUserName} -p${DBPassword} -h${DBLocalHostName} ${DBName}
>
> }}}
I would rather not do direct DB manipulation but this looks pretty
straightforward...
Thanks,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20181218/5faf6e34/attachment.html>
More information about the mythtv-dev
mailing list