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 > Video Encoding > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th December 2008, 11:19   #5581  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by LoRd_MuldeR View Post
No, looks like this:



Avisynth Yadif doesn't work either in latest builds. I'm now back at "ffdshow_rev2347_20081123-mt.exe", which seems to work good (internal Yadif and Greedy 2 Frame).

Something must have been broken after that build
I have no idea where to start. Could you send me the debug output again?
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 10th December 2008, 11:21   #5582  |  Link
tetsuo55
MPC-HC Project Manager
 
Join Date: Mar 2007
Posts: 2,317
Just rechecked it and you need to enable "automatic quality control"

Ps its build 2364

Cannot get a screenshot right now.

All settings at default
Output set to "RGB32" HQ checked

Using libvacodec

Postproccessing checked
-Presets bulleted
--Automatic quality control checked
--mplayer checked

Unchecking automatic quality control brings the cpu usage back down

------------

PS
What does the level fix thing do and why do we need it?

Last edited by tetsuo55; 10th December 2008 at 11:27.
tetsuo55 is offline   Reply With Quote
Old 10th December 2008, 13:07   #5583  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by tetsuo55 View Post
Just rechecked it and you need to enable "automatic quality control"
[...]
I still can't reproduce.
Windows GUI is very slow. If you leave the dialog open, it will use a lot of CPU.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 10th December 2008, 13:37   #5584  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,477
Quote:
Originally Posted by avivahl View Post
cool! thanks for the heads up

there's no >2456 ICL10 version from clsid yet(or MT version from XXL), so I'll try the generic builds to see how the jitter goes in HR w/ Reclock

Last edited by leeperry; 10th December 2008 at 14:16.
leeperry is offline   Reply With Quote
Old 10th December 2008, 14:04   #5585  |  Link
tetsuo55
MPC-HC Project Manager
 
Join Date: Mar 2007
Posts: 2,317
Quote:
Originally Posted by haruhiko_yamagata View Post
I still can't reproduce.
Windows GUI is very slow. If you leave the dialog open, it will use a lot of CPU.
Found out what was wrong.

there isn't really a 100% cpu usage.
I enabled the OSD and added to the default selection "CPU LOAD"

When automatic quality control is enabled, the OSD displays 100% and sporadically displays 0%.
The slider is constantly changing position and real CPU usage is only about 30%

Looks like the CPU load calulcation is breaking or something
tetsuo55 is offline   Reply With Quote
Old 10th December 2008, 14:22   #5586  |  Link
STaRGaZeR
4:2:0 hater
 
Join Date: Apr 2008
Posts: 1,302
Quote:
Originally Posted by leeperry View Post
cool! thanks for the heads up

there's no >2456 ICL10 version from clsid yet(or MT version from XXL), so I'll try the generic builds to see how the jitter goes in HR w/ Reclock
The actual frame rate has been always the same, only the calculation shown in Info & CPU changed
__________________
Specs, GTX970 - PLS 1440p@96Hz
Quote:
Originally Posted by Manao View Post
That way, you have xxxx[p|i]yyy, where xxxx is the vertical resolution, yyy is the temporal resolution, and 'i' says the image has been irremediably destroyed.
STaRGaZeR is offline   Reply With Quote
Old 10th December 2008, 14:26   #5587  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,477
Quote:
Originally Posted by STaRGaZeR View Post
The actual frame rate has been always the same, only the calculation shown in Info & CPU changed
well ?

that tells me otherwise : "After seeking several frames may have inaccurate timestamps."

if you throw frames w/ wrong timestamps to HR, its jitter is gonna go nuts
leeperry is offline   Reply With Quote
Old 10th December 2008, 14:27   #5588  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by haruhiko_yamagata View Post
I have no idea where to start. Could you send me the debug output again?
I do when I get home tomorrow...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 10th December 2008, 14:30   #5589  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by tetsuo55 View Post
Found out what was wrong.

there isn't really a 100% cpu usage.
I enabled the OSD and added to the default selection "CPU LOAD"

When automatic quality control is enabled, the OSD displays 100% and sporadically displays 0%.
The slider is constantly changing position and real CPU usage is only about 30%

Looks like the CPU load calulcation is breaking or something
Then it's a bug, ffdshow probably reads and clear the CPU usage twice per frame. Not very important though.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 10th December 2008, 15:07   #5590  |  Link
STaRGaZeR
4:2:0 hater
 
Join Date: Apr 2008
Posts: 1,302
Quote:
Originally Posted by leeperry View Post
well ?

that tells me otherwise : "After seeking several frames may have inaccurate timestamps."

if you throw frames w/ wrong timestamps to HR, its jitter is gonna go nuts
How about the rest?

Quote:
frame rate calculation: fix compatibility issue with some splitters (matroska, flv)
Matroska and flv splitters round timestamps to milli-seconds. Thus frame rate calculation based on these timestamps has some error.
After seeking several frames may have inaccurate timestamps.
But go test it, you'll see how everything is the same.
__________________
Specs, GTX970 - PLS 1440p@96Hz
Quote:
Originally Posted by Manao View Post
That way, you have xxxx[p|i]yyy, where xxxx is the vertical resolution, yyy is the temporal resolution, and 'i' says the image has been irremediably destroyed.
STaRGaZeR is offline   Reply With Quote
Old 10th December 2008, 15:36   #5591  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
@all

What are the remaining important bugs and regressions that need to be fixed for beta6?
__________________
MPC-HC 2.2.1
clsid is offline   Reply With Quote
Old 10th December 2008, 16:05   #5592  |  Link
whurlston
Registered User
 
Join Date: Oct 2007
Posts: 207
Quote:
Originally Posted by clsid View Post
@all

What are the remaining important bugs and regressions that need to be fixed for beta6?
Would you mind adding this? http://forum.doom9.org/showpost.php?...postcount=5579
whurlston is offline   Reply With Quote
Old 10th December 2008, 16:28   #5593  |  Link
tetsuo55
MPC-HC Project Manager
 
Join Date: Mar 2007
Posts: 2,317
Quote:
Originally Posted by haruhiko_yamagata View Post
Then it's a bug, ffdshow probably reads and clear the CPU usage twice per frame. Not very important though.
It's actually more important than it seems.
Because if the miss-read CPU LOAD ffdshow is lowering the postproccessing settings for nothing
tetsuo55 is offline   Reply With Quote
Old 10th December 2008, 16:40   #5594  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
Quote:
Originally Posted by whurlston View Post
Sure. Have you tested if ffdshow decodes correctly when connected to that splitter?
__________________
MPC-HC 2.2.1
clsid is offline   Reply With Quote
Old 10th December 2008, 16:50   #5595  |  Link
whurlston
Registered User
 
Join Date: Oct 2007
Posts: 207
Quote:
Originally Posted by clsid View Post
Sure.
Thanks.

Quote:
Originally Posted by clsid View Post
Have you tested if ffdshow decodes correctly when connected to that splitter?
Yup. It decodes the DTS-Core only it seems but I expected that. It works using both libdts and libavcodec.

Last edited by whurlston; 10th December 2008 at 16:53.
whurlston is offline   Reply With Quote
Old 10th December 2008, 20:21   #5596  |  Link
MatMaul
Registered User
 
Join Date: Apr 2004
Posts: 402
this one is still here but it is perhaps not a priority :
http://sourceforge.net/tracker/index...41&atid=867360

EDIT : and here is a patch to enable 32bits output for flac when the bitdepth is superior to 16 (encoded from a bluray by eac3to for example)
Code:
Index: src/ffmpeg/libavcodec/flac.c
===================================================================
--- src/ffmpeg/libavcodec/flac.c	(revision 2461)
+++ src/ffmpeg/libavcodec/flac.c	(working copy)
@@ -611,7 +611,7 @@
                             const uint8_t *buf, int buf_size)
 {
     FLACContext *s = avctx->priv_data;
-    int tmp = 0, i, j = 0, input_buf_size = 0;
+    int tmp = 0, i, j = 0, input_buf_size = 0, shift, offset_per_sample;
     int16_t *samples = data;
     int alloc_data_size= *data_size;
 
@@ -712,14 +712,31 @@
     }
     }
 #else
+    avctx->bits_per_raw_sample = s->bps;
+
+    if (s->bps > 16)
+    {
+        offset_per_sample = 2;
+        avctx->sample_fmt = SAMPLE_FMT_S32;
+        shift = 32 - s->bps;
+    }
+    else
+    {
+        offset_per_sample = 1;
+        avctx->sample_fmt = SAMPLE_FMT_S16;
+        shift = 16 - s->bps;
+    }
+
 #define DECORRELATE(left, right)\
             assert(s->channels == 2);\
             for (i = 0; i < s->blocksize; i++)\
             {\
                 int a= s->decoded[0][i];\
                 int b= s->decoded[1][i];\
-                *samples++ = ((left)  << (24 - s->bps)) >> 8;\
-                *samples++ = ((right) << (24 - s->bps)) >> 8;\
+                *(int32_t *)samples = (left)  << shift;\
+                samples += offset_per_sample;\
+                *(int32_t *)samples = (right) << shift;\
+                samples += offset_per_sample;\
             }\
             break;
 
@@ -729,7 +746,10 @@
             for (j = 0; j < s->blocksize; j++)
             {
                 for (i = 0; i < s->channels; i++)
-                    *samples++ = (s->decoded[i][j] << (24 - s->bps)) >> 8;
+                {
+                    *(int32_t *)samples = s->decoded[i][j] << shift;
+                    samples += offset_per_sample;
+                }
             }
             break;
         case LEFT_SIDE:

Last edited by MatMaul; 10th December 2008 at 20:25.
MatMaul is offline   Reply With Quote
Old 10th December 2008, 21:35   #5597  |  Link
tal.aloni
Registered User
 
Join Date: Sep 2008
Posts: 496
DRC Slider

I have commited the "DRC based on presets" patch as rev. 2467,
please note that AFAIK, DRC is not supported when working with DTS, both with libdts and libavcodec, I have tested AC3 successfully with both libraries.

there is another patch I have ready:
+ DRC slider added, this will allow to use dynamic range compression level between 0% to 100%.

two notes:
1. I had to patch liba52 to add this feature. (libavcodec have native support for custom DRC level)
2. although it sounds right, I'm not 100% sure about the accuracy of my method to calculate partial DRC in liba52.
here is the relevant line: (based on what I saw in libavcodec)
Code:
-		state->dynrng = state->level * range;
+		state->dynrng = state->level * ((range - 1.0) * state->dynrngclevel + 1.0); //ffdshow custom code
patch:
http://iknowu.net/files/public/ffdsh...C_Slider.patch

build:
http://iknowu.net/files/public/ffdsh...r_20081210.exe

Last edited by tal.aloni; 12th December 2008 at 12:24.
tal.aloni is offline   Reply With Quote
Old 11th December 2008, 00:06   #5598  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
Quote:
Originally Posted by tetsuo55 View Post
It's actually more important than it seems.
Because if the miss-read CPU LOAD ffdshow is lowering the postproccessing settings for nothing
Only if both OSD-"CPU Load" and postprocessing "Automatic quality control" is enabled.
I'm afraid I can't fix all bugs. I have limited time.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Old 11th December 2008, 00:46   #5599  |  Link
fastplayer
Registered User
 
Join Date: Nov 2006
Posts: 799
Will Beta 6 be 32-bit only? Or: How complete are 64-bit builds currently?
fastplayer is offline   Reply With Quote
Old 11th December 2008, 14:52   #5600  |  Link
haruhiko_yamagata
Registered User
 
Join Date: Feb 2006
Location: Japan
Posts: 1,560
I'm not sure but perhaps 32-bit only.
64-bit builds are still experimental.
__________________
[ Download ffdshow | Wiki ]
haruhiko_yamagata is offline   Reply With Quote
Reply

Tags
ffdshow, ffdshow tryouts, ffdshow-mt, ffplay, icl

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 22:27.


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