[mythtv-users] Transcode script that keeps show in Recordings
Lists
lists at the-pearsons.co.uk
Thu Jun 8 10:34:36 UTC 2023
Hi Jay,
I had to make a few modifications to your ffcut.sh script to get it to work - modifying the mysql commands, slightly as they didn't work on my system as written, but I soon resolved that.
The other modifications I had to make were to the ffmpeg commands, since my h264 recordings with AC3 5.1 audio were transcoding without audio - I changed the commands as follows:
cmdffmpeg="ffmpeg -i $infile -t $duration -ss $ss -map 0:v -c:v copy -map 0:1 -c:a ac3 -ar 48000 $outfile"
and
cmdffmpeg="ffmpeg -f concat -safe 0 -i $tmpdir/filelist.txt -map 0:v -c:v copy -map 0:1 -c:a ac3 -ar 48000 $outfile"
this resolved the audio problems, but I am unable to rebuild the seektable for the newly transcoded recordings
I imagine that the ffmpeg command needs some further modification, but I have no idea what that would be - maybe this will help you, though, with your python script?
Regards,
Dave
-----Original message-----
From: Jay Harbeston <jharbestonus at gmail.com>
Sent: Thursday 8th June 2023 0:20
To: Discussion about MythTV <mythtv-users at mythtv.org>
Subject: Re: [mythtv-users] Transcode script that keeps show in Recordings
On Jun 7, 2023, at 7:13 PM, James <jam at tigger.ws> wrote:
On 8 Jun 2023, at 7:08 am, Jay Harbeston <jharbestonus at gmail.com <mailto:jharbestonus at gmail.com> > wrote:
I have created a python version of ffcut.sh and am currently making sure I have most of the kinks out of it.
I’m thinking tomorrow I should be able to post the python version the same way as I did the shell version.
With the python version I did not have to create the text files as intermediary holding arrays for data that needed to be used.
It will require python version 3+.
jamesWhen I created it originally, mythtranscode would not handle mp4 streams that we were getting from the HDHRs when silicon dust did the 4 or so month experiment of being a content provider from the cloud. The ffmpeg version ffcut.sh and soon the ffcut.py version will be able to handle both mp4 and mpeg 2 transport streams.
Can you cut h264 recordings?
I have 2 trancode-lossless scripts, 1 for each
I know it can cut mp4 ts streams…
If ffmpeg can cut h264 and there is a list of cuts in mythtv, it should be able to. I do know that mp4s created from handbrake can not create a seektaable, so cannot be flagged in mythtv.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20230608/3d18f74f/attachment.htm>
More information about the mythtv-users
mailing list