[mythtv-users] User Job fails.

Hika van den Hoven hikavdh at gmail.com
Thu Jan 14 10:24:53 UTC 2016


Hoi Hika,

Thursday, January 14, 2016, 11:16:47 AM, you wrote:

> Hoi Alec,

> Thursday, January 14, 2016, 10:47:47 AM, you wrote:

>> On 14/01/16 10:38, John Pilkington wrote:
>>> On 14/01/16 08:42, Mark Perkins wrote:

>>>>
>>>> My suggestion would be to create a basic script that takes the %FILE%
>>>> as input and does the sed (or equivalent for your preferred script
>>>> language) conversion to create the desired command line. I imagine it
>>>> should only be a few lines long.

>> Not tested (and certainly no bash guru) but if saved as myth2mpeg.sh and
>> invoked as "myth2mpeg <file>":

>> #!/usr/bin/bash
>> exec nice -n 20 mythffmpeg -i $1.mpg -target ntsc-dvd ${1}SD.mpg

>> Cheers!

>> --alec

> If you want the SD variant in your recordings, adapt it like this:

> #!/usr/bin/bash
> mv ${1}.mpg ${1}HD.mpg
> exec nice -n 20 mythffmpeg -i ${1}HD.mpg -target ntsc-dvd ${1}.mpg

> And then if you want to throw away the SD variant and put the HD back
> in place:

> #!/usr/bin/bash
> rm ${1}.mpg
> mv ${1}HD.mpg ${1}.mpg

of course you can also look into the default transcode options. It has
a checkbox to keep the old file and you could at the same time
process a cut list.
And then if you want to put the old file back, run a script like the
above.
I also forgot that you should add a rebuild of the seek-tables in both
cases!

Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list