Newbie| How to do a convertion to mp4 after recording

For discussion of topics specific to MythTV on linux
Post Reply
pelikan
Newcomer
Posts: 1
Joined: Mon May 02, 2022 11:40 am
Germany

Newbie| How to do a convertion to mp4 after recording

Post by pelikan » Mon May 02, 2022 1:15 pm

Good day,
did you have any tips how to do automatically a conversion to mp4 after recording.
I had put in mythtv-setup in task 1 "mytvtranscode" but it doesn't work.
Unfortunately i can't find a tutorial how to do that.
Any idea?

I use mythtv 32 on an Ubutun 20.4

Best wishes

LinuxGeek28
Newcomer
Posts: 11
Joined: Mon Dec 24, 2018 4:55 pm
United States of America

Re: Newbie| How to do a convertion to mp4 after recording

Post by LinuxGeek28 » Mon May 02, 2022 7:31 pm

Although I was able to get MythTV to transcode my recordings with the default transcoder, I was unhappy with the results.
Your best bet may be the wiki:
https://www.mythtv.org/wiki/Category:Scripts
https://www.mythtv.org/wiki/Category:Perl_Scripts

There are multiple pages related to transcoding. Nuvexport seems to be the most recent.
Keep in mind that just about any script prior to version 30 will not work with your version without modification.

Many people prefer the Handbrake CLI to transcode recordings. There are numerous presets you can use.

Read a few of the wiki pages on post recording jobs and such. It seems a lot of people roll-their-own when it comes to this. Maybe someone else has done it and will share their script with you.

sleepyhead
Newcomer
Posts: 2
Joined: Fri Apr 26, 2019 11:28 am
Canada

Re: Newbie| How to do a convertion to mp4 after recording

Post by sleepyhead » Fri May 06, 2022 11:47 am

I started with the script from Mike Stucky (can't link, search for Transcode_Mpeg2_to_H264 on mythtv dot org) and modified it to pass parameters to ffmpeg that used the h/w encoders on my GPU. I then made a user job on the server, General, Job Queue (job Commands), User Job #1 as something like '/home/sleepy/bin/mythtranscode264(dot)py %JOBID%. I can now set recording rules up to use that post processing job. From the command line I can call the script manually using channel/timestamp/timezone offset. I.e. assuming my recorded file name is 16503_20201113003000.ts, I would run:

mythtranscode264(dot)py --chanid=16503 --starttime=20201113003000 --tzoffset=-5

Sometimes mucking about to find my tz offset, depending if we're in DST or not. YMMV, hope you know a little python, but your versions look like it should be compatible.

Edit: No, sorry, not compatible, I think you'll have some python version issues with 32

Post Reply