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 25th July 2019, 08:51   #2501  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,984
AviSynth source filters can only output color spaces supported by AviSynth. At least to an AviSynth clip variable, to give following video filters any sensible meaning.

Regarding a "conversion" between XYZ and YUV, it might even just directly translate unknown color space components without any matrix math.

To receive different formats explicitly, it would have to be able to write a separate output file...

Does this "XYZ" refer to the CIE XYZ 1931 color space?
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 25th July 2019 at 09:00.
LigH is offline   Reply With Quote
Old 25th July 2019, 09:27   #2502  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 2,066
Quote:
Originally Posted by FranceBB View Post
I'm trying to index a DCP sample which has been exported in XYZ 4:4:4 12bit, however FFVideoSource seems to internally convert it to YUV 4:4:4 12bit.
Now I'm wondering... is there a way to let FFVideoSource output XYZ rather than YUV if someone wants to?
I mean, don't get me wrong, the idea of having the conversion done automatically is fine, but what if someone wants to get the original XYZ color space?

Images of what I mean:
Indexing (YUV) - Source (XYZ)

Thank you in advance,
Frank.
VapourSynth might pass it through and there's a slight chance it'd be somewhat correctly flagged as well. I have no idea what you'd do with it next though since there's not much that can correctly work with the format.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 25th July 2019, 11:50   #2503  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Germany
Posts: 716
Quote:
Originally Posted by LigH View Post
Does this "XYZ" refer to the CIE XYZ 1931 color space?
Yes, CIE XYZ 1931.

Quote:
Originally Posted by Myrsloik View Post
VapourSynth might pass it through and there's a slight chance it'd be somewhat correctly flagged as well. I have no idea what you'd do with it next though since there's not much that can correctly work with the format.
I see... Well, although it's represented correctly, the idea would be to convert XYZ 1931 with my LUT rather than relying on the indexer to do that, but that's just a guess. I believe that for the vast majority of people having it in YUV 4:4:4 12bit planar is absolutely fine.
__________________
Broadcast Encoder
Avisynth memes: 1 - 2 - 3
Videotek - Audacity XP - LUT Collection

Last edited by FranceBB; 25th July 2019 at 11:58.
FranceBB is offline   Reply With Quote
Old 25th July 2019, 17:52   #2504  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,299
if the convert between XYZ and YUV is lossless then it's ok, or maybe ffms2 need flag parameter

isn't CIE XYZ more close to RGB than YUV? and CIE Lab is more close to YUV as said here

maybe avs+ need to add those CIE things
__________________
My Avisynth Stuff

Last edited by real.finder; 25th July 2019 at 17:57.
real.finder is offline   Reply With Quote
Old 31st July 2019, 03:22   #2505  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 107
Quote:
Originally Posted by ChaosKing View Post
I've made a seeking test with "StvG ffms2" and it performs the same as "ffms2_test8.dll" https://forum.doom9.org/showthread.php?t=176231
This one (built against ffmpeg 4.1.4) has fixed VP9 seeking and AV1 support (aom).

Btw "lsmas.LWLibavSource()" is showing "ok" for "VP9.mkv" for most of the builds but the frames number is different than "ffms2.Source()" builds with "ok" for "VP9.mkv". How come?

Last edited by StvG; 31st July 2019 at 04:22. Reason: ffmpeg version
StvG is offline   Reply With Quote
Old 31st July 2019, 10:21   #2506  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,050
Quote:
Originally Posted by StvG View Post
This one (built against ffmpeg 4.1.4) has fixed VP9 seeking and AV1 support (aom).

Btw "lsmas.LWLibavSource()" is showing "ok" for "VP9.mkv" for most of the builds but the frames number is different than "ffms2.Source()" builds with "ok" for "VP9.mkv". How come?
This is something I noticed for some files too. In this case lsmas is not decoding it properly but still manages to return the correct frames (or at least the same frames while it was reading the file linearly)

I plan to make a new table with some more infos like detected total frame numer, fps, color space etc. ...

EDIT: And it seems I downloaded also some "problem" files where I don't know if testing these are a good thing or not.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository

Last edited by ChaosKing; 31st July 2019 at 10:26.
ChaosKing is online now   Reply With Quote
Old 7th August 2019, 19:31   #2507  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Germany
Posts: 716
Quote:
Originally Posted by HolyWu View Post
ffms2-r1275+2-win64-20190808
  • Update to FFmpeg 4.2.
  • Switch to libdav1d for AV1 decoding.
May I ask you an x86 version for ffms2 as well?

Thank you in advance,
Frank
__________________
Broadcast Encoder
Avisynth memes: 1 - 2 - 3
Videotek - Audacity XP - LUT Collection
FranceBB is offline   Reply With Quote
Old 26th August 2019, 16:05   #2508  |  Link
jlw_4049
Registered User
 
Join Date: Sep 2018
Posts: 123
Quote:
Originally Posted by HolyWu View Post
ffms2-r1275+2-20190811
  • Update to FFmpeg 4.2.
  • Switch to libdav1d for AV1 decoding.
This build takes about 7 minutes and 30 seconds after indexing to finish. Stvg's build takes about 1 minute and 10 seconds after on a 4k Remux. What is the difference?

Last edited by jlw_4049; 26th August 2019 at 16:37.
jlw_4049 is offline   Reply With Quote
Old 26th August 2019, 16:48   #2509  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 687
Quote:
Originally Posted by jlw_4049 View Post
This build takes about 7 minutes and 30 seconds after indexing to finish. Stvg's build takes about 1 minute and 10 seconds after on a 4k Remux. What is the difference?
What program did you use for testing to get the indexing time? ffmsindex.exe?
HolyWu is offline   Reply With Quote
Old 26th August 2019, 16:58   #2510  |  Link
jlw_4049
Registered User
 
Join Date: Sep 2018
Posts: 123
Quote:
Originally Posted by HolyWu View Post
What program did you use for testing to get the indexing time? ffmsindex.exe?
I'm using StaxRip. Both of them actually index at the same speed. However, after they are done indexing StaxRip minimizes to the background for 1 or 8 minutes depending on the filter. Seems like the filter is looping or something, as it slowly makes 1 .avs file, then the 2nd .avs file like 6 minutes later before finally bringing the GUI back up.

I can't figure out if it's an issue with Stax or with the filters. I'm also talking to Stax76 as well. Hoping to figure it out :/
jlw_4049 is offline   Reply With Quote
Old 26th August 2019, 17:20   #2511  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 687
Quote:
Originally Posted by jlw_4049 View Post
I'm using StaxRip. Both of them actually index at the same speed. However, after they are done indexing StaxRip minimizes to the background for 1 or 8 minutes depending on the filter. Seems like the filter is looping or something, as it slowly makes 1 .avs file, then the 2nd .avs file like 6 minutes later before finally bringing the GUI back up.

I can't figure out if it's an issue with Stax or with the filters. I'm also talking to Stax76 as well. Hoping to figure it out :/
The filter itself never makes .avs file.

Try testing with another program like AvsPmod or VirtualDub2 and see whether the issue persists.
HolyWu is offline   Reply With Quote
Old 26th August 2019, 17:51   #2512  |  Link
jlw_4049
Registered User
 
Join Date: Sep 2018
Posts: 123
Quote:
Originally Posted by HolyWu View Post
The filter itself never makes .avs file.

Try testing with another program like AvsPmod or VirtualDub2 and see whether the issue persists.
You are right. The issue isn't with the indexer. My apologies!
jlw_4049 is offline   Reply With Quote
Old 30th August 2019, 14:18   #2513  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: 36 Chambers
Posts: 5,918
Quote:
Originally Posted by HolyWu View Post
The filter itself never makes .avs file.

Try testing with another program like AvsPmod or VirtualDub2 and see whether the issue persists.
I tried with VirtualDub2 (uses avifile api like staxrip) and the problem persists, it needs minutes to load, the reason is the amount of subtitles streams, in this case there are 45 subtitle streams. StvG's last build loads in ten seconds.

MediaInfo:

https://pastebin.com/5Qd4qjA8
stax76 is offline   Reply With Quote
Old 30th August 2019, 16:26   #2514  |  Link
Patman
Registered User
 
Patman's Avatar
 
Join Date: Jan 2015
Posts: 153
Quote:
Originally Posted by StvG View Post
This one (built against ffmpeg 4.1.4) has fixed VP9 seeking and AV1 support (aom).

Btw "lsmas.LWLibavSource()" is showing "ok" for "VP9.mkv" for most of the builds but the frames number is different than "ffms2.Source()" builds with "ok" for "VP9.mkv". How come?
Hi STvG,

can you make new build with ffmpeg 4.2?

Gesendet von meinem HMA-L09 mit Tapatalk
__________________
My Builds
Patman is offline   Reply With Quote
Old 30th August 2019, 22:26   #2515  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: 36 Chambers
Posts: 5,918
@HolyWu

Thanks for the build, if it persists I try to reproduce it with a smaller file that I will upload then.

edit:

I'm still working on the issue but the first test shows that it's fixed!

Last edited by stax76; 30th August 2019 at 22:54.
stax76 is offline   Reply With Quote
Old 30th August 2019, 23:02   #2516  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 107
Quote:
Originally Posted by Patman View Post
Hi STvG,

can you make new build with ffmpeg 4.2?

Gesendet von meinem HMA-L09 mit Tapatalk
Hi. Here is the updated version.
ffmpeg - n4.3-83e0b71
aom - 6788a07
StvG is offline   Reply With Quote
Old 30th August 2019, 23:42   #2517  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: 36 Chambers
Posts: 5,918
@HolyWu

It's fixed, for my large test file the load time is now 25 seconds and the close time is 13 seconds, exactly identical to StvG's build, before the load time was several minutes, file is 50 GB, 3 audio and 45 subtitle tracks.

I've remuxed the file including all tracks and the load time was the same but after I remuxed it including only one audio and only one subtitle track the load time is 1 second !!!

edit:

3 audio tracks, 49 PGS subtitle tracks: 25 seconds load time
3 audio tracks, 0 PGS subtitle tracks: 1 second load time
1 audio tracks, 2 PGS subtitle tracks: 2 seconds load time
1 audio tracks, 10 PGS subtitle tracks: 3 seconds load time
1 audio tracks, 20 PGS subtitle tracks: 6 seconds load time

Last edited by stax76; 31st August 2019 at 00:58.
stax76 is offline   Reply With Quote
Old 31st August 2019, 08:32   #2518  |  Link
Patman
Registered User
 
Patman's Avatar
 
Join Date: Jan 2015
Posts: 153
Quote:
Originally Posted by StvG View Post
Hi. Here is the updated version.
ffmpeg - n4.3-83e0b71
aom - 6788a07
Thanks a lot.
Patman is offline   Reply With Quote
Old 31st August 2019, 10:52   #2519  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,050
Quote:
Originally Posted by StvG View Post
Hi. Here is the updated version.
ffmpeg - n4.3-83e0b71
aom - 6788a07
It seems FFmpeg 4.3 fixes some issues with frame seeking accuracity.

__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is online now   Reply With Quote
Old 31st August 2019, 12:22   #2520  |  Link
Natty
Noob
 
Join Date: Mar 2017
Posts: 219
Quote:
Originally Posted by StvG View Post
Hi. Here is the updated version.
ffmpeg - n4.3-83e0b71
aom - 6788a07
Natty 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 09:22.


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