VideoHelp Forum
+ Reply to Thread
Results 1 to 13 of 13
Thread
  1. This is the first time I have ever had this happen.

    I am simply cropping black sides off of a 4:3 aspect ratio Blu-Ray like this.

    Code:
    LoadPlugin("C:\Program Files (x86)\MeGui\tools\dgavcindex\DGAVCDecode.dll")
    AVCSource("C:\Users\???\Desktop\Encoding\Episode 1\00001.dga")
    LimitedSharpenFaster(ss_x=1.00, ss_y=1.00, strength=12, overshoot=0, undershoot=0, soft=0, edgemode=0)
    crop( 242, 0, -242, 0)
    For some reason, on playback, its playing back as stretched 1920x1080 instead of 1436x1080. Mediainfo shows the file as 1436x1080, but any media player I try, plays it back as stretched to 1920x1800. Even when I mux it to MKV, MKVMerge seems to think its 1920x1080. I would have to override the settings when muxing to get it resize it. Only mediainfo seems to know its 1436x1080 resolution for whatever reason.

    Whats up with this? Is there a problem with the script? I crop black bars from the top and bottom all the time for 2:40 aspect ratio movies and it always comes out fine without any resizing. The preview of the script in AVSPmod and or MeGui shows it perfectly fine.
    Last edited by killerteengohan; 19th Apr 2021 at 17:03.
    Quote Quote  
  2. I tried file indexing the output .mp4 video with .ffindex and it shows up perfectly as it should in avisynth previewers. Why is it only MediaInfo and Avisynth can see this final video in its correct aspect ratio?
    Last edited by killerteengohan; 19th Apr 2021 at 10:33.
    Quote Quote  
  3. when encoding set --sar 1:1

    Make sure your players are not configured "stretch to fit" or something like that
    Quote Quote  
  4. Originally Posted by poisondeathray View Post
    when encoding set --sar 1:1

    Make sure your players are not configured "stretch to fit" or something like that
    SAR is set to 1:1 in my settings, I'll give that a try. WHat is setting SAR 1:1 going to change? Should I always have it set to that?
    That stretch media player setting is the first thing I checked and messed with.

    My other 4:3 encodes I have done in the past came out fine. It's only this one that has the issue.
    Last edited by killerteengohan; 19th Apr 2021 at 11:16.
    Quote Quote  
  5. I tried 4 different media players and they all display it wrong.
    Quote Quote  
  6. You have an encoding or playback problem

    If you're using some GUI, maybe your commands are being overriden ?

    Try playing this attached file. If it does not playback correctly, you have a player configuration issue. If it plays back correctly, you have an encoding issue

    Code:
    colorbarshd(1920,1080)
    ConvertToYV12()
    Trim(0,240)
    AssumeFPS(24000,1001)
    crop( 242, 0, -242, 0)
    Image Attached Files
    Quote Quote  
  7. That video you gave me plays back fine.

    Of all the 4:3 BD's I have encoded, this is the first to give me that issue.

    I noticed in my video file that doesn't play back fine, if I select save a screenshot, the screenshot is fine. It's fairly weird that it is doing this.
    Quote Quote  
  8. Your encoding commands are probably not being passed, or they are being overriden if you are using some GUI. Check your log files

    Setting sar to 1:1 means "square pixel"
    Quote Quote  
  9. Originally Posted by poisondeathray View Post
    Your encoding commands are probably not being passed, or they are being overriden if you are using some GUI. Check your log files
    That sort of makes no sense to me since its perfectly fine everywhere but playback. mediainfo, avisynth, media player screenshots, windows properties, they all have the correct information in them or show it correctly.

    Anyways this is the log I could find.


    Code:
    -[Information] Log for job1 (video, 00001.avs -> )
    --[Information] [4/18/2021 10:32:37 PM] Started handling job
    --[Information] [4/18/2021 10:32:37 PM] Preprocessing
    -[NoImage] LoadPlugin("C:\Program Files (x86)\MeGui\tools\dgavcindex\DGAVCDecode.dll")
    -[NoImage] AVCSource("C:\Users\???\Desktop\Encoding\Episode 1\00001.dga")
    -[NoImage] LimitedSharpenFaster(ss_x=1.00, ss_y=1.00, strength=12, overshoot=0, undershoot=0, soft=0, edgemode=0)
    -[NoImage] crop( 242, 0, -242, 0)
    --[Information] [4/18/2021 10:32:37 PM] Avisynth input script
    --[Information] [4/18/2021 10:32:45 PM] Job commandline: "C:\Program Files (x86)\MeGui\tools\x264\x264.exe" --level 4.1 --preset slow --pass 1 --bitrate 16233 --stats "C:\Users\???\Desktop\Encoding\Episode 1\00001.stats" --threads 8 --deblock 1:1 --keyint 240 --qpmin 8 --qpmax 28 --vbv-maxrate 25000 --subme 7 --partitions all --trellis 2 --psy-rd 0.40:0 --no-dct-decimate --no-fast-pskip --sar 480:359 --output NUL "C:\Users\???\Desktop\Encoding\Episode 1\00001.avs" 
    --[Information] [4/18/2021 10:32:46 PM] Encoding started
    -[Information] Log for job3 (video, 00002.avs -> )
    --[Information] [4/18/2021 10:48:49 PM] Started handling job
    --[Information] [4/18/2021 10:48:49 PM] Preprocessing
    -[NoImage] LoadPlugin("C:\Program Files (x86)\MeGui\tools\dgavcindex\DGAVCDecode.dll")
    -[NoImage] AVCSource("C:\Users\???\Desktop\Encoding\Episode 2\00002.dga")
    -[NoImage] LimitedSharpenFaster(ss_x=1.00, ss_y=1.00, strength=12, overshoot=0, undershoot=0, soft=0, edgemode=0)
    -[NoImage] crop( 242, 0, -242, 0)
    --[Information] [4/18/2021 10:48:49 PM] Avisynth input script
    --[Information] [4/18/2021 10:48:58 PM] Job commandline: "C:\Program Files (x86)\MeGui\tools\x264\x264.exe" --level 4.1 --preset slow --pass 1 --bitrate 16287 --stats "C:\Users\???\Desktop\Encoding\Episode 2\00002.stats" --threads 8 --deblock 1:1 --keyint 240 --qpmin 8 --qpmax 28 --vbv-maxrate 25000 --subme 7 --partitions all --trellis 2 --psy-rd 0.40:0 --no-dct-decimate --no-fast-pskip --sar 480:359 --output NUL "C:\Users\???\Desktop\Encoding\Episode 2\00002.avs" 
    --[Information] [4/18/2021 10:48:58 PM] Encoding started
    --[Information] [4/19/2021 2:17:36 AM] Standard output stream
    -[NoImage] avs [info]: 1436x1080p 480:359 @ 24000/1001 fps (cfr)
    -[NoImage] x264 [warning]: VBV maxrate specified, but no bufsize, ignored
    -[NoImage] x264 [info]: using SAR=480/359
    -[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX AVX2 FMA3 BMI1 BMI2
    -[NoImage] x264 [info]: profile Main, level 4.1
    -[NoImage]                                                                                
    -[NoImage] x264 [info]: frame I:368   Avg QP:15.56  size:304039
    -[NoImage] x264 [info]: frame P:10865 Avg QP:18.37  size:122895
    -[NoImage] x264 [info]: frame B:25613 Avg QP:19.73  size: 65751
    -[NoImage] x264 [info]: consecutive B-frames:  3.5%  4.8% 19.9% 71.8%
    -[NoImage] x264 [info]: mb I  I16..4: 14.7%  0.0% 85.3%
    -[NoImage] x264 [info]: mb P  I16..4: 46.1%  0.0%  0.0%  P16..4: 51.9%  0.0%  0.0%  0.0%  0.0%    skip: 2.0%
    -[NoImage] x264 [info]: mb B  I16..4: 17.6%  0.0%  0.0%  B16..8: 41.4%  0.0%  0.0%  direct:30.5%  skip:10.5%  L0:31.0% L1:39.3% BI:29.7%
    -[NoImage] x264 [info]: final ratefactor: 16.92
    -[NoImage] x264 [info]: direct mvs  spatial:100.0% temporal:0.0%
    -[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 95.2% 97.6% 94.7% inter: 55.9% 72.3% 50.1%
    -[NoImage] x264 [info]: i16 v,h,dc,p: 13% 15% 61% 10%
    -[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 16% 13%  8% 10%  9%  8%  8%  9%
    -[NoImage] x264 [info]: i8c dc,h,v,p: 68% 12% 12%  8%
    -[NoImage] x264 [info]: Weighted P-Frames: Y:9.4% UV:5.7%
    -[NoImage] x264 [info]: kb/s:16300.20
    -[NoImage] encoded 36846 frames, 2.73 fps, 16300.20 kb/s
    --[Information] [4/19/2021 2:17:36 AM] Standard error stream
    --[Information] [4/19/2021 2:17:36 AM] Postprocessing
    ---[Information] Deleting intermediate files
    --[Information] [4/19/2021 2:17:36 AM] Job completed
    -[Information] Log for job2 (video, 00001.avs -> 00001.mp4)
    --[Information] [4/19/2021 2:17:36 AM] Started handling job
    --[Information] [4/19/2021 2:17:36 AM] Preprocessing
    -[NoImage] LoadPlugin("C:\Program Files (x86)\MeGui\tools\dgavcindex\DGAVCDecode.dll")
    -[NoImage] AVCSource("C:\Users\???\Desktop\Encoding\Episode 1\00001.dga")
    -[NoImage] LimitedSharpenFaster(ss_x=1.00, ss_y=1.00, strength=12, overshoot=0, undershoot=0, soft=0, edgemode=0)
    -[NoImage] crop( 242, 0, -242, 0)
    --[Information] [4/19/2021 2:17:36 AM] Avisynth input script
    --[Information] [4/19/2021 2:17:47 AM] Job commandline: "C:\Program Files (x86)\MeGui\tools\x264\x264.exe" --level 4.1 --preset slow --pass 2 --bitrate 16233 --stats "C:\Users\???\Desktop\Encoding\Episode 1\00001.stats" --threads 8 --deblock 1:1 --keyint 240 --qpmin 8 --qpmax 28 --vbv-maxrate 25000 --subme 7 --partitions all --trellis 2 --psy-rd 0.40:0 --no-dct-decimate --no-fast-pskip --sar 480:359 --output "C:\Users\???\Desktop\Encoding\Episode 1\00001.mp4" "C:\Users\???\Desktop\Encoding\Episode 1\00001.avs" 
    --[Information] [4/19/2021 2:17:47 AM] Encoding started
    --[Information] [4/19/2021 2:27:40 AM] Standard output stream
    -[NoImage] avs [info]: 1436x1080p 480:359 @ 24000/1001 fps (cfr)
    -[NoImage] x264 [warning]: VBV maxrate specified, but no bufsize, ignored
    -[NoImage] x264 [info]: using SAR=480/359
    -[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX AVX2 FMA3 BMI1 BMI2
    -[NoImage] x264 [info]: profile Main, level 4.1
    -[NoImage]                                                                                
    -[NoImage] x264 [info]: frame I:344   Avg QP:15.82  size:257541
    -[NoImage] x264 [info]: frame P:11056 Avg QP:18.46  size:111713
    -[NoImage] x264 [info]: frame B:25326 Avg QP:19.30  size: 70689
    -[NoImage] x264 [info]: consecutive B-frames:  2.4%  8.7% 24.5% 64.4%
    -[NoImage] x264 [info]: mb I  I16..4: 13.3%  0.0% 86.7%
    -[NoImage] x264 [info]: mb P  I16..4: 57.2%  0.0%  0.0%  P16..4: 41.5%  0.0%  0.0%  0.0%  0.0%    skip: 1.3%
    -[NoImage] x264 [info]: mb B  I16..4: 24.9%  0.0%  0.0%  B16..8: 41.3%  0.0%  0.0%  direct:25.4%  skip: 8.3%  L0:29.8% L1:36.1% BI:34.1%
    -[NoImage] x264 [info]: final ratefactor: 16.93
    -[NoImage] x264 [info]: direct mvs  spatial:100.0% temporal:0.0%
    -[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 98.5% 95.2% 76.8% inter: 65.3% 59.7% 21.4%
    -[NoImage] x264 [info]: i16 v,h,dc,p:  9% 10% 71% 11%
    -[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 15% 14%  9% 11%  9%  8%  8%  9%
    -[NoImage] x264 [info]: i8c dc,h,v,p: 59% 18% 18%  5%
    -[NoImage] x264 [info]: Weighted P-Frames: Y:6.0% UV:3.8%
    -[NoImage] x264 [info]: kb/s:16263.16
    -[NoImage] encoded 36726 frames, 2.80 fps, 16263.16 kb/s
    --[Information] [4/19/2021 2:27:40 AM] Standard error stream
    --[Information] [4/19/2021 2:27:40 AM] Postprocessing
    ---[Information] Deleting intermediate files
    --[Information] [4/19/2021 2:27:40 AM] Job completed
    Last edited by killerteengohan; 19th Apr 2021 at 17:03.
    Quote Quote  
  10. Your log say sar=480:359. It should be 1:1.
    Quote Quote  
  11. I wonder why its choosing that SAR. I checked the logs of several of my past encodes and they are all SAR 1:1, even the 1920x1080 encodes. Should I just always use manual override SAR 1:1 no matter what? I have it set to auto in GUI settings and always have so why it went crazy for this one, I have no idea.
    Quote Quote  
  12. I exited the software, restarted the computer, and it is choosing SAR 1/1 on auto now like it apparently always has. I still have no idea why it was choosing 480:359 last night, but it looks like if I run it again, things should come out fine. I will let you know.
    Quote Quote  
  13. Yup the exiting and restarting fixed the issue. I now know I can manually set SAR to 1:1 if need be as well.

    Thanks!
    Quote Quote  



Similar Threads

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