in

andy vt's tools & blog

automating lazy

MPEG-TS (MPEG-2 Video) to DVR-MS

Last post Sat, Mar 6 2010 12:43 PM by tdramble. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • Sun, Dec 27 2009 8:30 PM

    MPEG-TS (MPEG-2 Video) to DVR-MS

    Hi all,

     I have a file in MPEG-TS format and trying to convert it to DVR-MS. Is this format supported by todvrms.exe so that I can just change the container?

    I tried it and the result is a DVR-MS file, seems playable, however the length of the movie does not seem to be correct.

    Here is the Media Info output for the input file:

    ID                               : 1
    Format                           : MPEG-TS
    File size                        : 8.91 GiB
    Duration                         : 1h 52mn
    Overall bit rate                 : 11.4 Mbps
    Maximum Overall bit rate         : 35.5 Mbps

     ID                               : 4113 (0x1011)
    Menu ID                          : 1 (0x1)
    Format                           : MPEG Video
    Format version                   : Version 2
    Format profile                   : Main@High
    Format settings, Matrix          : Default
    Duration                         : 1h 52mn
    Bit rate mode                    : Variable
    Bit rate                         : 9 931 Kbps
    Nominal bit rate                 : 40.0 Mbps
    Width                            : 1 920 pixels
    Height                           : 1 038 pixels
    Display aspect ratio             : 1.850
    Frame rate                       : 23.976 fps
    Colorimetry                      : 4:2:0
    Scan type                        : Progressive
    Bits/(Pixel*Frame)               : 0.208
    Stream size                      : 7.78 GiB (87%)

    ID                               : 4352 (0x1100)
    Menu ID                          : 1 (0x1)
    Format                           : AC-3
    Format/Info                      : Audio Coding 3
    Duration                         : 1h 52mn
    Bit rate mode                    : Constant
    Bit rate                         : 640 Kbps
    Channel(s)                       : 6 channels
    Channel positions                : Front: L C R, Surround: L R, LFE
    Sampling rate                    : 48.0 KHz
    Stream size                      : 514 MiB (6%)

    Output of DVRMSToolbox follows, with bolded potential issues:

    Processing actions, this may take some time!!
    Current Affinity: 3 System Mask: 3
    File is not a dvrms-file
    Could not retrieve stream information
    Meta data could not be read, some actions may not function properly

    Run Profile = ConvertToDVRMS
    ProcessId = 6292
    DvrmsToolbox Version: 1.2.1.9
    Throttle DVRMStoMPEG
    FWThrottle: D:\test.mpg
    WaitTime: 5 PollTime
    Waiting to process file
    Queue file
    Duration = 00:00:01.0296018
    Waiting for available worker: 12/27/2009 11:14 PM
    Worker allocated: 12/27/2009 11:14 PM
    Run todvrms.exe "D:\test.mpg" "D:\test.dvr-ms"
    Run C:\Program Files (x86)\DVRMSToolbox\Applications\todvrms.exe "D:\test.mpg" "D:\test.dvr-ms"
    Duration = 00:07:19.3202611
    Total Duration = 00:07:20.3498629

     Thank you.

  • Mon, Dec 28 2009 10:48 AM In reply to

    • babgvant
    • Top 10 Contributor
    • Joined on Mon, Oct 2 2006
    • United Kingdom

    Re: MPEG-TS (MPEG-2 Video) to DVR-MS

    It should work.  What happens if you run todvrms directly on the file?

    Does the dvr-ms file play?  If so, how much is missing?

  • Mon, Dec 28 2009 11:10 AM In reply to

    Re: MPEG-TS (MPEG-2 Video) to DVR-MS

    It does work running it directly with the same result (my profile basically does only call todvrms, nothing else).

    The resulting file plays well, nothing is missing, but only the reported movie length is 7 hours and 30 minutes, instead of 1 hour and 50 minutes as in the original MPG.

  • Mon, Dec 28 2009 11:50 AM In reply to

    • babgvant
    • Top 10 Contributor
    • Joined on Mon, Oct 2 2006
    • United Kingdom

    Re: MPEG-TS (MPEG-2 Video) to DVR-MS

    Do you get different results if the file ext is ".ts"?

    That's a weird one, it could be a timestamp problem in the original file.

  • Mon, Dec 28 2009 12:27 PM In reply to

    Re: MPEG-TS (MPEG-2 Video) to DVR-MS

    Just tried it by renaming the original to ".ts", still with same result of 7 hours and 33 minutes...

    Here is the output with -v switch, does the bolded text be the problem:

    todvrms "d:\test.ts" "d:\test2.dvr-ms" -v
    MPC-HC MPEG source is the preferred source filter for this file type.  It could
    not be loaded, the default will be used instead

    Source filter GUID: 55da30fc-f16b-49fc-baa5-ae59fc65f82d
    Get stream pin
    Find Video pin
    Add AttributeEnable Filter
    Connect source to AE pin
    Connect first pin
    Add VA Filter
    Connect stream/video pin to mpg analyzer
    Render Analyzer pin
    Grab the connected pin
    Grab the connected pin
    Got audio pin
    Add Audio SG Filter
    Connect audio to Sample Grabber Ac3: 0
    Render SG Outpin
    Write MetaDataItem WM/ToolName = todvrms
    Write Attributes
    Start Recording
    Run the graph

  • Tue, Dec 29 2009 12:19 PM In reply to

    • babgvant
    • Top 10 Contributor
    • Joined on Mon, Oct 2 2006
    • United Kingdom

    Re: MPEG-TS (MPEG-2 Video) to DVR-MS

    It's worth a shot, that's the splitter I test with.
  • Tue, Dec 29 2009 7:43 PM In reply to

    Re: MPEG-TS (MPEG-2 Video) to DVR-MS

    UPDATE: tried with -wtv switch, and the resulting WTV reports the correct movie length and plays well. DVR-MS still is weird...

  • Thu, Dec 31 2009 6:53 AM In reply to

    • babgvant
    • Top 10 Contributor
    • Joined on Mon, Oct 2 2006
    • United Kingdom

    Re: MPEG-TS (MPEG-2 Video) to DVR-MS

    That is a weird one.  If you using the built in wtv->dvr-ms converter does the resulting file have the correct duration?
  • Fri, Jan 1 2010 8:27 AM In reply to

    Re: MPEG-TS (MPEG-2 Video) to DVR-MS

    babgvant:
    That is a weird one.  If you using the built in wtv->dvr-ms converter does the resulting file have the correct duration?

    No, it doesn't work at all, the converter seems to start but immediately closes, and it generates a 6,442 bytes only file...

    I tried with 3 different versions of todvrms (1.0.0.8, 1.0.0.9, 1.0.1.0) to convert multiple different files to DVR-MS, all with the same result: file is playable, contains whole movie, yet reported duration is way longer than expected...

    Is there a way to debug this? Like seeing which external codesc/filters/splitters is todvrms using and might cause this? Can Haali be causing this issue?

    I am using the latest version of Haali 1.9.355.21 and it seems that the x64 version is in use while using 1.0.0.8 and 1.0.0.9 and x86 version while using 1.0.1.0. What is the recommended version of Haali to use with todvrms?

  • Sun, Jan 3 2010 9:13 PM In reply to

    • Unclety
    • Top 75 Contributor
    • Joined on Tue, Feb 19 2008

    Re: MPEG-TS (MPEG-2 Video) to DVR-MS

    I ran into this same problem. I was converting mkv's created by makemkv, contained original DVD mpeg-2 and ac3 audio, and like clock work got the extra time reported. The files played fine all the way through the video and then stop instead of going all the way through the extra time. FF and Rew were off because I could FF into the extra time, but video would stop when I tried to play.  Tried fixdvrmsduration without any luck.

  • Sat, Mar 6 2010 12:43 PM In reply to

    Re: MPEG-TS (MPEG-2 Video) to DVR-MS

    I am also having this problem. Took my daughters Cinderella DVD, ripped to mkv using MakeMKV and get an MPEG2 video AC-3 audio mkv file showing the correct 1:15:05 length. When using todvrms I get a dvr-ms file that plays perfect, has the entire movie and looks like the correct file size, but is reported at 05:14:00, a little more than 4 times the length it was supposed to be, consistent with the original posters times as well. Troy
Page 1 of 1 (11 items)
@2008 andy vt
Powered by Community Server (Non-Commercial Edition), by Telligent Systems