Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
22nd April 2021, 14:16 | #21 | Link | |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Quote:
For your use case, DGAVCDec is adequate and free. Assuming a usage period of 5 years, the cost for DGDecNV is $3 per year. That's close enough to free for practical purposes. You can use your GPU for encoding and get a large speed increase. Given the low quality of your capture and your use of fast presets for x264, there would be no significant downside to GPU encoding. Last edited by videoh; 22nd April 2021 at 14:19. |
|
22nd April 2021, 15:07 | #23 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Not quite all NVIDIA GPUs are supported, though (or, rather, not all NVIDIA GPUs have the functionality DGDecNV needs). I was a little miffed to find that my new laptop didn't, and might have considered a different model if I'd known at the time (the NVIDIA datasheets weren't clear enough; they've since been updated). Now I do an ffmpeg remux to .mkv and then use ffmpegsource2. It's about as fast as DGDecNV was on my previous 10-year-old laptop.
|
22nd April 2021, 20:59 | #24 | Link |
Registered User
Join Date: Dec 2008
Posts: 99
|
I decided to do a comparison between DGAVC and LWLibavVideoSource on the same source - the UCLA vs Gonzaga Final Four game. It's the complete game; source clip is almost 3 hours long. A few of observations:
1) When using DGAVC to load my clip into VirtualDub so I can edit out the commercials, it is incredibly slow. It took me at least twice as long to do my edits that it would have with LWLibavVideoSource because scanning through the timeline was very sluggish. This is probably a deal-breaker for me - would DGDecNV be any better? If it was a movie where I just had to trim the beginning and end, it would be fine, but if I have to make a bunch of edits, it takes too long. 2) Using the same settings in MeGUI (bitrate @ 3500, two-pass), with DGAVC I got ~50 fps on pass 1 and ~47 fps on pass 2. With LWLibavVideoSource it was ~102 fps on pass 1 and ~56 on pass 2. Not the end of the world, just noting it. Only difference between the two scripts was in the 'video' loading: Code:
v=AVCSource(dga="D:\Video\UCLA-Gonzaga.dga", i420=yes, deblock=yes) a=NicAC3Source("D:\Video\UCLA-Gonzaga PID 1100 2_0ch 48KHz 384Kbps DELAY -68ms.ac3").Normalize() Code:
v=LWLibavVideoSource("D:\Video\UCLA-Gonzaga.mkv",fpsnum=30000, fpsden=1001) a=NicAC3Source("D:\Video\UCLA-Gonzaga.ac3").Normalize() I should also note that the clip I shared earlier is not the best quality, but mostly because my CBS affiliate isn't that great. I've noticed that on other captures before. Other channels are much clearer. It was captured using the highest settings allowed on my device. |
22nd April 2021, 23:05 | #25 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,905
|
There's no need to load it in virtual dub, you can get the frame from the DGAVCDecode GUI which is faster.
About the fact that you shouldn't deinterlace unless you really need to, that's true, you can just keep it as it is, put the --tff flag there and call it a day. The resulting file in x264 will also be smaller 'cause it's interlaced |
23rd April 2021, 00:02 | #26 | Link |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
|
Tried the usual source filters for this uploaded source, and like FranceBB I found that neither FFVideoSource nor LWLibavVideoSource can handle this source.
Even after repacking the source to MKV these source filters had problems. Atak's SeekTester showed tons of corrupted frames, not useable at all. Then I tried my pet source filter DSS2Mod with LAV Filters, and this was a big surprise. Using "preroll=50" (instead of my usual "preroll=15") I got a clean output without any errors at a very nice speed. But generally I agree that TS files (especially if they are HD interlaced) should be repacked to MKV or MP4 before applying any processing. The TS format is aimed at preventing Audio / Video sync problems for broadcasts over SAT or terrestrial links. But once these files are captured to your HDD in a TS container, this TS format does no longer make any sense. Even Myrsloik urged users in an earlier post to repack TS files to a "real" container before applying any further processing. Last edited by manolito; 23rd April 2021 at 00:04. |
23rd April 2021, 02:32 | #27 | Link | |
Registered User
Join Date: Dec 2008
Posts: 99
|
Quote:
All 1080i TS files that I tested came back with errors. Everything else -- 720p60 TS and remuxed 1080i MKVs from those same 1080i TS files -- came back OK. Even the MKV of the One Shining Moment TS file that I posted earlier didn't return any errors. |
|
23rd April 2021, 13:11 | #29 | Link | ||
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Quote:
Code:
D:\Downloads>avsmeter64 "2021 One Shining Moment.avs" AVSMeter 2.7.5 (x64) - Copyright (c) 2012-2017, Groucho2004 AviSynth+ 3.7.0 (r3382, 3.7, x86_64) (3.7.0.0) Number of frames: 12130 Length (hh:mm:ss.ms): 00:03:22.369 Frame width: 1920 Frame height: 1080 Framerate: 59.940 (60000/1001) Colorspace: YV12 Frames processed: 12130 (0 - 12129) FPS (min | max | average): 331.9 | 849.1 | 783.6 Memory usage (phys | virt): 307 | 659 MiB Thread count: 19 CPU usage (average): 12% Time (elapsed): 00:00:15.479 Quote:
It's not a coincidence that the guys pushing re-muxing to MKV are the same ones who have source filters that fail on transport streams. |
||
23rd April 2021, 18:45 | #33 | Link | |
Registered User
Join Date: Jul 2018
Posts: 450
|
Quote:
Edit: For this sample the bitstream framerate doesn't match the container one. In that case ffmpeg takes the bitstream framerate into account while mkvmerge/mkvtoolnix takes the conatainer one. Last edited by StvG; 23rd April 2021 at 18:49. |
|
23rd April 2021, 18:58 | #34 | Link | |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
|
Quote:
And why in hell it was decided to use transport streams for BluRay is beyond me. Bad design decision IMO... https://forum.doom9.org/showthread.p...71#post1921871 |
|
24th April 2021, 00:25 | #35 | Link | |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
|
Quote:
Using MKVToolNix to repack the TS source to MKV solves it. But out of curiosity I did some more tests, and the results were a little surprising: When using ffmeg to convert the TS file to either MKV or MP4 the conversion finishes, but I get this error: [mpegts @ 04e18240] PES packet size mismatch [mpegts @ 04e18240] Packet corrupt (stream = 1, dts = 18247954) And sure enough the resulting MKV or MP4 files had seek problems. I also tried MP4Box to repack the TS to an MP4 file, but no luck either. What did fix it to my surprise was treating the source TS with TS-Doctor. TS-Doctor did not find any issues with the source, it did not try to repair anything. But creating a "fixed" TS file (which just removed padding which is always present in captured transport streams) solved all previous issues. The fixed TS file did no longer have any seek problems in Atak's SeekTester, and a test conversion using the latest LWLibavVideoSource by HolyWU was quite fast and the result was perfect. |
|
24th April 2021, 08:01 | #36 | Link |
Registered User
Join Date: Feb 2011
Posts: 331
|
I always run a ts file through MeGUI's or staxrip's eac3to. If there are inconsistencies in the file, they are "corrected" meaning the audio will stay in sync with the video. You can read in the log file if any corrections are applied.
|
|
|