@SkyBlues2021: By the way, what you did in post#17 with Avidemux looks ok to me. If you are not familiar with all the advanced encoder settings I would just leave them at their defaults, means on the General Tab just deselect "use advanced configuration", select preset "slow" and adjust the CRF to e.g. 18 (as you did). On the Frame Tab tick "Interlaced" and select "Top Fields First" (as you did, for interlaced encoding). On the Output 1 Tab I would set the SAR to 12:11.
Leave the rest at their defaults. It's normally not necessary to tweak these unless you have a specific reason.
(As has been said, (avisynth-)filtering is more crucial and beneficial than the detailed x264 tweaks).
+ Reply to Thread
Results 31 to 60 of 94
-
-
With the version I have you can't enable interlaced encoding if you use the presets (ie, if you don't enable "use advanced configuration". And if you enable advanced configuration the presets have no meaning -- you have to set all the advanced parameters yourself.
The SAR setting is enabled with both advanced and preset modes. -
-
I'm using version 2.7.7. I don't really use AviDemux so I don't keep it up to date. Maybe I'll update to the latest release and see what's changed.
<edit>
After installing 2.8.1 the interlaced option is available when using the presets. That will make things easier for SkyBlues2021.
</edit>Last edited by jagabo; 26th Oct 2022 at 08:35.
-
I only changed the settings Sharc mentioned. Regarding the pixel aspect ratio I selected custom 12:11 as predefined aspect ratio can only do 16:15 (PAL 4:3) I wasn't sure if this was correct? as I couldn't select PAL
I was able to force aspect ratio 4:3 in MP4 Muxer though -
In the virtualdub2 encoder I copied jagabo's command line into notepad and changed the path to ffmpeg on my system, I then put this into the extra command line box in the x264 configuration page I then selected ok.
Open video file>family holiday 2004 3
File> save video> I selected MP4 (mpeg-4 part 14) It only seemed to like full processing mode or normal re-compress. When I went to save it I got this error message. I guessing I've got my ffmpeg path incorrect or selecting MP4 is incorrect? Any advice would be welcome thanks. -
Your interlaced encoding is fine. It is correct to set the PixelAspectRatio to 12:11 for your captured 720x576 VHS video. The video stream is then flagged accordingly which means the active picture (excluding the black side bars of your capture) become 4:3 when the player respects this PAR signalling.
The MP4 muxer in AviDemux however forces the overall frame (including the black side bars) to 4:3 at container level which gives the "infamous" but harmless ~2% difference (plenty of threads discussing this). Nothing to really worry unless one is pedantic....Last edited by Sharc; 26th Oct 2022 at 14:31.
-
Thanks Sharc. Will I be able to use those settings as a template for when I eventually start encoding? I will put one of my 1 hour captures onto a usb and watch it over the weekend, just to make sure everything looks ok. I would also persevere with virtualdub2 it always ends badly when I start trying to script!
-
You misunderstand something here. When using VirtualDub2 the only thing you have to put into the extra command line box is
--tff --weightp=0
as per jagabo's instructions in post#22, for interlaced encoding.
Post#30 is a standalone ffmpeg commandline. You don't need VirtualDub2 for this to run. -
Thanks Sharc. Sorry, I'm not sure if I understand. Do you mean to encode with virtdualdub2 all I need to do is put --tff --weightp=0 into the extra command line box then save video>MP4 and it's encoded? or is that just step 1 and step 2 is the ffmpeg command line?
-
-
I've just watched my first encoded video on tv! I compared to it a DVD I made approx. 17 years ago and even without any restoration it looks so much better. The only thing that I think I may have to do is de-interlace it. I thought my tv would do a better job of de-interlacing, however I'm probably wrong and any advice would be welcome.
-
I've had another go with the virtualdub2 encoder. But I got the following error message. I set both video and audio to full processing mode as a few posts I found said this is an audio error message?
-
Be sure to enable Audio -> Full Processing Mode or you won't be able to select a codec.
-
Success! Thanks Sharc & jagabo. I attached the virtualdub2 encoded clip. Do most folk here de-interlace before encoding? or is it better to leave it interlaced.
-
The encoded video looks right to me. The sound level is a bit low.
Deinterlace or not: There are plenty of posts and opinions on this subject with pro's and con's in this forum and at doom9.
If your TV's deinterlacer is poor you may want to deinterlace. If, however, you don't deinterlace correctly with a very good deinterlacer (QTGMC for example) you may do more harm than good to your video.
(Personally I hardly ever deinterlace my VHS captures, unless I want to resize or have another specific reason for deinterlacing). -
Thanks Sharc. Is there anything I can do to raise the sound level or is it the nature of the tape.
Yes I will use QTGMC if I go that way. Once I get to the restoration stage I will try both. -
Thanks jagabo. I will check the volume before I encode in future.
-
My tv's deinterlacer isn't the best and still left lines on the football shirts numbers, so I've tried a script but I'm not sure if my QTGMC and MCTemporalDenoise settings are correct? Any advice would be grateful.
I had to convert the colorspace to YV12 as I get a QTGMC (v 3.32) error message on AvsPmod without the conversion. Is this ok? I thought this version worked with YV12 & YUY2. -
QTGMC and MCTemporalDenoise settings are correct?
I had to convert the colorspace to YV12 as I get a QTGMC
ConvertToRGB32(interlaced=true) -
Why are you converting to RGB at the end? And encoding as interlaced? Your video is no longer interlaced after QTGMC, it's progressive at 50 fps.
Regarding the cropping, I would AddBorders to make the frame 704x576 rather than 720x576. The 4:3 frame is held in a 704x576 portion of an ITU video cap.
There's no "right" setting for MCTemporalDenoise(). It's a matter of taste. -
Thanks lollo & jagabo. Sorry, I don't know why I put in interlaced= true.
I thought I had to convertToRGB at the end of the script because I had previously done convertToYV12? Am I right in thinking I can leave that line out altogether.
Also I was sloppy encoding interlaced. I will have another go and take all the advice you have both given me.
I have tried to ConvertToYV16() but I get an error message. I will post it. -
There's no need to convert to RGB at the end. It's a waste of time and a needless loss of precision because you are converting back to YV12 when you encode.
Try something like:
Code:AviSource("TAPE 20 13-11.avi") AssumeTFF() ConvertToYV12(interlaced=true) ColorYUV(gain_y=32, off_y=-30, gamma_y=25) SeparateFields().vInverse().Weave() QTGMC(preset="slow", Sharpness=0.7)#, EZDenoise=1.0, DeNoiseMC=true) TurnRight().QTGMC(InputType=2).vInverse().TurnLeft() edgemask = mt_edge(mode="prewitt", thy1=150, thy2=150).mt_expand().mt_expand().Blur(1.4).Blur(1.4).Blur(1.4) Overlay(last, Dehalo_alpha(rx=4.0, ry=3.0, BrightStr=0.8, DarkStr=0.8), mask=edgemask) MergeChroma(last, Spline36Resize(width/2,height).aWarpSharp2(depth=20).Spline36Resize(width,height)) ChromaShiftSP(x=-2, y=0) Crop(8,6,-20,-10).AddBorders(6,8,6,8) prefetch(8) # enable multithreading (8 threads) in AviSynth+
Last edited by jagabo; 13th Nov 2022 at 18:34.
-
Thanks jagabo. Your deinterlaced clip has certainly removed the lines on the football shirts numbers . Are most tv's poor at deinterlacing? Do other members here keep it interlaced and play it through another tv box that deinterlaces the video better.
You mentioned in your previous post add borders to make the frame 704x576 and I'm guessing you addressed this in your script. I'm just not sure how you achieve this?
I noticed your using Avisynth+ I'm using version 2.6.0 Would I be better served with Avisynth+
Sorry for all the questions. Thanks. -
Those lines aren't an interlacing issue. I think one of the heads of your playback or recording deck is reacting differently to high contrast, high contrast, transitions. The SeparateFields().vinverse().Weave() cleaned that up.
I played around a bit more and came up something that looks a little better:
Code:AviSource("TAPE 20 13-11.avi") AssumeTFF() ConvertToYV12(interlaced=true) ColorYUV(gain_y=32, off_y=-25, gamma_y=25) SeparateFields().vInverse().Weave() QTGMC(preset="slow", Sharpness=0.7)#, EZDenoise=1.0, DeNoiseMC=true) TurnRight().QTGMC(InputType=2).vInverse().TurnLeft() edgemask = mt_edge(mode="prewitt", thy1=220, thy2=220).mt_expand().mt_expand().Blur(1.4).Blur(1.4).Blur(1.4) Overlay(last, Dehalo_alpha(rx=4.0, ry=3.0, BrightStr=0.8, DarkStr=0.8).Blur(0.5), mask=edgemask) MergeChroma(last, Spline36Resize(width/2,height).aWarpSharp2(depth=20).Spline36Resize(width,height)) ChromaShiftSP(x=-2, y=0) Crop(8,6,-20,-10).AddBorders(6,8,6,8)
By the way, the second QTGMC (used here and the earlier script) is used to reduce the aliasing around the edges of the orange text on the blue shirt.
Regarding the 704 frame with: I kept your Crop values but added 8 less on the left and right with AddBorders (6 instead of 14). -
Thanks jagabo. Fantastic I will try that script and post it. The first full video that I encoded and watched on my tv looked good except for the numbers on the football shirt, which I found odd. What you explained regarding lines on the shirt makes sense, I wrongly assumed it was a interlacing problem.
Thank you for spending time on the script and explaining the reasons why. I really do appreciate it.
I'm hoping in the coming weeks and months that I get to grips with Avisynth, it never seems to sink in! Thank you for your patience.
Similar Threads
-
Any Video Converter
By jarod1005 in forum Newbie / General discussionsReplies: 2Last Post: 16th Feb 2022, 09:00 -
video converter any video converter has basic settings video bit rate as -1
By jraju in forum Newbie / General discussionsReplies: 2Last Post: 26th Jul 2020, 11:15 -
best m4p converter?
By mol3000 in forum AudioReplies: 8Last Post: 4th Dec 2019, 16:10 -
Best converter for subtitles?
By wetware05 in forum Newbie / General discussionsReplies: 0Last Post: 19th Jul 2019, 06:11 -
A's video converter subtitles(?)
By Rasina74 in forum Video ConversionReplies: 5Last Post: 3rd Feb 2018, 12:09