Results 1 to 6 of 6

Thread: Relaible HD .ty to "standard" (SD) DVD?

  1. #1
    Join Date
    Jan 2006

    Relaible HD .ty to "standard" (SD) DVD?


    I'm looking for a way to take HD programs extracted from my HR10-250 and transcode them to "standard DVD" that will play on a "standard" DVD player. I'm close, but not yet there. Here's what I'm doing:
    1. Use TyTool or mfs_ftp to extract a .ty
    2. Use TyTool's GOP editor to generate key files and trim the crud (before/after stuff, commercials, etc.)
    3. Use TyTool to generate an "HD" MPG.
    4. Use mencoder to transcode to SD "DVD compliant" MPG.
    5. Use dvdauthor to create the DVD "filesystem".
    6. Use RecordNow to burn the DVD-R.

    The problem is that the resultant DVD will play fine on a computer, but when it's burned to DVD-R, it sometimes causes the DVD player to freeze, stutter, or otherwise playback the video in a rather unpleasant fashion.

    NOTE: I'm almost certain this is not a physical (media) problem, because every DVD that I've DVD Decyrpt'ed, DVD Shrink'ed <grin>, and DVD Burn'ed (to DVD-R) has worked perfectly on my DVD player -- never any freezes, stutters, or otherwise, unlike the ones I've created using the process enumerated above (HD to SD DVD).

    I suspect the problem is in my mencoder settings. The audio in this particular file was already 384kbps AC3 (DD 5.1), which was just fine for me. Here's the mencoder command line I'm using:

    mencoder -delay 0.1 -oac copy -ovc lavc -of mpeg -mpegopts format=dvd \
      -vf crop=1254:1066,scale=720:480,harddup -lavcopts \
      vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=6000:vbitrate=3734:keyint=18:aspect=16/9 \
      -ofps 30000/1001 -o output.mpg input.mpg
    The DVD player might be freezing because the max bitrate is being exceeded. (My DVD player has the ability to display the instantaneous bitrate while playing, as do several of the software DVD players I'm testing with.) For grins, I did a test where I changed vrc_maxrate from 6000 to 9000 and the resultant MPG file was bit for bit identical in the two cases (at least accoding to diff). Is there some non-obvious magic to using vrc_maxrate that I need to know about?

    Another thing I've noticed is that the resultant video looks very "film like" instead of "video like", even though the source material was a live, video sporting event (1080i). I've also noticed that when adding the ":1" option to the scale filter (i.e., scale:720:480:1), which theoretically means "interlaced-aware scaling", that mencoder crashes before finishing the job.

    Hopefully that's enough background and speculation to be useful. Has anyone figured out a 100% reliable set of options to include on mencoder to transcode HD .ty files into "DVD compliant" .mpg, that will actually play on a multitude of "standard" DVD players?


  2. #2
    Join Date
    Jan 2006
    Whoa, slow down, don't everyone shout at once.

    Ok, perhaps I need to focus a bit on one particular aspect of my question. Why does the transcoded video always look "film like" even when the source is "live video"? I'm going 1080i to 480i, same frame/field rate before & after, but the video when played back on the DVD player just looks like film. (I've tried S-video out, Component Interlaced out, and Component Progressive out, and they all have that same film-like look.) Is that because the bitrate is so low? -- the original 1080i is roughly 14Mbps, the transcoded 480i is roughly 4Mbps, though I've also tried higher bitrates and had the same result. It seems as if there's a de-interlacing then re-interlacing going on, which I suppose could help motion estimation and whatnot, but it could potentially be wasteful and destructive.

    If I need to bug off to an mencode forum or something, please let me know. I figure I'm not the first person to experience this with HD extraced from an HR10-250, though, and would like to know if someone has already figured this out.


  3. #3
    Join Date
    Jan 2006
    On the off chance that anyone's actually listening , I've got some progress to report. In order to retain the "video" appearance of the original 1080i video source, and in the process vastly improve the fluidity of motion in the resulting transcoded video, I need to tell mencoder, and specifically, lavc, all of the following:
    1. Use interlace-aware scaling: scale=720:480:1
    2. Use interlace-aware DCT: :ildct
    3. Use interlace-aware motion estimation: :ilme
    4. Render "top-field first": :top=0

    Putting that all together, here's the command line I'm now using:

    mencoder -delay 0.35 -oac copy -ovc lavc -of mpeg -mpegopts format=dvd
      -vf crop=1254:1066,scale=720:480:1,harddup -lavcopts
      -ofps 30000/1001 -o output.mpg input.mpg
    The -delay syncs up the audio, and the crop removes the icky overscan crud. The vbitrate is chosen to make the entire program fit on a single-layer DVD-R, and the vrc_maxrate insures that the video plus audio does not exceed the DVD standard's maximum overall bitrate.

    So far this plays swimmingly well on my Sony "set top" DVD player. I still have a freeze on my Panasonic DVD-XP30, the cause of which I'm still trying to isolate. It seems to happen just after a cut I made with the TyTool key editor to remove a set of commercials. Hmmmmm.

    Anyway, hope this helps someone other than me. :

    Last edited by wbelhaven; 03-06-2006 at 08:59 PM.

  4. #4
    Join Date
    Oct 2004
    I did an experiment along these same lines. Never got as detailed with the tweaking, but this (very long) process worked for me on an episode of Lost:

    1. Tytool 10r1 -> .Ty file (6.5 GB) -> Key/cut -> VOB Mplex -> .VOB file (4.5 GB)
    2. Change the extension of the large 4GB .VOB to .MPG, add it as new movie to Roxio MyDvd menu
    3. I set the preferences in Roxio to Widescreen, prog scan, high quality, not sure if it made a difference...
    4. Burn DVD - Roxio re-encoded to a 2.92 GB file...

    There is also a utility called hdemux you can find on the forums. Using this in conjunction with TyToolr10 let me create a large MPG file that was watchable on a laptop with Windows Media player.

    Using both HD and SD DirecTivos and a DVD player I then played the recordings and did an A/B comparison. The "downsampled" DVD looked great on a standard-def TV but lousy on an HD one.

  5. #5
    Join Date
    Nov 2004
    Quote Originally Posted by MemphisBrian72
    There is also a utility called hdemux you can find on the forums. Using this in conjunction with TyToolr10 let me create a large MPG file that was watchable on a laptop with Windows Media player.
    HR10-250 (stock) as of 12-9-05
    DirecTivo R10 (stock)
    "Test drive"60GB/6.2/superpatch/usb2/tytool/hmo/extracted scrambled shows with kernel & tools found here.

    94Supra formerly TT now one T

  6. #6
    Join Date
    Jan 2006
    Hey, thanks for sharing! I'd been searching like crazy for a way to do this and hadn't found anything useful. Sorry you didn't get any help - but you sure helped me! Going off now to download mencoder and start experimenting.
    1 HR10-250 with dual 250 Maxtors , fully Hacked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts