digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Capture, Record, Transfer (https://www.digitalfaq.com/forum/video-capture/)
-   -   Aspect Ratio Problem with Avisynth (https://www.digitalfaq.com/forum/video-capture/5686-aspect-ratio-problem.html)

zack82 02-03-2014 12:57 PM

Aspect Ratio Problem with Avisynth
 
G'day

I'm capturing VCR tapes using WinDV (raw dv, Type 1) at the moment i'm just capturing a 20 second clip to determine how the output size and quality would look like, I'm using avs scripts with VirtualDub

My goal is to capture a 4 hour VHS birthdaybash ,Clean it up, resize it to 352x576, (4:3) H264 MP4 output using Video x264vfw default settings, Audio AAC ACM codec default settings

I'm using the following script (i'm new to this):eek:

Code:

# DVI 720x576 video and resize it to 352x576
# preserving the correct aspect ratio
AviSource("c:\birthdaybash.avi").BilinearResize(352, 576, 8, 0, 704, 576)

AviSource("c:\birthdaybash.avi").BilinearResize(352, 576, 8, 0, -8, -0)

MediaInfo

HTML Code:

General
Complete name                            : C:\birthdaybash.avi
Format                                  : AVI
Format/Info                              : Audio Video Interleave
File size                                : 5.89 MiB
Duration                                : 20s 440ms
Overall bit rate                        : 2 417 Kbps
Writing library                          : VirtualDub build 35491/release

Video
ID                                      : 0
Format                                  : AVC
Format/Info                              : Advanced Video Codec
Format profile                          : High@L2.1
Format settings, CABAC                  : Yes
Format settings, ReFrames                : 3 frames
Codec ID                                : H264
Duration                                : 20s 440ms
Bit rate                                : 1 380 Kbps
Width                                    : 352 pixels
Height                                  : 576 pixels
Display aspect ratio                    : 0.611
Frame rate                              : 25.000 fps
Standard                                : PAL
Color space                              : YUV
Chroma subsampling                      : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                      : 0.272
Stream size                              : 3.36 MiB (57%)
Writing library                          : x264 core 130 r2273kMod b3065e6
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x13 / me=umh / subme=7 / psy=1 / fade_compensate=0.00 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=2 / lookahead_threads=2 / sliced_threads=1 / slices=2 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc=crf / mbtree=0 / crf=23.0000 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                                      : 1
Format                                  : PCM
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                : 1
Duration                                : 20s 440ms
Bit rate mode                            : Constant
Bit rate                                : 1 024 Kbps
Channel(s)                              : 2 channels
Sampling rate                            : 32.0 KHz
Bit depth                                : 16 bits
Stream size                              : 2.50 MiB (42%)
Interleave, duration                    : 41 ms (1.02 video frame)
Interleave, preload duration            : 500 ms

The problem is the video when played in WMP and VLC Player it looks squashed ( I think it might be the DAR set as 0.611) do i need to add a line to the script that sets it to 1.33333

Also

I cant get this clip to work on my LG Bluray player connected to 32" LED as i wanted to see what it looks like, it keeps saying 'Audio not supported (bluray player can play mp4 h264)

The clip also suffers from Dot Crawl artifacts color bleed and god knows what other problem, but that can addressed at a later date once i get to grips with AviSynth:confused:

admin 02-09-2014 11:41 AM

I wouldn't use H.264 @ 352x576. That was really just a MPEG DVD resolution.

What's the end goal of this? Discs? Streaming online? (Youtube, etc)

352x576 is going to play as 1:1 pixels -- not 4:3 on a computer. For compute viewing, it needs to be a 4x3 aspect at 1:1 pixels. That's either 640x480 or 512x384. (I prefer 640x480 for myself.)

I'd also use this Avisynth filter to resize:
Code:

spline36resize(640,480)
It's not that much slower, and it's far more accurate. Less resizing artifacts.

If the BD player refuses to see the file, it might be the setting being used on the H.264 encoder. What are you using? We encode with the commercial MainConcept Reference, but Avidemux and x264vfw in VirtualDub are often things I personally use at home.

Color bleed can sometimes be a simple fix. At very least, it can often be made better. Post a sample clip. Attach it to a forum post (32mb max).

zack82 02-09-2014 01:23 PM

Thank you very much for helping me

I will post a clip of the video eventually, but first i was trying to sort out the final ouput solution

The clip was showing up as a mp4 file on my LG Bluray player, when i selected it, it would load but then just say 'audio not supported'

My final goal is basically to have my Vhs video (4 hrs in size) as a mp4 file, so that it can be played on various platform (bluray(via usb portable HD), (Ipad from internal SD card), (samsung s4 phone internal SD card) I can also burn the file onto a DVD or BDR as a MP4 file (not as DVD video)

My Bluray Player is a LG BD560 (plays MP4 MKV Divx,Xvid Via disc or usb) connected to Panasonic TX-L32X15B
also

I have a Pioneer DV-610AVS DVD player (plays Avi Divx,Xvid,Via disc or usb) connected via Component (Y,PB,PR) to 32" Toshiba CRT
I was told that actual vhs res is 352x576, (4:3) thats what i was using.

Just out of curisorty if i was to use the Xvid codec in a Mp4 or AVI container at 352x576, (4:3) would i still have the aspect ratio problem

Is 640x480 just capturing extra information thats not needed

also what container codec resolution would you recommend, willing to experment

lordsmurf 07-25-2014 03:18 AM

Yes, you'd still have the aspect ratio issue to content with.
Non-disc content needs to be a 1:1 ratio, rather than be 4x3 or 16x9. So 640x480 is not extra details, no.


This was an unanswered question or unresolved issue found during a site audit. It's hard to have an FAQ when the answers are missing, or final outcomes are unknown. At The Digital FAQ support forum, questions are never intentionally ignored, and may have been missed due to a forum glitch or human error. More details on the audit. (In some cases, threads have been edited/updated with newer information.)



All times are GMT -5. The time now is 03:42 PM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.