Quantcast Can I Apply These Filters In ffmpeg instead of Vdub? - digitalFAQ Forum
Go Back    Forum > Featured > General Discussion

Reply
 
LinkBack Thread Tools
  #1  
08-02-2021, 08:19 PM
trevorc4113 trevorc4113 is offline
Premium Member
 
Join Date: Jul 2021
Posts: 1
Thanked 0 Times in 0 Posts
Hi all,

I've been following this forum for months now (thanks for all the knowledge you share here) and decided it was time to become a member - this is my first post:

I'm hoping to get some help with ffmpeg coding. I'd like to skip my Vdub filter process (step 2) below and instead apply those basic filters in ffmpeg, since I'm opening all my Vdub-filtered .avi files in ffmpeg to convert them to ProRes .mov files anyway (step 3); it'd be great to only do one video conversion instead of two!

My current workflow is:

1.) Capture:

VCR S-video output and RCA audio output ->
Roxio USB dongle ->
Startech USB 3.0 ExpressCard on Dell Latitude e5520 (Intel Core i5-2520M CPU @ 2.50GHz, 3GB RAM) running Windows XP SP3 ->
Virtual VCR with HuffYUV v1.3.1 compression, YUY2, 720x480px, 29.97fps, interlaced, NTSC. PCM 16-bit 48 kHz Stereo audio ->
Save as .AVI file.
*No filters or AV Sync settings turned on in Virtual VCR.

2.) Open .AVI file in VirtualDub 1.9.11 for basic filtering:

- Video in Full Processing Mode
- Audio set to Direct Stream Copy
- Compression set to Huffyuv v2.1.1 - CCESP Patch v0.2.2
- Filters:
----De-Interlace: Yadif 2x, Upper Field First
----Resize: Set to 720x480px. Adjust Cropping setting on filter to crop left/right black bars off (16 pixels total. Usually 11px on left side, 5px on right).
----Resize: Set to 640x480px

- Save as .AVI
*Please see attached screenshot for exact Vdub filter settings

3.) Convert to ProRes .MOV in Terminal on Mac OSx using following code:

ffmpeg -i VIDEOFILENAME.avi \
-c:v prores_ks \
-profile:v 2 \
-vendor apl0 \
-bits_per_mb 8000 \
-pix_fmt yuv422p10le \
-acodec copy \
VIDEOFILENAME_proRes422.mov

4.) Import .MOV files into Adobe Premiere to create final edit

From what Iíve read, it seems possible to apply the three filters in ffmpeg, but the coding process is very foreign to me and Iím struggling to set it up correctly.

Thank you for your help!
Trevor

P.S. I switched to Virtual VCR for capturing after trying countless methods in Vdub 1.9.11 to get video/audio to sync up and never could. Virtual VCR worked perfectly on the first capture with zero headaches.

I'm sure someone will mention my Roxio USB dongle but since Iím not having any capture issues, I will work with this dongle for now. I plan to upgrade the less desirable components in my capture rig once finances allow it.


Attached Images
File Type: jpg Trevor-Crump-Vdub-filters.jpg (50.9 KB, 1 downloads)
File Type: jpg Trevor-Crump-Vdub-filters.jpg (50.9 KB, 2 downloads)
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
08-02-2021, 11:45 PM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 11,086
Thanked 1,969 Times in 1,698 Posts
You may think you're "not having issues" with that Roxio (Easycap) card, but consider this: you may not have to filter, if the capture was better. So you're somewhat wasting your time. Worse yet, you cannot filter out errors from Easycap captures. You're essentially starting out with low quality captures.

Yadif is a not-great deinterlacer. QTGMC is ideal.

I think the entire process needs to be thrown out.

Instead, use Avisynth x64+ to both (1) QTGMC, (2) crop/pad aka mask.
This can be done in Hybrid, but cropping and padding can act screwy in Hybrid, so an actual simple script is suggested.

Note that if you're just cropping out pixels, you are likely (1) causing upsize quality degradation, (2) messing with aspect ratio. Mask (cover with black), don't crop. A few-pixel border is far better than the alternative butchery of video, especially when combined with low quality deinterlaces like Yadif that alias and jaggy.

After Avisynth, use VirtualDub2 to both encode out to ProRes422, and batch the entire encode operation.

You'll remove an extra encode to a lossless, go straight from the capture to the ProRes422 file.

Note: Yes, yes, it's not the "official" ProRes codec, but the reverse-engineered version. Some people get all silly about it, without realizing most H.264 and MPEG encoders are the same, unofficial. "Mac people" are all uppity about "official" at times, and it's just cluelessness talking. I've yet to see any difference in practice. I enjoy my Macs (and Linux and Windows and Android and others), but some of the "Macphiles" just irritate me with their stupidity. Please don't be one of them.

I've done this many times.

- Did my advice help you? Then become a Premium Member and support this site.
- Find television shows, cartoons, DVDs and Blu-ray releases at the TVPast forums.
Reply With Quote
  #3  
08-03-2021, 10:30 AM
hodgey hodgey is online now
Free Member
 
Join Date: Dec 2017
Location: Norway
Posts: 1,171
Thanked 296 Times in 254 Posts
Yadif deinterlacing and scaling perfectly doable with ffmpeg yeah. QTGMC with Hybrid/Avisynth will give a nicer result though as mentioned if you feel like putting in the effort.

Yadif was originally designed to be a compromise between acceptable quality and being able to be used during real-time playback so it's not all that sofisticated. Ffmpeg does also has some other deinterlacing options, nnedi3 may be the nicest one available of those though the implementation ffmpeg implementation is very slow as far as I know. The same algorithm is used under the hood by QTGMC but QTGMC combines it with a bunch of other things like motion compensation to improve the result.

Roxio have changed the makeup of their capture dongles a bunch of times, the early ones were similar to the original easycap (i.e empia bridge/audio + SAA7113 video chip), but no idea what the current one are. I presume you are capturing from either a SVHS deck or a DVD-recorder combo since you mention using S-Video?
Reply With Quote
Reply




Tags
convert, ffmpeg, filter, videotape, virtualdub

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ffmpeg, VirtualDub alternative Hackerpcs Capture, Record, Transfer 0 08-01-2020 07:33 PM
Do different variations of PAL apply to videotape? Etcetera Videography: Cameras, TVs and Players 2 03-03-2020 09:26 PM
Does HS-HD2000U TBC apply to input/output or just VHS/S-VHS? analog2digital Restore, Filter, Improve Quality 1 02-22-2020 02:51 AM
Avisynth ffmpeg only green frames? knumag Restore, Filter, Improve Quality 16 10-27-2018 10:23 AM

Thread Tools



 
All times are GMT -5. The time now is 01:46 AM