I have an issue with the script. It seems to work with the vast majority of the programs that I download, because they're h.264. However, apparently other video codecs can be in the mkv container (duh), but one I didn't expect for a TV show was AVC1 (if I'm not mistaken, the codec used for WMV9 HD, Blu-ray, and HD-DVD). It was the codec used in Mythbusters - 7x02 - Alaska Special 2.mkv that I "backed up".
However, mencoder seems to be assuming that it's actually h.264 video and erroring out. In the fil watcher log for the particular file, it just freezes after:
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=48000 sample-1)
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (1280x720 fourcc=3267706d [mpg2])
Writing header...
INITV: 0.200, 0.158, fps: 23.976
However, before that, it shows:
[mkv] Track ID 1: audio (A_AC3), -aid 0, -alang und
[mkv] Track ID 2: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Will play video track 2.
Matroska file format detected.
VIDEO: [avc1] 1280x720 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31 fourcc:0x31637661 size:1280x720 fps:29.97 ftime:=0.0334
Can mencoder not handle avc1 and just assumes h.264. The bad part is mencoder just hangs, using 0% CPU and the file watcher worker never completes. I killed mencoder.exe and it continued, assuming the partial (36 meg) MPG file that was created in the temp folder was correct, which of course, it was not.
How can this be fixed? When I ran the mencoder command manually, I got this (must be going to stderr, not stdout, since it's not logged in the file watcher worker log):
D:\Profiles\Chris>"D:\Program Files\DVRMSToolbox\Applications\Mencoder\Mencoder.exe" -quiet "S:\Download\TV\Mythbusters - 7x02 - Alaska Special 2.mkv" -profile "MPG-Original-Audio" -o "S:\DvrmsToolbox\Temp\Mythbusters - 7x02 - Alaska Special 2fileprocess.mpg" -vf pp=md,harddup
MEncoder dev-SVN-rUNKNOWN-4.2.1-sjlj (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (Family: 6, Model: 15, Step
ping: 11)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.
success: format: 0 data: 0x0 - 0x45ece44d
[mkv] Track ID 1: audio (A_AC3), -aid 0, -alang und
[mkv] Track ID 2: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Will play video track 2.
Matroska file format detected.
VIDEO: [avc1] 1280x720 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31 fourcc:0x31637661 size:1280x720 fps:29.97 ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
No accelerated IMDCT transform found
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
PACKET SIZE: 2048 bytes, deltascr: 43885
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [pp=md]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=48000 sample-1
)
Limiting audio preload to 0.4s.
Increasing audio density to 4.
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (1280x720 fourcc=3267706d [mpg2])
Writing header...
INITV: 0.200, 0.158, fps: 23.976
[h264 @ 00ADD300]no frame!
Error while decoding frame!
[h264 @ 00ADD300]no frame!
Error while decoding frame!
[h264 @ 00ADD300]no frame!
Error while decoding frame!
[h264 @ 00ADD300]no frame!
Error while decoding frame!
[h264 @ 00ADD300]no frame!
Error while decoding frame!
(and so on until I press Ctrl+C)
This is the one I downloaded:
https://www.newzbin.com/browse/post/4953782/
I hope all this diagnostic info helps. Please let me know if there's anything else I can do, since I don't want a worker hung just because it can't process AVC1, and also I want AVC1 to be in dvr-ms to be available on my extenders!
Thanks for all the great work!