Script to export Mythtv recordings to a folder or NAS

For discussion related to MythTV which doesn't belong in another forum.

Moderator: Forum Moderators

Skinah2
Newcomer
Posts: 7
Joined: Fri Jan 20, 2017 3:57 am
Switzerland

Re: Script to export Mythtv recordings to a folder or NAS

Post by Skinah2 » Fri Feb 10, 2017 4:17 am

axel77 wrote: It's actually pretty surprising that the biggest difference isn't in the resolution, but in the compression format.
Yes that is what I found, also I found that different channels used a different resolution and they can change it up or down at will on the same channel during a day. What this means is that it is very difficult to get consistant quality and filesize as you would need to script a different quality setting depending on what resolution the video is in, I have seen other scripts do this and they are overly complex. My solution was to keep it simple and make the resolution smaller and then the same quality setting worked for all my channels. Of course every country has broadcasted material in different formats and each user of this script will have a different idea of what is a good filesize VS quality tradeoff VS speed to complete the transcode. On top of that you also find that some handbrake settings will then break the ability to play the files on mobile devices should you wish to watch your own movie or show on an airplane flight.

Skinah2
Newcomer
Posts: 7
Joined: Fri Jan 20, 2017 3:57 am
Switzerland

Re: Script to export Mythtv recordings to a folder or NAS

Post by Skinah2 » Fri Feb 10, 2017 6:59 am

axel77 wrote: If you want to get 720p you'll need to change the -X to -Y. It's actually pretty surprising that the biggest difference isn't in the resolution, but in the compression format.
I agree it may seem better to use the -Y but there was a reason why I used the -X and it may have been for supporting and getting more consistant results between 4:3, 16:9 and 21:9 programs as Handbrake will detect the black bars and strip/crop the black pixels away. It was a long time ago when I came up with those settings based on looking at what a large variety of recordings came out to be so I cant be sure. Record different channels at different times of the day and also different aspect ratios to compare before settling on your settings.

Very happy people are finding the script useful and this was one reason why I wanted to keep it to bash terminal commands so it is easy for a noob to edit changes as it will not suit what everyone wants. Try to limit the changes you make because if I make major changes and post an updated version it will make your life easier putting your changes into the new script.

george4
Newcomer
Posts: 1
Joined: Fri Feb 17, 2017 11:01 pm
United States of America

Re: Script to export Mythtv recordings to a folder or NAS

Post by george4 » Sun Feb 19, 2017 12:45 am

Thank you for this script. I set all quality levels to 0 and ignored all information re transcoding. It worked fine for me.

Skinah2
Newcomer
Posts: 7
Joined: Fri Jan 20, 2017 3:57 am
Switzerland

Re: Script to export Mythtv recordings to a folder or NAS

Post by Skinah2 » Sun Feb 18, 2018 2:20 am

Does anyone have features they wish to be added to this script?

MoisiePants
Junior
Posts: 25
Joined: Sat Jul 23, 2016 11:41 am
Great Britain

Re: Script to export Mythtv recordings to a folder or NAS

Post by MoisiePants » Sat Sep 29, 2018 10:24 am

Hello,

I've had a look around, but I can't see an answer to this: is there a way to run this script (presumably as a User Job) on specific recordings that have been made, rather than as an 'applies-to-every-recording' way?
I hoped there might be a key command in the FrontEnd to run a User Job - but I can't see that.

Thanks,

Pants.

User avatar
bill6502
Developer
Posts: 1083
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Script to export Mythtv recordings to a folder or NAS

Post by bill6502 » Sat Sep 29, 2018 4:34 pm

I *think* you're asking for a command line tool. See mythutil --help and
look near the very end for the --queuejob switch.

MoisiePants
Junior
Posts: 25
Joined: Sat Jul 23, 2016 11:41 am
Great Britain

Re: Script to export Mythtv recordings to a folder or NAS

Post by MoisiePants » Sun Sep 30, 2018 8:45 am

Thanks Bill - I'll look into that. An initial glance suggests that's exactly what I need!

daraden
Senior
Posts: 160
Joined: Tue Feb 23, 2016 7:33 am
United States of America

Re: Script to export Mythtv recordings to a folder or NAS

Post by daraden » Tue Oct 02, 2018 11:13 pm

I hoped there might be a key command in the FrontEnd to run a User Job - but I can't see that.
press M > job options > begin job name. Alternatively if you use Mythweb you can queue a job from the recording details page.

MoisiePants
Junior
Posts: 25
Joined: Sat Jul 23, 2016 11:41 am
Great Britain

Re: Script to export Mythtv recordings to a folder or NAS

Post by MoisiePants » Sat Oct 13, 2018 10:15 am

Thanks Daraden - even better!

Post Reply