VideoHelp Forum
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    Here is what I am attempting to do with a 4 hour 51 min. m2ts file which is 33.5GB. I want to convert it to mkv and preserve the quality as much to lossless as possible. I have attempted to do this twice with handbrake where both times the video comes out choppy and doesn't "flow" with smooth motion. I checked the file with Mediainfo and here is some information: I believe it is interlaced because Mediainfo is showing scan type: Interlaced. What am I doing wrong and what settings should I have?

    The settings I had were: Video Constant quality RF 20, Ref. Frames and Max B-frames: 8, Adaptive B-frames = Optimal, Adaptive Direct Mode = Spatial, Motion Est. Method = Uneven Multi-Hexagon, Subpixel Motion Est. = 10:QPRD In All Frames, Motion Est Range = 64, Partition Type = All, Trellis = Always. I also set Trellis=2 in the x264 encoder options window at the bottom. For Filters, the only thing I set was Decomb to Bob. Detelecine, Deinterlace, Denoise, and Deblock all OFF. I am not sure if the Picture settings are important, but I left it alone.

    I really want to get this right, because each time encoding takes 20-26 hours of time to encode and that is with a Windows 7 PC with an Intel 17-4770 3.50 GHz Processor and 16GB of RAM. Thank you for your help in advance.
    Quote Quote  
  2. Post the mediainfo report on the output file (view=>text) copy & paste the results back here. If "bob" worked correctly (assuming your source files had interlaced content), you should have a 59.94 fps progressive output file. You can encode "interlaced" (actually MBAFF) with handbrake, but you need to use the commandline and the nightly builds , I don't think "interlaced" is exposed option in the normal GUI

    The other option that sometimes causes problems is "VFR". If you set it to "CFR" constant frame rate, it usually causes fewer problems.

    You can also use faster handbrake settings, and/or do mini tests on shorter segments until you have it figured out
    Last edited by poisondeathray; 21st Nov 2014 at 21:49.
    Quote Quote  
  3. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    Here is the MediInfo report. I don't consider myself to be very knowledgeable about all of this so I do not know what you mean by MBAFF and using commandline and the nightly build.

    Format : MPEG-TS
    File size : 33.5 GiB
    Duration : 4h 51mn
    Overall bit rate mode : Variable
    Overall bit rate : 16.4 Mbps

    Video #1
    ID : 1984 (0x7C0)
    Menu ID : 1 (0x1)
    Format : MPEG Video
    Format version : Version 2
    Format profile : Main@High
    Format settings, BVOP : Yes
    Format settings, Matrix : Custom
    Format settings, GOP : Variable
    Format settings, picture structure : Frame
    Codec ID : 2
    Duration : 4h 51mn
    Bit rate mode : Variable
    Maximum bit rate : 20.0 Mbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate : 29.970 fps
    Standard : Component
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Interlaced
    Scan order : Bottom Field First
    Compression mode : Lossy
    Color primaries : BT.709
    Transfer characteristics : BT.709
    Matrix coefficients : BT.709

    Video #2
    ID : 2304 (0x900)
    Menu ID : 1 (0x1)
    Format : MPEG Video
    Format version : Version 2
    Format profile : Main@Main
    Format settings, BVOP : Yes
    Format settings, Matrix : Custom
    Codec ID : 2
    Duration : 4h 51mn
    Bit rate mode : Variable
    Maximum bit rate : 7 000 Kbps
    Width : 528 pixels
    Height : 480 pixels
    Display aspect ratio : 4:3
    Frame rate : 29.970 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Compression mode : Lossy

    Audio #1
    ID : 1985 (0x7C1)
    Menu ID : 1 (0x1)
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Format settings, Endianness : Big
    Codec ID : 129
    Duration : 4h 51mn
    Bit rate mode : Constant
    Bit rate : 384 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Delay relative to video : -299ms
    Stream size : 802 MiB (2%)
    Language : English

    Audio #2
    ID : 2305 (0x901)
    Menu ID : 1 (0x1)
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Format settings, Endianness : Big
    Codec ID : 129
    Duration : 4h 51mn
    Bit rate mode : Constant
    Bit rate : 192 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Delay relative to video : -17h 9mn
    Stream size : 401 MiB (1%)
    Language : English

    Text #1
    ID : 1984 (0x7C0)-CC1
    Menu ID : 1 (0x1)
    Format : EIA-608
    Muxing mode : A/53 / DTVCC Transport
    Muxing mode, more info : Muxed in Video #1
    Duration : 4h 51mn
    Bit rate mode : Constant
    Stream size : 0.00 Byte (0%)

    Text #2
    ID : 1984 (0x7C0)-1
    Menu ID : 1 (0x1)
    Format : EIA-708
    Muxing mode : A/53 / DTVCC Transport
    Muxing mode, more info : Muxed in Video #1
    Duration : 4h 51mn
    Bit rate mode : Constant
    Stream size : 0.00 Byte (0%)

    Text #3
    ID : 1984 (0x7C0)-2
    Menu ID : 1 (0x1)
    Format : EIA-708
    Muxing mode : A/53 / DTVCC Transport
    Muxing mode, more info : Muxed in Video #1
    Duration : 4h 51mn
    Bit rate mode : Constant
    Stream size : 0.00 Byte (0%)

    Text #4
    ID : 2304 (0x900)-CC1
    Menu ID : 1 (0x1)
    Format : EIA-608
    Muxing mode : A/53 / DTVCC Transport
    Muxing mode, more info : Muxed in Video #2
    Bit rate mode : Constant
    Stream size : 0.00 Byte (0%)

    Text #5
    ID : 2304 (0x900)-CC1
    Menu ID : 1 (0x1)
    Format : EIA-608
    Muxing mode : SCTE 20
    Muxing mode, more info : Muxed in Video #2
    Bit rate mode : Constant
    Stream size : 0.00 Byte (0%)
    Quote Quote  
  4. What is the source content? Where is it from ? e.g. is it a theatrical movie ? sports ?
    Quote Quote  
  5. Member
    Join Date
    Jun 2005
    Location
    Vermont
    Search Comp PM
    Check to make sure the framerate is the same as the original. I have found that if it is not the resulting video will appear to be choppy.
    Quote Quote  
  6. The content question is important. If it was a move or theatrical presentation you would inverse telecine (detelecine in handbrake), or it would be jerky (every 5th frame repeated).

    If it's interlaced content (mediainfo can't tell you this), and you encode progressive, if you end up with the same frame rate, motion won't be smooth either (you throw away 1/2 the information). You would have to "bob deinterlace" to end up with progressive 59.94 to keep the motion. The other option is to do no processing and encode it interlaced specifically, like the original (that's not optimal if you have progressive content)
    Quote Quote  
  7. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    This was the final yankee home game for Derek Jeter over 4 hours long. I recorded it from an HD channel on to my computer. I have the activity log for Handbrake, and there seems to be a lot of errors. I am pretty much a novice to all of this so I don't understand what all this means and am not sure if this is significant, but I can tell you that the .m2ts file plays fine with VLC. The video motion is smooth and it is just like watching it on my TV. I posted my Handbrake log on a Paste site. Here is the link to the Handbrake log.

    http://pastebay.net/1529733
    Quote Quote  
  8. I don't really use handbrake much, but that does look like a lot of errors.

    You can try another tool instead of handbrake (e.g. ripbot, megui), or maybe try fixing it first with something like videoredo's quickstream fix, or tsdoctor
    Quote Quote  
  9. If poisondeathray's suggestions don't work, try uploading a sample. You can split off a section with tsmuxer.
    Don't forget, Handbrake lets you select a section of the video to encode, by chapter or by time or frame number, I think. There's no need to encode to encode the entire video to run test encodes.
    Quote Quote  
  10. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    Just an update....Videoredo did the trick. I used it to fix the m2ts file then used Handbrake to convewrt to mkv and mp4 with no problems. Thanks again for the great help!
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!