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, 2 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: 13,620
Thanked 2,458 Times in 2,090 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.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #3  
08-03-2021, 10:30 AM
hodgey hodgey is offline
Free Member
 
Join Date: Dec 2017
Location: Norway
Posts: 1,683
Thanked 449 Times in 385 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
  #4  
12-12-2023, 12:11 PM
hajes29a hajes29a is offline
Premium Member
 
Join Date: Dec 2023
Location: Earth
Posts: 38
Thanked 0 Times in 0 Posts
I wonder about
Code:
ffmpeg
processing as well because it is all native Linux, many filters are written for CUDA/OpenCL. I really like VirtualDub/AVIsynth combo since I first found it on Doom9 back in 2001. It has just one major issue WINDOWS :-P The whole carpware that never was fixed since MS DOS 6.22 ;-)

Any kind of high computing is 2-10x faster in Linux (especially on highly computing optimized Clear Linux) thanks to optimized kernel. My old BlackMagic Infinity Pro suppose to work in Linux. Last capture I did with crap consumer player was on Dell T5500 workstation with Win8.1

I just purchased refurbished JVC 9600, and getting ready for new round. I am not sure how Win 10 will work.
Reply With Quote
Reply




Tags
convert, ffmpeg, filter, videotape, virtualdub

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtualdub HuffYUV vs. FFV1 (ffmpeg)? Emde Capture, Record, Transfer 2 01-16-2023 08:57 PM
AviSynth filters or VirtualDub filters? cdisimone Restore, Filter, Improve Quality 0 09-03-2020 10:37 PM
Ffmpeg, VirtualDub alternative Hackerpcs Capture, Record, Transfer 0 08-01-2020 07:33 PM
VirtualDub 1.9.11 + filters for Mac? Steve B Capture, Record, Transfer 2 06-11-2020 02:02 AM
FFMPEG, AviSynth, VirtualDub - Which tool for which purpose? naripeddi Restore, Filter, Improve Quality 2 07-05-2018 02:18 AM

Thread Tools



 
All times are GMT -5. The time now is 02:41 AM