<div class="gmail_quote">On 1 October 2012 19:23, Paul Gardiner <span dir="ltr"><<a href="mailto:lists@glidos.net" target="_blank">lists@glidos.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br></div>
Yes, here's an example of one of my mythtv user jobs:<br>
/home/paul/bin/mythar --chanid "%CHANID%" --starttime "%STARTTIME%" --title "%TITLE%" --subtitle "%SUBTITLE%" --outdir /home/public/video/Archive --passthrough --interlaced<br>
<br>
That example keeps the same frame size and maintains the interlace.<br>
For most transcodes you probably want to drop the --interlaced option.<br>
I have four jobs two that maintain the frame size and two that convert<br>
to 1280x720. Each set has interlaced and not interlaced.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. have a file with a cutlist<br>
</blockquote>
<br></div>
Yes, before setting off the user job, I use the<br>
editor as normal to add cut points.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. run your script in that file<br>
</blockquote>
<br></div>
Not sure what you mean: I set off the user job<br>
from the frontend or from mythweb<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
4. where the output goes?<br>
</blockquote>
<br></div>
They end up where specified by --outdir, above. The original<br>
recording is not deleted.<br>
<br>
Cheers,<br>
Paul.<br></blockquote></div><br>Thanks for posting this Paul, never came across that on the Wiki. Have been searching for a script that does cutlists and output directory, that can be ran as a user job! Perfect!<br>
<br>But, looks like there is an issue with the ffmpeg syntax on the wiki page. I get an error:<br><br>/usr/bin/ffmpeg -f s16le -ac 2 -ar 48000 -i /tmp/mythar29470/audout -f rawvideo -top 1 -pix_fmt yuv420p -s 704x576 -r 25 -i /tmp/mythar29470/vidout -threads 2 -vcodec libx264 -preset medium -profile high -crf 20.0 -aspect 16:9 -acodec ac3 -ab 160k -ar 48000 -f mp4 /media/media/Videos/Other/Transcoded/%TITLE% - %SUBTITLE%.mp4<br>
ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers<br> built on Jun 12 2012 16:37:58 with gcc 4.6.3<br>*** THIS PROGRAM IS DEPRECATED ***<br>This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.<br>
[s16le @ 0x9977aa0] Estimating duration from bitrate, this may be inaccurate<br>Input #0, s16le, from '/tmp/mythar29470/audout':<br> Duration: N/A, start: 0.000000, bitrate: N/A<br> Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s<br>
[rawvideo @ 0x9980660] Estimating duration from bitrate, this may be inaccurate<br>Input #1, rawvideo, from '/tmp/mythar29470/vidout':<br> Duration: N/A, start: 0.000000, bitrate: N/A<br> Stream #1.0: Video: rawvideo, yuv420p, 704x576, 25 tbr, 25 tbn, 25 tbc<br>
Unrecognized option 'preset'<br>Failed to set value 'medium' for option 'preset'<br><br><br>Removing "-preset medium" from the script, I then get a "Unknown encoder 'libx264'".<br>
<br>So, has potential, I just need to sort these ffmpeg errors.<br><br>Cheers<br><br>Martin<br>