[mythtv-users] user job using ffmpeg

Karl Newman newmank1 at asme.org
Fri Nov 23 19:57:45 UTC 2012

On Fri, Nov 23, 2012 at 11:26 AM, Jim Judd <jim at cincojudds.com> wrote:

> Hello everyone,

> The command line for ffmpeg is the following:
> /usr/bin/ffmpeg -y -i <in mpeg 2 file> -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 <outputfile>
> Since it works in a bash shell I'm not sure why it errors out when mythtv
> launches the user job.  Can anyone see something that I'm missing or know
> if anything special I need to do when setting up user jobs?
> Thanks!

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20121123/c911bd03/attachment.html>

More information about the mythtv-users mailing list