[mythtv-users] transcode

Jay Harbeston jharbestonus at gmail.com
Sun Mar 10 14:13:50 UTC 2019



> On Mar 10, 2019, at 7:14 AM, James Linder <jam at tigger.ws> wrote:
> 
> Hi
> 
> since mythtranscode does not handle h264 I’ve been trying to use mythffmpeg.
> The best I can gather via google is
> 
> ffmpeg -i "test.avi" -c:v libx264 -crf 20 -c:a aac -strict -2 “test.mp4”
> 

I use the following shell to cut mp4 ts files using the cutlist generated from editing in mythfrontend:

https://pastebin.com/SkMT2BRe <https://pastebin.com/SkMT2BRe>

It uses the passwd info from /etc/mythtv/config.xml. there is a temp directory used that can be changed as well as the directory where the recordings live.

I then create a user job using the following for the execute field:

/usr/local/bin/ffcut.sh %DIR% %CHANID% %STARTTIMEUTC% >> /tmp/ffcut.log

You will need to tweak the next line(line29 of the shell) depending on how you use mysql or mariadb:

basename=`mysql --login-path=local -N "${dbname}" <<-EOF


Regards.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20190310/bb067047/attachment.html>


More information about the mythtv-users mailing list