Just got back in for the night. I pasted the failed log at the bottom of this post. I changed the script to a comma between the psy-rd and psy-trellis and it worked. The very odd thing is that the following script also works just fine:
Code: Select all
HandBrakeCLI -i "$1.tmp" -o "/var/lib/mythtv/videos/$3/$2.mp4" --preset="High Profile" -a 1 -E copy -Y 720
-x ref=8:deblock=-1,-1:psy-rd=1|0.15:subme=9:me=umh:trellis=2:merange=24:partitions=all &> /dev/null < /dev/null &
Any idea why it works as above, but not with the script in the original post? In any case, a comma works for this one, so problem solved! Thanks!
Code: Select all
/var/lib/mythtv/recordings$ /home/mythtv/Web-encode.sh 1014_20110113131300.mpg Web-Test-7
/home/mythtv/Web-encode.sh: line 6: 0.15:subme=9:me=umh:trellis=2:merange=24:partitions=all:vbv-maxrate=1800:vbv-bufsize=6000: command not found
[23:46:05] hb_init: checking cpu count
[23:46:05] hb_init: starting libhb thread
HandBrake svn3743 (2011011401) - Linux x86_64 - http://handbrake.fr
2 CPUs detected
Opening 1014_20110113131300.mpg...
[23:46:05] hb_scan: path=1014_20110113131300.mpg, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening 1014_20110113131300.mpg/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(1014_20110113131300.mpg) failed (0x2c99be0)
[23:46:05] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[23:46:05] dvd: not a dvd - trying as a stream/file instead
[23:46:05] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[23:46:05] hb_ts_stream_find_pids - found the following PIDS
[23:46:05] Video PIDS :
[23:46:05] 0x840 type MPEG2 (0x2)
[23:46:05] Audio PIDS :
[23:46:05] 0x841 type AC-3 (0x81)
[23:46:05] 0x842 type AC-3 (0x81)
[23:46:05] transport stream pid 0x841 (type 0x81) may be AC-3 audio (id 0x841)
[23:46:05] transport stream pid 0x842 (type 0x81) may be AC-3 audio (id 0x842)
[23:46:05] scan: decoding previews for title 1
[23:46:05] scan: audio 0x841: AC-3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[23:46:05] scan: audio 0x842: AC-3, rate=48000Hz, bitrate=384000 Espanol (AC3) (2.0 ch)
Scanning title 1...
[23:46:06] scan: 10 previews, 1920x1088, 29.970 fps, autocrop = 0/8/0/0, aspect 1.76:1, PAR 1:1
[23:46:06] scan: title (0) job->width:1920, job->height:1072
[23:46:06] stream: 6 good frames, 0 errors (0%)
[23:46:06] libhb: scan thread found 1 valid title(s)
+ title 1:
+ stream: 1014_20110113131300.mpg
+ duration: 00:04:53
+ size: 1920x1088, pixel aspect: 1/1, display aspect: 1.76, 29.970 fps
+ autocrop: 0/8/0/0
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:04:53
+ audio tracks:
+ 1, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 384000bps
+ 2, Espanol (AC3) (2.0 ch) (iso639-2: spa), 48000Hz, 384000bps
+ subtitle tracks:
+ 1, Closed Captions (iso639-2: eng) (Text)(CC)
+ Using preset: High ProfileModified x264 options for pass 1 to append turbo options: ref=8:deblock=-1,-1:psy-rd=1:ref=1:subme=2:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[23:46:06] 2 job(s) to process
[23:46:06] starting job
[23:46:06] sync: expecting 8839 video frames
[23:46:06] work: only 1 chapter, disabling chapter markers
[23:46:06] job configuration:
[23:46:06] * source
[23:46:06] + 1014_20110113131300.mpg
[23:46:06] + title 1, chapter(s) 1 to 1
[23:46:06] * destination
[23:46:06] + /var/lib/mythtv/videos/Web-Web-Test-7.mp4
[23:46:06] + container: MPEG-4 (.mp4 and .m4v)
[23:46:06] + optimized for progressive web downloads
[23:46:06] * video track
[23:46:06] + decoder: mpeg2
[23:46:06] + bitrate 25000 kbps
[23:46:06] + frame rate: same as source (around 29.970 fps)
[23:46:06] + loose anamorphic
[23:46:06] + storage dimensions: 1920 * 1088 -> 960 * 544, crop 0/8/0/0, mod 0
[23:46:06] + pixel aspect ratio: 136 / 135
[23:46:06] + display dimensions: 967 * 544
[23:46:06] + filters
[23:46:06] + Detelecine (pullup) (default settings)
[23:46:06] + Decomb (default settings)
[23:46:06] + encoder: x264
[23:46:06] + options: ref=8:deblock=-1,-1:psy-rd=1:ref=1:subme=2:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[23:46:06] + bitrate: 1500 kbps, pass: 1
[23:46:06] * audio track 0
[23:46:06] + decoder: English (AC3) (5.1 ch) (track 1, id 841)
[23:46:06] + bitrate: 384 kbps, samplerate: 48000 Hz
[23:46:06] + mixdown: 6-channel discrete
[23:46:06] + encoder: faac
[23:46:06] + bitrate: 192 kbps, samplerate: 48000 Hz
[23:46:06] reader: first SCR 3906904682 id 2112 DTS 3906932046
[23:46:06] encx264: min-keyint: auto (29), keyint: 300
[23:46:06] encx264: encoding with stored aspect 136/135
x264 [info]: using SAR=136/135
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[23:46:06] decomb thread started for segment 1
[23:46:06] yadif thread started for segment 1
[23:46:06] decomb thread started for segment 0
[23:46:06] yadif thread started for segment 0
[23:46:06] mpeg2: "" (1) at frame 0 time 21021
x264 [info]: profile Main, level 3.1
No accelerated IMDCT transform found
[23:46:06] sync: first pts is 21021