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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th April 2020, 04:01   #2581  |  Link
Stereodude
Registered User
 
Join Date: Dec 2002
Location: Region 0
Posts: 1,370
Is ffms2 supposed to be frame accurate when seeking?
Stereodude is offline   Reply With Quote
Old 5th April 2020, 07:31   #2582  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 158
Another ffms2 update:
- ffms2@bda9eeb;
- ffmpeg n4.3@72be5d4661;
- zlib 1.2.11;
- dav1d 0.6.0.
StvG is offline   Reply With Quote
Old 5th April 2020, 10:20   #2583  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 2,264
Quote:
Originally Posted by Stereodude View Post
Is ffms2 supposed to be frame accurate when seeking?
Yes, except when it's not. It mostly depends on the container and a bit on the codec.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 5th April 2020, 15:37   #2584  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 8,517
Quote:
Yes, except when it's not.
Or to put it another way,

No, except when it is.
__________________
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 ???

Last edited by StainlessS; 5th April 2020 at 18:43.
StainlessS is offline   Reply With Quote
Old 11th April 2020, 02:27   #2585  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 200
Quote:
Originally Posted by gpower2 View Post
same error with StvG ver

video test: https://drive.google.com/file/d/1Gze...ew?usp=sharing

log:
Quote:
-[Information] Versions
--[Information] MeGUI: 2913 x64
--[Information] MeGUI Debug Data: available
--[Information] Update Check: development update server
-[Information] Operating System: Windows 10 Pro 1909 x64 (10.0.18363.720)
-[Information] .NET Framework: 4.0 (4.0.0.0)
-[Information] .NET Framework: 4.8 (4.8.03752)
-[Information] Microsoft Visual C++ 2005 x64: 8.0.61000
-[Information] Microsoft Visual C++ 2005 x86: 8.0.61001
-[Information] Microsoft Visual C++ 2010 x64: 10.0.40219
-[Information] Microsoft Visual C++ 2010 x86: 10.0.40219
-[Information] Microsoft Visual C++ 2012 x64: 11.0.61030
-[Information] Microsoft Visual C++ 2012 x86: 11.0.61030
-[Information] Microsoft Visual C++ 2013 x64: 12.0.40664
-[Information] Microsoft Visual C++ 2013 x86: 12.0.40664
-[Information] Microsoft Visual C++ 2015-2019 x64: 14.24.28127
-[Information] Microsoft Visual C++ 2015-2019 x86: 14.24.28127
-[Information] Redistributables
-[Information] DPI: 100% (96/96)
-[Information] Resolution: 1366x768
-[Information] Primary Screen: True
-[Information] Monitor 1
--[Information] System Information
-[Information] Update detection
-[Information] Haali Media Splitter: 1.13.138.14 (14-04-2013)
-[Information] Haali DSS2: 2.0.0.13 (01-01-2019)
-[Information] ICSharpCode.SharpZipLib: 0.85.5.452 (07-08-2008)
-[Information] MediaInfo: 18.05.0.0 (08-05-2018)
-[Information] SevenZipSharp: 0.64.3890.29348 (02-01-2011)
-[Information] 7z: 9.20 (18-11-2010)
--[Information] Component Information
-[Information] Version: 1.0.2847.0
-[Information] Date: 06-05-2018
-[Information] Interface: 3
-[Information] AviSynth Wrapper
-[Information] AviSynth Status: ignored as portable build is forced
-[Information] AviSynth
--[Information] [4/11/2020 8:02:09 AM] Cannot use update server http://megui.org/auto/. Reason: Update server is not available
--[Information] [4/11/2020 8:02:09 AM] Cannot use update server http://megui.tmebi.de/test/. Reason: Update server is not available
--[Information] [4/11/2020 8:02:09 AM] Using cached update config and server: http://megui.tmebi.de/test/
--[Information] [4/11/2020 8:02:09 AM] No package requires an update
-[Information] File Version: 3.5
-[Information] File Date: 02-04-2020
-[Information] File Name: AviSynth+ 3.5 (r3106, 3.5, x86_64)
-[Information] File Path: e:\megui-2913-64\avisynth.dll
-[Information] AviSynth Version: AviSynth+ 3.5 (r3106, 3.5, x86_64)
-[Information] AviSynth+: true
-[Information] AviSynth MT: true
-[Information] AviSynth Status: active
-[Information] AviSynth portable
--[Information] AviSynth Information
-[Information] FileIndexer
--[Information] [4/11/2020 8:02:25 AM] MediaInfo
---[Information] File: C:\Users\84945\Downloads\Video for test\Hikoutei - King Gnu.ts
-[Information] Format: MPEG-TS
-[Information] FileSize: 147849216
-[Information] PlayTime: 00:04:22.912
---[Information] General
-[Information] ID: 4352
-[Information] StreamOrder: 0-0
-[Information] CodecID: 27
-[Information] Format: AVC
-[Information] FormatInfo: Advanced Video Codec
-[Information] Width: 1440
-[Information] Height: 1080
-[Information] FrameCount: 7852
-[Information] FrameRate: 29.970
-[Information] Duration: 00:04:21.995
-[Information] ScanType: Interlaced
-[Information] Bits Depth: 8
-[Information] AspectRatio: 1.778
-[Information] AspectRatioString: 16:9
-[Information] PixelAspectRatio: 1.333
-[Information] Delay: 1079.911
---[Information] Video
-[Information] ID: 4353
-[Information] StreamOrder: 0-1
-[Information] CodecID: 15
-[Information] Format: AAC
-[Information] FormatVersion: Version 2
-[Information] FormatInfo: Advanced Audio Codec
-[Information] FormatProfile: LC
-[Information] Muxing Mode: ADTS
-[Information] SamplingRate: 48000
-[Information] SamplingRateString: 48.0 kHz
-[Information] Channels: 2
-[Information] ChannelsString: 2 channels
-[Information] ChannelPositionsString2: 2/0/0
-[Information] BitRateMode: VBR
-[Information] Delay: 1079.911
-[Information] [4/11/2020 8:02:26 AM] The language information is not available for this track. The default MeGUI language has been selected.
---[Information] Audio
-[Information] Log for job1 (idx, Hikoutei - King Gnu.ts -> Hikoutei - King Gnu.ts.ffindex)
--[Information] [4/11/2020 8:02:28 AM] Started handling job
--[Information] [4/11/2020 8:02:28 AM] Preprocessing
--[Information] [4/11/2020 8:02:28 AM] Job command line: "E:\MeGUI-2913-64\tools\ffms\ffmsindex.exe" -t -1 -f "C:\Users\84945\Downloads\Video for test\Hikoutei - King Gnu.ts" "C:\Users\84945\Downloads\Video for test\Hikoutei - King Gnu.ts.ffindex"
--[Information] [4/11/2020 8:02:28 AM] Process started
--[Information] [4/11/2020 8:02:28 AM] Standard output stream
--[Information] [4/11/2020 8:02:28 AM] Standard error stream
---[Information] [4/11/2020 8:02:31 AM] Writing index... done.
--[Information] [4/11/2020 8:02:35 AM] MediaInfo
---[Information] File: C:\Users\84945\Downloads\Video for test\Hikoutei - King Gnu.ts.ffindex
-[Information] FileSize: 85117
---[Information] General
--[Information] [4/11/2020 8:02:35 AM] Postprocessing
---[Information] [4/11/2020 8:02:40 AM] Deleting intermediate files
--[Information] [4/11/2020 8:02:40 AM] Job completed
-[Information] AVS Script Creator
--[Warning] [4/11/2020 8:02:40 AM] Could not read frame: FFVideoSource: Out of bounds frame requested
--[Warning] [4/11/2020 8:02:41 AM] Could not read frame: FFVideoSource: Out of bounds frame requested
kedautinh12 is offline   Reply With Quote
Old 11th April 2020, 02:30   #2586  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 200
Quote:
Originally Posted by l33tmeatwad View Post
FFMS2 2.23.1 (w/ FFmpeg 4.2.2)
Static Libs Build (x86 & x64) | Sources
use normally with this ver

Last edited by kedautinh12; 11th April 2020 at 05:18.
kedautinh12 is offline   Reply With Quote
Old 11th April 2020, 11:34   #2587  |  Link
gpower2
gMKVExtractGUI author
 
gpower2's Avatar
 
Join Date: Aug 2003
Location: Greece / Thessaloniki
Posts: 224
Quote:
Originally Posted by kedautinh12 View Post
same error with StvG ver

video test: https://drive.google.com/file/d/1Gze...ew?usp=sharing

log:
I just provided a build with the latest versions of all dependencies at the time. I haven't tampered with the code in the slightest.

I guess it's a regression bug or something.

However, for .ts files, I recommend using LSMASH source filter, since it seems to be frame accurate instead of FFMS2, at least in my experience.
gpower2 is offline   Reply With Quote
Old 9th May 2020, 09:05   #2588  |  Link
Nik92
Registered User
 
Join Date: Apr 2020
Posts: 2
Hi,

I have a captured video in HuffYUV and when I open it using FFmpegSource2 in Avisynth+ some frames are dropped which leads to audio to be out of sync.

No such issue when using AVISource, 319405 frames total, 25 fps:


But with FFmpegSource2 319008 frames total, 397 frames are dropped, 24.969 fps:



Also no dropped frames if I open with FFmpegSource2 the same video but encoded in FFV1.

Is it just me or FFmpegSource2 is not working correctly with HuffYUV?

Thanks
Attached Images
  
Nik92 is offline   Reply With Quote
Old 9th May 2020, 10:53   #2589  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 2,264
Quote:
Originally Posted by Nik92 View Post
Hi,

I have a captured video in HuffYUV and when I open it using FFmpegSource2 in Avisynth+ some frames are dropped which leads to audio to be out of sync.

No such issue when using AVISource, 319405 frames total, 25 fps:


But with FFmpegSource2 319008 frames total, 397 frames are dropped, 24.969 fps:



Also no dropped frames if I open with FFmpegSource2 the same video but encoded in FFV1.

Is it just me or FFmpegSource2 is not working correctly with HuffYUV?

Thanks
Huffyuv in avi should always work perfectly. Which ffms2 version did you try?

Does the captured file by any chance contain exactly 397 dropped frames?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 9th May 2020, 13:43   #2590  |  Link
zorr
Registered User
 
Join Date: Mar 2018
Posts: 230
My experience with ffmpegsource and dropped frames in Huffyuv clips is that they are skipped (tests done with Vapoursynth's core.ffms2.Source).

VirtualDub however shows them as duplicate frames so what I did was preprocess the video with VirtualDub so that the dropped frames are included as duplicates. It would be nice if there was a more elegant way.

Last edited by zorr; 9th May 2020 at 13:46.
zorr is offline   Reply With Quote
Old 9th May 2020, 23:05   #2591  |  Link
Nik92
Registered User
 
Join Date: Apr 2020
Posts: 2
Quote:
Originally Posted by Myrsloik View Post
Huffyuv in avi should always work perfectly. Which ffms2 version did you try?
I tried with 2.23.1 and the one provided by gpower2 a few posts earlier.
Quote:
Originally Posted by Myrsloik View Post
Does the captured file by any chance contain exactly 397 dropped frames?
I'm not sure how to get the amount of dropped frames but when capturing I think I remember there was this number (or very close) of inserted frames reported by VirtualDub.


Quote:
Originally Posted by zorr View Post
My experience with ffmpegsource and dropped frames in Huffyuv clips is that they are skipped (tests done with Vapoursynth's core.ffms2.Source).

VirtualDub however shows them as duplicate frames so what I did was preprocess the video with VirtualDub so that the dropped frames are included as duplicates. It would be nice if there was a more elegant way.
Could you please share what preprocessing was done with VirtualDub?
Nik92 is offline   Reply With Quote
Old 10th May 2020, 20:44   #2592  |  Link
zorr
Registered User
 
Join Date: Mar 2018
Posts: 230
Quote:
Originally Posted by Nik92 View Post
Could you please share what preprocessing was done with VirtualDub?
Load the video into VirtualDub and set the compression to Huffyuv. Select the "Fast recompress" option at the Video menu. Then save as AVI.

The resulting file no longer has dropped frames (at least VirtualDub cannot find them anymore) and they are replaced as duplicate frames.
zorr is offline   Reply With Quote
Old 10th May 2020, 21:28   #2593  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,247
AVI/VFW is so 90s.
videoh is offline   Reply With Quote
Old 22nd May 2020, 17:35   #2594  |  Link
stranno
Registered User
 
Join Date: Jul 2011
Posts: 39
I have been using FFMS2 + ProRes for years and everything works fine. But now I have switched to h264/h265 and FFMS2 struggles with the audio. Seeking, using any player (MPC-HC), and trimming, using NVEncc, takes A LOT of time.

Using FFVideoSource alone I have no problems at all, it seeks perfectly fine and it has a top-notch performance. Extracing the audio track and loading it using FFAudioSource also works. But loading the audio track from the MKV makes the decoder to struggle like hell.

I'm using the latest StvG build (from this page of the thread) but I also have tried more builds. Same problems.

Video seems to be fine, its MKV + h264 + AAC LC ADTS.

Any idea?

Last edited by stranno; 22nd May 2020 at 18:20.
stranno is offline   Reply With Quote
Old 22nd May 2020, 19:12   #2595  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 2,264
Quote:
Originally Posted by stranno View Post
I have been using FFMS2 + ProRes for years and everything works fine. But now I have switched to h264/h265 and FFMS2 struggles with the audio. Seeking, using any player (MPC-HC), and trimming, using NVEncc, takes A LOT of time.

Using FFVideoSource alone I have no problems at all, it seeks perfectly fine and it has a top-notch performance. Extracing the audio track and loading it using FFAudioSource also works. But loading the audio track from the MKV makes the decoder to struggle like hell.

I'm using the latest StvG build (from this page of the thread) but I also have tried more builds. Same problems.

Video seems to be fine, its MKV + h264 + AAC LC ADTS.

Any idea?
The audio support is bad. If you can tolerate slightly worse performance give bestaudiosource a try. Otherwise keep demuxing...
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 22nd May 2020, 19:35   #2596  |  Link
stranno
Registered User
 
Join Date: Jul 2011
Posts: 39
Quote:
Originally Posted by Myrsloik View Post
The audio support is bad. If you can tolerate slightly worse performance give bestaudiosource a try. Otherwise keep demuxing...
Thank you Myrsloik. It does the job perfectly fine and performance hit is tolerable. Is there room for performance improvements? Are you still working on it? Would indexing allow better performance?
stranno is offline   Reply With Quote
Old 22nd May 2020, 20:47   #2597  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 2,264
Quote:
Originally Posted by stranno View Post
Thank you Myrsloik. It does the job perfectly fine and performance hit is tolerable. Is there room for performance improvements? Are you still working on it? Would indexing allow better performance?
1. Nope, the performance basically is what it is. Don't expect it to change at all.
2. Yes.
3. The whole idea is to not index and simply sacrifice a bit of cpu time for linear decoding. If you start indexing you end up with FFMS2.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 22nd May 2020, 21:47   #2598  |  Link
stranno
Registered User
 
Join Date: Jul 2011
Posts: 39
Quote:
Originally Posted by Myrsloik View Post
1. Nope, the performance basically is what it is. Don't expect it to change at all.
2. Yes.
3. The whole idea is to not index and simply sacrifice a bit of cpu time for linear decoding. If you start indexing you end up with FFMS2.
Again, many thanks. I will stick with bestaudiosource.
stranno is offline   Reply With Quote
Old 24th May 2020, 19:41   #2599  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,032
As I'm having problems getting DGDecNV to work on my new computer, I'm trying ffmpegsource on a 30Gb blu-ray rip (demuxed .264 file). It works, but it takes forever to open each time (15 minutes or so. It's not re-indexing as far as I can tell; I created the .ffindex file on the command line and its modified date hasn't changed).

Is this just how slow it is with such large files?
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 24th May 2020, 19:59   #2600  |  Link
stax76
Registered User
 
Join Date: Jun 2002
Posts: 6,502
Normally with MKV both ffms2 and l-smash are super fast indexing, staxrip uses LWLibavVideoSource for raw files by default, probably better.
stax76 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:03.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.