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. |
29th May 2020, 00:01 | #2601 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
I've run into a problem with FFmpegSource, and I'm not sure if it isn't just something which is already understood to happen and just doesn't affect most users.
https://filebin.net/ycobtv5flicijv2e/trim.ts?t=9ldisa80 I can open this file with VirtualDub via Avisynth and ffmpegsource2 and I can step forward through it frame-by-frame without problems. The trouble starts when I try to step through it backwards - once they fall out of whatever caches they might be in (e.g. by advancing past frame 50), frames 24 and 25 become duplicates of frame 26. This is a problem because the filters I want to call on this clip do a lot of random access and the end result suffers from these duplicates even when stepped through forwards. seekmode = 0 fixes it, but is impractical since the source file has 180000 frames and it takes several minutes to seek into the middle of the file. Is there any other way to avoid this, or is there another source filter (edit: an x64 one, since my project is ravenous for RAM) for h.264/.ts that won't exhibit this behaviour? (apart from DGIndexNV, which I know would work fine but my new laptop isn't compatible with it). Last edited by wonkey_monkey; 29th May 2020 at 00:36. |
29th May 2020, 13:13 | #2604 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Quote:
You can also exhibit this behaviour by adding the "reverse" filter and stepping through forwards. Last edited by wonkey_monkey; 29th May 2020 at 13:23. |
|
29th May 2020, 16:18 | #2605 | Link |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
|
For me seeking in transport stream has always been problematic, even when using an indexing source filter. I made it a habit to repack transport streams into an MKV container before I do anything else to them.
Tested your sample, and after using MKVToolNix to repack the file all my source filters (even DSS2Mod) behaved nicely. |
29th May 2020, 16:42 | #2606 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,374
|
Quote:
threads=1 looks ok, but slower Does that computer not have nvidia card ? Interesting that gpu decoding with decoder="h264_cuvid" works (or prefer_hw=1) , but intel QS does not on that clip (prefer_hw=2) This did not work for me using ffms2 or lsmash x64 (same problem); and dss2 x64 drops the last frame |
|
29th May 2020, 16:56 | #2607 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
In my experience it's better to use ffmpeg to remux ts to mkv, that is the default handling in staxrip, mkvmerge is fine for playback but not so for editing, causes sync issues.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
29th May 2020, 18:05 | #2608 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Well this is a minefield...
Results of remuxing to MKV (with ffmpeg): LWLibavVideoSource: still skips frame 55 LSmashVideoSource: doesn't open this container FFMpegSource2: seems to work okay so far Results of remuxing to MP4 (with ffmpeg): LWLibavVideoSource: still skips frame 55 LSmashVideoSource: First two frames get repeated, a couple of later frames get skipped. Definite no-go. FFMpegSource2: Freezes on the first few frames, skips a couple of later frames (despite claiming to be frame accurate on Avisynth wiki) -------------------------------------------------------------------------------------------------------- Is this all as expected? Last edited by wonkey_monkey; 29th May 2020 at 18:07. |
29th May 2020, 18:34 | #2609 | Link |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
It may be the method you're using to rip the Blu-ray. If I have to, I make a full-disc decrypted backup with MakeMKV (arguably you could maybe do a more restricted rip using BlurayTestAndDecrypt and libaacs/KEYDB.cfg, but you'd lose the disc structure), and then use mkvmerge to remux the main title to MKV by giving it the index.bdmv to parse. No demuxing to elementary streams and then remuxing them into other containers, if that's where the .ts sample came from.
I say this because there was a point, not sure how long ago exactly or if it's been fixed since, that MakeMKV's Matroska output acted strangely when given to source filters (or maybe it was eac3to? Like I said, it was a while ago). The simplest way to sidestep the problem is not to let MakeMKV make an MKV of whatever you're ripping. |
29th May 2020, 19:37 | #2610 | Link | |
RipBot264 author
Join Date: May 2006
Location: Poland
Posts: 7,815
|
Quote:
__________________
Windows 7 Image Updater - SkyLake\KabyLake\CoffeLake\Ryzen Threadripper |
|
29th May 2020, 21:06 | #2611 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
I'd forgotten about Seek Tester! Definitely going to put that to some good use.
Does it seek forward and store a hash per frame, or something, and then seek randomly and test the hashes to see which frames are returned? |
22nd August 2020, 13:01 | #2615 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
FFMS 2.40-RC1
Test it. Don't bitch about missing libraries (apart from zlib but I think I got that one included).
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
22nd August 2020, 13:35 | #2616 | Link | |
Registered User
Join Date: Jan 2018
Posts: 2,156
|
Quote:
|
|
22nd August 2020, 14:46 | #2617 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
My results:
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 22nd August 2020 at 14:49. |
22nd August 2020, 16:07 | #2618 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
What's different in the stvg builds? From what I can tell the results should be more similar.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet Last edited by Myrsloik; 22nd August 2020 at 16:09. |
22nd August 2020, 17:55 | #2620 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Impressive update, thanks.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
Thread Tools | Search this Thread |
Display Modes | |
|
|