VideoHelp Forum
+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 57
Thread
  1. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    Hi! So, here's the deal:
    For some time now I have been succesfully creating custom PAL DVDs (for personal use) using .mkv (mostly 4,4-7 gigs 720p.BluRay) files as source files. In this process I'm using the following tools: eac3to, MeGUI, HCgui, IfoEdit etc. The problem apparently emerges when I use files with the aspect ratio of 2.39 and similar ARs (movies with AR of 1.77 or 1.85 are dealt with just fine). Here's what happens (I will try to illustrate this as clearly as possible, but have in mind, I'm just a newbie ):

    This is MediaInfo of the movie:
    General : XXXX.720p.BluRay.DTS.x264-XXX.mkv
    Format : Matroska at 8 384 Kbps
    Length : 7 GiB for 1h 52mn 3s 359ms
    Video #0 : AVC
    Aspect : 1280 x 534 (2.397) at 23.976 fps
    Audio #0 : DTS at 1 510 Kbps
    Infos : 6 channels, 48.0 KHz
    Audio #1 : AAC
    Infos : 2 channels, 48.0 KHz
    Text #0 : UTF-8
    Text #1 : UTF-8
    Text #2 : UTF-8Language : bg
    Text #3 : UTF-8
    Language : zh
    Text #4 : UTF-8
    Language : fr
    Text #5 : UTF-8
    Language : no
    Text #6 : UTF-8
    Language : sv


    1. I use eac3to I succesfully demux the files.
    2. Open the source file using MeGUI (DirectShow Source), set resize to 720 : 432 (according to the math formula: 1024/aspect ratio), add command line AddBorders(0,72,0,72) to achieve the desired AR, save AVS Script, exit MeGUI...
    3. Open .avs file in HCgui, set what needs to be set and click on Encode.
    4. When HCgui finishes with creating the .m2v file I can immediately see that the aspect ratio is way off: the video is stretched! And that's the problem.

    I got the tutorial for this from a friend and I have been using the same process for more then a year now and it never before gave any problem, until recently!

    Hope you guys have some usefull tips! Tnx in advance!
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Perhaps the script is bad. You should post it for further troubleshooting. Post the HCenc log also.
    Quote Quote  
  3. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    DirectShowSource("D:\DVD\XXXXX.720p.BluRay.DTS.x26 4-XXX.mkv", fps=23.976, audio=false, convertfps=true).AssumeFPS(24000,1001)
    #deinterlace
    #crop
    Spline36Resize(720,432) # Spline36 (Neutral)
    #denoise
    AddBorders(0,72,0,72)
    AssumeFPS(25)


    davexnet, I hope this is what you had in mind regarding the script!
    I will post the HCenc log later (erased it) when I run the file through HCgui again.
    Last edited by Arbok; 13th Feb 2014 at 15:45.
    Quote Quote  
  4. So that movie is out already in your country? And you're asking questions about something you downloaded illegally?

    Anyway, the script is good.

    When HCgui finishes with creating the .m2v file I can immediately see that the aspect ratio is way off: the video is stretched!
    You can see that, can you? Where? How? I hope you encoded as 16:9. And that you aren't looking at the 720x576 picture.
    Quote Quote  
  5. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    Here's the Hcenc log:
    --------------------
    | encoder settings |
    --------------------

    profile: BEST
    frames: 0 - 161197
    framerate: 25.000
    aspect ratio: 16:9
    chroma format: 4:2:0
    bitrate Kb/s: 9000
    max. bitrate Kb/s: 9000
    pulldown: no
    closed gops: no
    VBV check: yes
    scene change det: yes
    interlaced: no, BFF
    goplen,B-pic: AUTO 15
    dc_precision: 10
    intraVLC: auto
    scan method: zigzag
    bias: 0
    chapter frames: 0
    time code: 0 0 0 0
    CPU: SSE3
    priority: idle
    SMP active: yes
    matrix: MPEG
    luminance gain: no
    adaptive quantization: yes, strength 2
    deadzone quantization: auto

    ------------------
    | source stats |
    ------------------

    nr. of frames in source: 161198
    width*height: 720x576
    fps: 25.000
    nr. of frames to encode: 161198
    frames to encode: 0 - 161197

    ---------------------
    | encoding - pass 1 |
    ---------------------

    pass 1 encoding time: 1:20:38 (4837.99 s)
    fps: 33.3

    --------------------------------
    | encoding - intermediate pass |
    --------------------------------

    bitrate set to: 9000 kb/s
    estimated output file length: 7083896 kB
    intermediate encoding time: 30.34 s

    ---------------------
    | encoding - pass 2 |
    ---------------------

    *** INFO, adjusting average bitrate: -0.08 %
    *** INFO, adjusting average bitrate: -0.20 %
    *** INFO, adjusting average bitrate: -0.37 %
    *** INFO, adjusting average bitrate: -0.54 %
    *** INFO, adjusting average bitrate: -0.66 %
    *** INFO, adjusting average bitrate: -0.77 %
    *** INFO, adjusting average bitrate: -0.87 %
    *** INFO, adjusting average bitrate: -0.99 %
    *** INFO, adjusting average bitrate: -1.23 %
    *** INFO, adjusting average bitrate: -1.39 %
    *** INFO, adjusting average bitrate: -1.55 %
    *** INFO, adjusting average bitrate: -1.75 %
    *** INFO, adjusting average bitrate: -1.95 %
    *** INFO, adjusting average bitrate: -2.11 %
    *** INFO, adjusting average bitrate: -2.30 %
    *** INFO, adjusting average bitrate: -2.47 %
    *** INFO, adjusting average bitrate: -2.64 %
    *** INFO, adjusting average bitrate: -2.85 %
    *** INFO, adjusting average bitrate: -3.08 %
    *** INFO, adjusting average bitrate: -3.26 %
    *** INFO, adjusting average bitrate: -3.44 %
    *** INFO, adjusting average bitrate: -3.75 %
    *** INFO, adjusting average bitrate: -3.91 %
    *** INFO, adjusting average bitrate: -4.03 %
    *** INFO, adjusting average bitrate: -4.21 %
    *** INFO, adjusting average bitrate: -4.36 %
    *** INFO, adjusting average bitrate: -4.49 %
    *** INFO, adjusting average bitrate: -4.69 %
    *** INFO, adjusting average bitrate: -4.87 %
    *** INFO, adjusting average bitrate: -5.09 %
    *** INFO, adjusting average bitrate: -5.28 %
    *** INFO, adjusting average bitrate: -5.38 %
    *** INFO, adjusting average bitrate: -5.50 %
    *** INFO, adjusting average bitrate: -5.63 %
    *** INFO, adjusting average bitrate: -5.75 %
    *** INFO, adjusting average bitrate: -5.85 %
    *** INFO, adjusting average bitrate: -6.00 %
    *** INFO, adjusting average bitrate: -6.11 %
    *** INFO, adjusting average bitrate: -6.28 %
    *** INFO, adjusting average bitrate: -6.47 %
    *** INFO, adjusting average bitrate: -6.64 %
    *** INFO, adjusting average bitrate: -6.81 %
    *** INFO, adjusting average bitrate: -6.95 %
    *** INFO, adjusting average bitrate: -7.16 %
    *** INFO, adjusting average bitrate: -7.34 %
    *** INFO, adjusting average bitrate: -7.53 %
    *** INFO, adjusting average bitrate: -7.72 %
    *** INFO, adjusting average bitrate: -7.89 %
    *** INFO, adjusting average bitrate: -8.08 %
    *** INFO, adjusting average bitrate: -8.28 %
    *** INFO, adjusting average bitrate: -8.46 %
    *** INFO, adjusting average bitrate: -8.62 %
    *** INFO, adjusting average bitrate: -8.72 %
    *** INFO, adjusting average bitrate: -8.85 %
    *** INFO, adjusting average bitrate: -9.03 %
    *** INFO, adjusting average bitrate: -9.21 %
    *** INFO, adjusting average bitrate: -9.42 %
    *** INFO, adjusting average bitrate: -9.55 %
    *** INFO, adjusting average bitrate: -9.69 %
    *** INFO, adjusting average bitrate: -9.86 %
    *** INFO, adjusting average bitrate: -10.10 %
    *** INFO, adjusting average bitrate: -10.26 %
    *** INFO, adjusting average bitrate: -10.46 %
    *** INFO, adjusting average bitrate: -10.68 %
    *** INFO, adjusting average bitrate: -10.84 %
    *** INFO, adjusting average bitrate: -11.03 %
    *** INFO, adjusting average bitrate: -11.21 %
    *** INFO, adjusting average bitrate: -11.41 %
    *** INFO, adjusting average bitrate: -11.57 %
    *** INFO, adjusting average bitrate: -11.75 %
    *** INFO, adjusting average bitrate: -11.92 %
    *** INFO, adjusting average bitrate: -12.07 %
    *** INFO, adjusting average bitrate: -12.26 %
    *** INFO, adjusting average bitrate: -12.43 %
    *** INFO, adjusting average bitrate: -12.59 %
    *** INFO, adjusting average bitrate: -12.77 %
    *** INFO, adjusting average bitrate: -13.11 %
    *** INFO, adjusting average bitrate: -13.37 %
    *** INFO, adjusting average bitrate: -13.71 %
    *** INFO, adjusting average bitrate: -13.99 %
    *** INFO, adjusting average bitrate: -14.23 %
    *** INFO, adjusting average bitrate: -14.44 %
    *** INFO, adjusting average bitrate: -14.60 %
    *** INFO, adjusting average bitrate: -14.78 %
    *** INFO, adjusting average bitrate: -15.00 %
    *** INFO, adjusting average bitrate: -15.36 %
    *** INFO, adjusting average bitrate: -15.54 %
    *** INFO, adjusting average bitrate: -15.68 %
    *** INFO, adjusting average bitrate: -15.98 %
    *** INFO, adjusting average bitrate: -16.24 %
    pass 2 encoding time: 2:29:13 (8952.51 s)
    fps: 18.0

    ------------------
    | encoding stats |
    ------------------


    intra matrix used
    8 16 19 22 26 27 29 34
    16 16 22 24 27 29 34 37
    19 22 26 27 29 34 34 38
    22 22 26 27 29 34 37 40
    22 26 27 29 32 35 40 48
    26 27 29 32 35 40 48 58
    26 27 29 34 38 46 56 69
    27 29 35 38 46 56 69 83

    non-intra matrix used
    16 17 18 19 20 21 22 23
    17 18 19 20 21 22 23 24
    18 19 20 21 22 23 24 25
    19 20 21 22 23 24 26 27
    20 21 22 23 25 26 27 28
    21 22 23 24 26 27 28 30
    22 23 24 26 27 28 30 31
    23 24 25 27 28 30 31 33

    nr. of gops: 11688
    nr. of frames: 161198
    nr. of I-frames: 11688
    nr. of P-frames: 45867
    nr. of B-frames: 103643
    average bitrate: 7743
    minimum bitrate: 148
    maximum bitrate: 8999

    bytes in bitstream: 6241723453
    bits in bitstream: 49933787624

    average Quantizer: 1.720

    total CPU time: 6:44:37 (24277.12 s)
    total elapsed time: 3:50:22 (13821.86 s)


    manono, I can see that the AR of the .m2v file is off when I play it. Yes, I encoded it as 16:9. I don't understand what you mean by looking at the 720X576 picture??
    Quote Quote  
  6. Originally Posted by Arbok View Post
    manono, I can see that the AR of the .m2v file is off when I play it. Yes, I encoded it as 16:9. I don't understand what you mean by looking at the 720X576 picture??
    Open the M2V in DGIndex and you'll see the 720x576 picture. A quick look at the log doesn't show me anything out of the ordinary. Can you cut a short 10 second section of the M2V for upload here? You can also do that in DGIndex.

    Did you already make the DVD, and when playing it you have the same problem? In what way is the video stretched? People are too short and fat, or too tall and thin? At 720x576, ignoring the DAR, people will be very tall and slender.
    Quote Quote  
  7. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    Hmm, when opened in DGIndex, the video seems fine... But when I make the DVD and play it, it has the same problem. In the video, the people are too short!

    manono, could you please explain how to cut out a piece of .m2v file using DGIndex?
    Quote Quote  
  8. 1) open file in dgindex

    2) move the slider to where you want , using the "<" and ">" buttons in the GUI to navigate to keyframes. Then hit the "[" button at the bottom of the GUI to mark in, and "]" button to mark out , the segment you want

    3) file=>save project and demux video

    4) upload the .m2v
    Quote Quote  
  9. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    Thank you very much, poisondeathray! Here's the clip!
    Image Attached Files
    Quote Quote  
  10. Your M2V wasn't made using only that script above. By my reckoning there are 128 rows of pixels added both above and below, not 72. Did you accidentally have MeGUI add more black and do another resize?
    Last edited by manono; 13th Feb 2014 at 22:33.
    Quote Quote  
  11. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    The other interesting thing is, if you drag and drop that m2v into Virtualdub,
    right click the image and choose aspect ratio 4:3, it looks perfect.
    Coincidence?
    Quote Quote  
  12. You're right. Doing this:

    LanczosResize(720,320)
    AddBorders(0,128,0,128)
    results in a script ready to encode as 4:3. I agree that it's not a coincidence. I don't use MeGUI so I have no idea how this might have happened. Was the earlier script somehow changed for 4:3 encoding, even though the eventual encode was 16:9?
    Quote Quote  
  13. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    Hmmm... Yes, it does look like more rows of pixels then needed were added both above and below, not 72, but I don't know how! I'm always using the same settings in MeGUI. And it looks like this happens only with cca 2.4 AR files.
    Quote Quote  
  14. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    What if I, instead of AddBorders(0,72,0,72), put AddBorders(0,0,0,0) to somehow trick MEGUI?
    Quote Quote  
  15. Trick MeGUI? Why not find out how you screwed up in the first place? I'm sure there's a place where you can see (and maybe edit) the final script it created. HCEnc doesn't change scripts on its own, as far as I know.

    Failing that, let AvsToDVD do the job. I bet it won't mess up and it'll use HCEnc as well.
    Last edited by manono; 14th Feb 2014 at 14:52.
    Quote Quote  
  16. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    I have never worked with AvsToDVD before so I'm not exactly sure what to do.
    Quote Quote  
  17. Why make PAL DVDs anyway, since your DVD player will play NTSC DVDs? Anyway, AvsToDVD can do the framerate and resolution conversion on its own. If you have any specific AvsToDVD questions there's a dedicated thread for it which the developer visits regularly:

    https://forum.videohelp.com/threads/277852-AVStoDVD-Support-Thread?highlight=avstodvd
    Quote Quote  
  18. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    I created PAL DVD using AvsToDVD and the result is the same. I'll try to create a NTSC DVD now and see what happens.
    Quote Quote  
  19. Again, check the Avisynth script it's using. Perhaps there's some screwy header that's making the programs do this. Also, there's a way to override or edit the script being used. For more information see the support thread to which I linked earlier. And post your log there.

    But I guess I was wrong about AvsToDVD giving you a DVD with the correct aspect ratio. Unless there's something you haven't told us. When you download stuff from the internet you take your chances and often the original encoder doesn't know what he's doing. In this case maybe he set an aspect ratio that didn't need setting.
    Quote Quote  
  20. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    This is interesting. Here's what the AvsToDVD log says about Avisynth script:

    Video = Video.ConvertToYV12()
    Video = Video.AddBorders(0,92,0,92)
    Video = Video.Spline16Resize(720,576)
    #Using DGPulldown/HCenc to upsize FPS

    I'm no expert, but are the bolded values in order?!

    P.S. Regarding the part with downloading stuff from the net and the original encoder not knowing what he's doing... Non of that is definitely the reason for this. Like I said, I created until recently numerous DVD's without any problems using the same method and various source files. Besides, what are the chances of it happening a couple of times in a row with different source files?
    Last edited by Arbok; 14th Feb 2014 at 19:25.
    Quote Quote  
  21. Originally Posted by Arbok View Post
    I'm no expert, but are the bolded values in order?!
    Yeah, it looks OK to me. It added bigger borders first and then resized. That's pretty much the same as resizing followed by adding the smaller borders.

    What happens when you just play the script, either the original one or that AvsToDVD one? Do people look tall and skinny, or almost 'normal'? Use a player that can play the scripts. I don't use VLC but all the ones in the MPC family can do it. Or open the script in VDub and have it show it as 16:9. Right-click on the screen and then change the aspect ratio.
    Last edited by manono; 14th Feb 2014 at 21:16.
    Quote Quote  
  22. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    When I open the original script in MPC and set Video frame to Touch window from inside the picture is perfect but it has black bars all around it. When the Video frame is set to Stretch to window the picture has that very same problem we are discussing about! When I drag and drop the script into VDub and touch nothing (AR is set to Free adjust) the picture looks OK, when I change the AR to 4:3 it's perfect, and when I set the AR to 16:9 the picture looks more or less just like the one discussed about.
    Quote Quote  
  23. Originally Posted by Arbok View Post
    When I open the original script in MPC and set Video frame to Touch window from inside the picture is perfect but it has black bars all around it. When the Video frame is set to Stretch to window the picture has that very same problem we are discussing about! When I drag and drop the script into VDub and touch nothing (AR is set to Free adjust) the picture looks OK, when I change the AR to 4:3 it's perfect, and when I set the AR to 16:9 the picture looks more or less just like the one discussed about.
    From that description there's something wrong either with your source, or maybe with you using DirectShowSource on it. With MKVs I always use FFVideoSource. Anyway, is there a chance you can cut a small chunk from that MKV so we could have a look? There are better people than I around here that might be able to figure out what's going on. Hehe, what you're describing isn't supposed to happen.
    Quote Quote  
  24. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    Here:

    P.S. I used SolveigMM for cutting.
    Image Attached Files
    Last edited by Arbok; 15th Feb 2014 at 16:46.
    Quote Quote  
  25. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Looks good to me, here's the output from AVStoDVD
    Image Attached Files
    Quote Quote  
  26. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    Well, we have a new twist to the situation!
    Yesterday I have restarted my computer and now when I try to open the forementioned file in MeGUI this error pops up:
    Click image for larger version

Name:	megui error.jpg
Views:	191
Size:	98.7 KB
ID:	23640
    The last line is in Croatian and roughly translated into English it means:
    "No combination of filters have been found for streams rendering." But this error does not occure when I open files with 1.77 or 1.85 AR!
    I don't know if it has anything to do with all this, but I just remembered that all this trouble began shortly after I updated MeGUI!
    Last edited by Arbok; 17th Feb 2014 at 08:27.
    Quote Quote  
  27. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    P. S. The last line is in Croatian because I don't how to change the language in Avisynth...

    P.P.S. I googled a bit and I think this would (probably) be the error in english: "Direct Show Error: Unable to render the file. You probably don't have the correct filters installed".
    Last edited by Arbok; 17th Feb 2014 at 08:24.
    Quote Quote  
  28. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    I assumed that the problems had something to do wtih updating to a newer version of MeGUI so I downgraded to version 2341, but it had no effect, I'm still getting the same error. I'm just taking a wild guess here, but could the error be related to installing AvsToDVD or is MEGUI maybe interfered by some other program?
    Quote Quote  
  29. Member
    Join Date
    Feb 2014
    Location
    Croatia
    Search Comp PM
    Well, long time no see!
    I followed your advice and tried to convert mkv to DVD using AvsToDVD. For some time (a couple of movies) it did great, but then I started to get the same result as with MEgUI (stretched video). Then I remembered that manono wrote how to him it seems that MeGUi is adding 128 rows instead of 72 (meaning that it adds 56 extra lines), so instead of AddBorders(0,72,0,72) and 720,432 resize I put in AddBorders(0,16,0,16) and 720,544 resize and it seems to me that the resulting file is just like it's supposed to be! Here's the file so you be the judge of that, if you please...
    P.S. This time I used a different source file (I erased the previous one), but its technical characteristics (AR, frame rate) are the same!
    P.P.S. The problem concerning MeGUI's error with DirectShowSource got sorted out!
    Image Attached Files
    Last edited by Arbok; 3rd Mar 2014 at 17:34.
    Quote Quote  
  30. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Looking at it in Virtualdub, and setting the aspect ratio to 4:3, it still looks a little out,
    but not by much (objects looking slightly taller and thinner than they should be).

    On the video tab in the AVStoDVD project, did you select 4:3 ?
    Click image for larger version

Name:	aspect1.JPG
Views:	155
Size:	70.1 KB
ID:	23846
    Last edited by davexnet; 3rd Mar 2014 at 19:52.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!