<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">On October 24, 2014 at 12:30:02 PM, scott@tbwifi.ca (<a href="mailto:scott@tbwifi.ca">scott@tbwifi.ca</a>) wrote:</div> <div><div><blockquote type="cite" class="clean_bq" style="color: rgb(0, 0, 0); font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><div><div></div><div>Hi,<span class="Apple-converted-space"> </span><br><br>Thanks for the tip on using ffmpeg, but I have been playing around trying<span class="Apple-converted-space"> </span><br>to get Mythbrake to work for my situation (uses Handbrake), but I thinking<span class="Apple-converted-space"> </span><br>there are many features of this that I don't require. Perhaps I'm wrong.<span class="Apple-converted-space"> </span><br>All I really want to do is convert the mpeg2 file to h.264 and place into<span class="Apple-converted-space"> </span><br>a MP4 container. Handbrake seems to be the best choice. Since I don't<span class="Apple-converted-space"> </span><br>really need the extra stuff in this script<span class="Apple-converted-space"> </span><br>https://www.mythtv.org/wiki/Mythbrake related to audio track checking and<span class="Apple-converted-space"> </span><br>selection, can someone offer thoughts on what I can comment out? I'm<span class="Apple-converted-space"> </span><br>having some challenges getting mediainfo to work, but now realize that I<span class="Apple-converted-space"> </span><br>likely don't need that step.<span class="Apple-converted-space"> </span><br><br>Any tips appreciated!<span class="Apple-converted-space"> </span><br><br>Scott<span class="Apple-converted-space"> </span></div></div></span></blockquote></div><p><br></p></div><p>I dealt with the same problem when I was creating my initial setup, although I wanted to transcode my content to mp4 files compatible with iOS devices.</p><p>I have a script that uses ffmpeg and works pretty well—it’s a derivation a script I found on someone’s blog and is written in bash: <a href="http://static.lucasec.com/mythtv/mythtranscode-h264.sh">http://static.lucasec.com/mythtv/mythtranscode-h264.sh</a>. To run it from a user job, create a user job with this command line: “/path/to/mythtranscode-h264.sh "%DIR%/%FILE%" "%CHANID%" "%STARTTIMEUTC%" "%JOBID%””.</p><p>Getting a MKV out of the script should be as simple as changing $DEST_BASE (line 35) to have a .mkv extension. Change the -scodec option on line 86 from “mov_text" to “srt” as mkv uses different subtitle formats than mp4.</p><p>There are a few other gotchas. Make sure you set your database user/pass at the top of the script so that it can report progress into the job queue table. Also, the current script converts audio into AAC using the libfdk_aac encoder, which your ffmpeg install probably didn’t come with. If you want original audio, just delete the -acodec and -vbr options and add "-acodec copy" on lines 86 and 90.</p></body></html>