<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Sorry I didn't mention that before, I have that in a script
    already.&nbsp; I just included it so show what parameters I was already
    passing to ffmpeg.&nbsp; There are actually two calls since I'm doing 2
    pass encoding, but the second call is 90% the same as far as
    parameters go.<br>
    <br>
    Calling the script from the command line works great, just not sure
    what's different when called from user jobs.<br>
    The user job is defined like "/home/mythtv/mpg2toh264.py %CHANID%
    %STARTTIME%"<br>
    <br>
    On 11/23/2012 1:57 PM, Karl Newman wrote:
    <blockquote
cite="mid:CAOOwNt+Eunb+w-CTW2y4AnuZrwwmQCZ4WMg1cVutBdvbr2QpJw@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">On Fri, Nov 23, 2012 at 11:26 AM, Jim
        Judd <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:jim@cincojudds.com" target="_blank">jim@cincojudds.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          Hello everyone,<br>
        </blockquote>
        <div>&lt;snip&gt; <br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">The command
          line for ffmpeg is the following:<br>
          <br>
          /usr/bin/ffmpeg -y -i &lt;in mpeg 2 file&gt; -pass 1 -vcodec
          libx264 -b:v 2500k -g 30 -bf 3 -refs 6 -b_strategy 1 -coder 1
          -qmin 10 -qmax 51 -sc_threshold 40 -flags +loop -cmp +chroma
          -me_range 16 -me_method umh -subq 7 -i_qfactor 0.71 -qcomp 0.6
          -qdiff 4 -directpred 3 -flags2 +dct8x8+wpred+bpyramid+mixed_refs
          -trellis 1 -partitions +parti8x8+parti4x4+partp8x8+partp4x4+partb8x8
          -acodec libfaac -ab 44100 &lt;outputfile&gt;<br>
          <br>
          Since it works in a bash shell I'm not sure why it errors out
          when mythtv launches the user job. &nbsp;Can anyone see something
          that I'm missing or know if anything special I need to do when
          setting up user jobs?<br>
          <br>
          Thanks!<br>
        </blockquote>
        <div><br>
          I seem to recall there is a limit for the length of the user
          job command line. You might try putting that long ffmpeg
          command line into a shell script and then passing the
          parameters in the user job.<br>
          <br>
          Karl<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>