in

andy vt's tools & blog

Automating lazy

automatically download and import HD to Windows Media Center - not working

Last post 05-05-2009 8:07 PM by cbenard. 37 replies.
Page 3 of 3 (38 items) < Previous 1 2 3
Sort Posts: Previous Next
  • 05-03-2009 8:23 AM In reply to

    Re: automatically download and import HD to Windows Media Center - not working

    I don't really understand how to use graphedit, and I also don't know how to show you what graphedit looks like.

     

  • 05-03-2009 12:06 PM In reply to

    Re: automatically download and import HD to Windows Media Center - not working

    Open graphedit, drag and drop a mpg file to it. It should show you a graph, take a screen shot.

  • 05-03-2009 8:59 PM In reply to

    Re: automatically download and import HD to Windows Media Center - not working

    I'm sorry but I don't have the option to paste or attach the screen shot.

  • 05-05-2009 8:07 PM In reply to

    Re: automatically download and import HD to Windows Media Center - not working

    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!

  • 05-06-2009 6:03 AM In reply to

    Re: automatically download and import HD to Windows Media Center - not working

    I see that the video decoder it was using was PowerDVD. I downloaded and installed WinDVD and used graphedit so now it is using WinDVD decoder but still same results with todvrms.exe
  • 05-17-2009 6:09 PM In reply to

    Re: automatically download and import HD to Windows Media Center - not working

     Both WMP and VLC will now play the mpg that is created but there still is no dvrms conversion.

     

    Start Process: 5/17/2009 : 5:22 PM
    InputFile=C:\Users\Public\Recorded TV\True.Blood.S01E09.720p.HDTV.x264-aAF.mkv
    Processing actions, this may take some time!!
    File is not a dvrms-file
    Couldn't retrieve meta data
    Running detection profile
    Profile = nativecommdetect
    ProcessId = 8936
    DvrmsToolbox Version: 1.2.1.6
    Throttle DVRMStoMPEG
    FWThrottle: C:\Users\Public\Recorded TV\True.Blood.S01E09.720p.HDTV.x264-aAF.mkv
    WaitTime: 5 PollTime
    Waiting to process file
    Queue file
    Duration = 00:00:01.0071566
    Waiting for available worker: 5/17/2009 5:22 PM
    Worker allocated: 5/17/2009 5:22 PM
    Get Video Information
    This file type is not supported by this action
    Duration = 00:00:00.0024410
    Find Commercials in file
    ShowAnalyzerSuite is not installed try ShowAnalyzer
    Using ShowAnalyzer
    Finished Commercial Detectection
    No commercials found
    Action did not complete successfully
    Total Duration = 00:00:01.2209882
    Wait 30 seconds for metadata. Iteration 0.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 1.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 2.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 3.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 4.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 5.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 6.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 7.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 8.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 9.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 10.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 11.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 12.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 13.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 14.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 15.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 16.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 17.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 18.
    File is not a dvrms-file
    Wait 30 seconds for metadata. Iteration 19.
    File is not a dvrms-file
    Testing "Convert avi to dvr-ms"
    Testing "Convert mkv to dvr-ms"
    "Convert mkv to dvr-ms" is a match.
    Run Profile = Convert MKV to DVR-MS - mencoder
    ProcessId = 8936
    DvrmsToolbox Version: 1.2.1.6
    Throttle DVRMStoMPEG
    FWThrottle: C:\Users\Public\Recorded TV\True.Blood.S01E09.720p.HDTV.x264-aAF.mkv
    WaitTime: 5 PollTime
    Waiting to process file
    Queue file
    Duration = 00:00:01.0037392
    Waiting for available worker: 5/17/2009 5:32 PM
    Worker allocated: 5/17/2009 5:32 PM
    Get the value of Context["OutputFile"] and set the value of Context["OutputFile"]
    Context["OutputFile"] = C:\Users\Public\DvrmsToolbox\Output\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mkv
    Context["OutputFile"] = C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg
    Duration = 00:00:00.0234336
    Get the value of Context["InputFile"] and set the value of Context["OutputFolder"]
    Context["InputFile"] = C:\Users\Public\Recorded TV\True.Blood.S01E09.720p.HDTV.x264-aAF.mkv
    Context["OutputFolder"] = C:\Users\Public\Recorded TV\
    Duration = 00:00:00.0004882
    Run Mencoder
    Run C:\Program Files\DVRMSToolbox\Applications\Mencoder\Mencoder.exe -quiet "C:\Users\Public\Recorded TV\True.Blood.S01E09.720p.HDTV.x264-aAF.mkv" -profile "MPG-Original-Audio" -o "C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg" -vf pp=md,harddup
    MEncoder dev-SVN-rUNKNOWN-4.2.1-sjlj (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Core(TM)2 CPU          6700  @ 2.66GHz (Family: 6, Model: 15, Stepping: 6)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
    Compiled with runtime CPU detection.
    success: format: 0  data: 0x0 - 0x5d4a3459
    [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
    [mkv] Track ID 2: audio (A_AC3), -aid 0, -alang und
    [mkv] Will play video track 1.
    Matroska file format detected.
    VIDEO:  [avc1]  1280x720  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:31  fourcc:0x31637661  size:1280x720  fps:23.98  ftime:=0.0417
    ==========================================================================
    Opening audio decoder: [liba52] AC3 decoding with liba52
    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)
    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
    BUFFER UNDEFLOW at stream 0, raising muxrate to 11088 kb/s, delta_scr: 39896
    BUFFER UNDEFLOW at stream 1, raising muxrate to 12196 kb/s, delta_scr: 36269
    Flushing video frames.
    Writing index...
    Overhead: 1.829% (46491445 / 2542471371)
    Writing header...
    Video stream: 5758.435 kbit/s  (719804 B/s)  size: 2383523883 bytes  3311.350 secs  79393 frames
    Audio stream:  384.000 kbit/s  (48000 B/s)  size: 158952960 bytes  3311.520 secs
    Duration = 00:41:53.8345580
    Move the file in Context["InputFile"] to %OutputFolder%
    File Operation completed
    Duration = 00:00:01.0305902
    Get the value of Context["OutputFile"] and set the value of Context["InputFile"]
    Context["OutputFile"] = C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg
    Context["InputFile"] = C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg
    Duration = 00:00:00.0004882
    Get the value of Context["OutputFile"] and set the value of Context["OutputFile"]
    Context["OutputFile"] = C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg
    Context["OutputFile"] = C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.dvr-ms
    Duration = 00:00:00.0009764
    Get the value of Context["InputFile"] and set the value of Context["TvDBXMLFile"]
    Context["InputFile"] = C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg
    Context["TvDBXMLFile"] = C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg.xml
    Duration = 00:00:00.0185516
    Read metadata from TvDB and build Sage XML file.
    Processing TvDBMetaData with 15 arguments.
    Using following file as Template Metadata XML file: Template.mpg.xml
    Using following file as Series Alias XML file: SeriesAlias.xml
    Using following file as the target Metadata XML file: C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg.xml
    Using input parameter as regular expression: (?<series>.+)\.S(?<season>\d+)E(?<episodenbr>\d+)\.
    Metadata provided by thetvdb.com
    Found Series Name
    Retreived Series Info
    Retreived Episode Info
    Sage XML file created: C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg.xml
    Duration = 00:00:00.9363676
    Run todvrms.exe "C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg" "C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.dvr-ms"
    Run todvrms.exe "C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg" "C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.dvr-ms"
    No combination of intermediate filters could be found to make the connection.

    arg[0] = C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.mpg
    arg[1] = C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.dvr-ms

    Duration = 00:00:33.1146060
    Move file specified in Context("OutputFile") to C:\Users\Public\Recorded TV\
    Moving C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.dvr-ms to C:\Users\Public\Recorded TV\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.dvr-ms
    Could not find file 'C:\Users\Public\DvrmsToolbox\DTBTemp\True.Blood.S01E09.720p.HDTV.x264-aAFfileprocess.dvr-ms'.
    Action did not complete successfully
    Total Duration = 00:42:29.9662400

     

  • 05-17-2009 7:27 PM In reply to

    Re: automatically download and import HD to Windows Media Center - not working

     You'll have to ask the author of todvrms as I have no idea why it wouldn't work if you can play the mpg in WMP and WMC.

  • 06-09-2009 10:45 AM In reply to

    Re: automatically download and import HD to Windows Media Center - not working

    bjdraw:

     You'll have to ask the author of todvrms as I have no idea why it wouldn't work if you can play the mpg in WMP and WMC.

     

    I hear he's unresponsive.

    it might be a x64 issue.

Page 3 of 3 (38 items) < Previous 1 2 3
@2008 andy vt
Powered by Community Server (Non-Commercial Edition), by Telligent Systems