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 27th September 2010, 19:08   #12521  |  Link
STaRGaZeR
4:2:0 hater
 
Join Date: Apr 2008
Posts: 1,307
Quote:
Originally Posted by nevcairiel View Post
Custom code only sucks when you use subversion trying to manage it .. what you do .. :P
Don't blame code for your version control shortcomings, imho
Custom code sucks the same on git, IMHO
__________________
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 27th September 2010, 19:29   #12522  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 8,855
But keeping in sync with the upstream repository is trivial!
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 27th September 2010, 19:51   #12523  |  Link
STaRGaZeR
4:2:0 hater
 
Join Date: Apr 2008
Posts: 1,307
I don't know git, but it can't be worse than svn

To all, please test r3602. Things to test:

a) Audio channel mapping is fine for 5.1 streams and above. Fine means the same as in previous revisions.
b) Yadif works fine. Please test on CPUs without SSSE3, SSE2 and MMX2, or any combination of them. If your CPU has SSE2 but no SSSE3 for example, test it. Fine means it doesn't crash and the speed is the same as before or within margin of error.

Build: http://www.mediafire.com/?l90nft4ccgam2o4

And to the devs, mplayer now only contains mp3lib, which is IMO not needed at all, with libavcodec and libmad. We can remove it and libmplayer will be gone.
__________________
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 27th September 2010, 21:05   #12524  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,408
Quote:
Originally Posted by STaRGaZeR View Post
unless there is a strong negative from ffmpeg against this, in that case I'll consider it.
Put simply, they don't seem to care

And sorry to beat a dead horse(I know, that's my speciality ), but would you have any idea how to enable PCM24/32 for winamp DSP plugins? the input/output is currently downconverted to 16int, which is a major bummer as there's many DX/VST plugins wrappers...and ffdshow is the perfect place for this kind of job

You can see tons of "int16_t"/"SF_PCM16" in those sections:
http://ffdshow-tryout.svn.sourceforg...p&pathrev=1928
http://ffdshow-tryout.svn.sourceforg...p&pathrev=1928

winamp2 DSP plugins work in PCM24/32 using the foobar wrapper: http://wiki.hydrogenaudio.org/index....oo_dsp_winamp)
Quote:
16-bit: low quality, failsafe. Choose this setting, if you encounter a problem while playback;
24-bit: hi-quality;
32-bit: highest quality.
I asked its author for help but he told me that the ffdshow code was quite messy and that he had no time to work on it

Christian Budde(a professional VST plugin coder) helped Haruhiko to iron out a few bugs in the winamp DSP plugins host code of ffdshow, and confirmed that PCM24/32 were entirely possible w/ winamp2 DSP plugins.

If anyone's interested, I could make a complete tutorial to VST awesomeness in ffdshow...including upmix/downmix matrixes based on Lexicon's Logic7 routines. The key is to calibrate their coefficients to your gear/brain. Its author, David Griesinger, is the living god of audio DSP for hometheater use.

After a bit of work, you can make very convincing stereo downmixes(very short FLAC samples):
http://www.mediafire.com/download.php?hzgj3fsco1gqsbf
http://www.mediafire.com/download.php?xrfcj9rm2od453k

Quote:
Originally Posted by STaRGaZeR View Post
b) Yadif works fine. Please test on CPUs without SSSE3, SSE2 and MMX2, or any combination of them. If your CPU has SSE2 but no SSSE3 for example, test it. Fine means it doesn't crash and the speed is the same as before or within margin of error.
I'm a noob at deinterlacing, but YADIF always gives me tons of combing...I was trying it on a 29.97fps NTSC source yesterday, and bingo still a combo feast. It works wonderfully in double frame rate mode, though...but it's not too handy in 89.91Hz.

One thing I've never understood about double frame rate deinterlacing is that it looks like frame interpolation...It really looks as if I were watching a 59.94fps source, when it should actually be 29.97*2

A friend of mine is completely hooked to 1080i*2 on his projector, he finds the picture WAY smoother.

Last edited by leeperry; 27th September 2010 at 21:15.
leeperry is offline   Reply With Quote
Old 28th September 2010, 01:10   #12525  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 713
Quote:
Originally Posted by leeperry View Post
One thing I've never understood about double frame rate deinterlacing is that it looks like frame interpolation...It really looks as if I were watching a 59.94fps source, when it should actually be 29.97*2

A friend of mine is completely hooked to 1080i*2 on his projector, he finds the picture WAY smoother.
Double frame rate is the *right* way to do it. That's what true interlaced looks like if you were watching it on a CRT. Just because there's a lot of 24/25/30p misuse out there and that many people are used to watching web video (or pirated video) at a max of 30p doesn't suddenly mean it's right.

Last edited by kieranrk; 28th September 2010 at 01:12.
kieranrk is offline   Reply With Quote
Old 28th September 2010, 01:12   #12526  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 713
Quote:
Originally Posted by leeperry View Post
There's no point in decoding lossy audio in anything else than 32fp.
Why not use 64fp (doubles); in fact why not use 128fp (long double); don't forget you're losing quality at each stage...
kieranrk is offline   Reply With Quote
Old 28th September 2010, 01:20   #12527  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,408
Quote:
Originally Posted by kieranrk View Post
Double frame rate is the *right* way to do it. That's what true interlaced looks like if you were watching it on a CRT. Just because there's a lot of 24/25/30p misuse out there and that many people are used to watching web video (or pirated video) at a max of 30p doesn't suddenly mean it's right.
I know what 24fps looks like, same goes for 25 and 29.97....29.97 double frame rate deinterlace looks like 29.97 interpolated to 59.94 to my eyes. Trimension DNM all the way.
Quote:
Originally Posted by kieranrk View Post
Why not use 64fp (doubles); in fact why not use 128fp (long double); don't forget you're losing quality at each stage...
my favorite audio player(Lilith) decodes all lossy audio in 64fp, and so are its volume attenuator and VST plugins pipeline. SQ is amazing.



But right now, libavcodec DTS and VST plugins are stuck to 16int in ffdshow

Last edited by leeperry; 28th September 2010 at 01:30.
leeperry is offline   Reply With Quote
Old 28th September 2010, 01:41   #12528  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 713
Quote:
Originally Posted by leeperry View Post
I know what 24fps looks like, same goes for 25 and 29.97....29.97 double frame rate deinterlace looks like 29.97 interpolated to 59.94 to my eyes. Trimension DNM all the way.

my favorite audio player(Lilith) decodes all lossy audio in 64fp, and so are its volume attenuator and VST plugins pipeline. SQ is amazing.



But right now, libavcodec DTS and VST plugins are stuck to 16int in ffdshow
Clearly you don't understand the difference between interlace and progressive then....

I'm glad you enjoy your 64-bit double placebo. The rest of us live in reality.

Last edited by kieranrk; 28th September 2010 at 01:44.
kieranrk is offline   Reply With Quote
Old 28th September 2010, 01:57   #12529  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,408
they took a 29.97fps progressive source, once properly deinterlaced it should be reconstructed to 29.97 progressive...no need for frame interpolation. anyway, I don't care for interlaced stuff...I have a bunch of poorly authored DVD's using it, that's all.

oh yes, placebo...good thing I didn't tell you about software induced jitter, I don't think you'd be ready for that just yet.

and in case you were wondering, you can measure it too...so much for placebo.

even a 11yo girl can hear the difference, but she has better hearing than you and I.

foobar's volume attenuator also works in 64fp, just like all the pro-audio software....anyway, my original point was that 16int for lossy audio decoding and post-processing butchers the SQ.

Last edited by leeperry; 28th September 2010 at 02:23.
leeperry is offline   Reply With Quote
Old 28th September 2010, 11:34   #12530  |  Link
_xxl
ffdshow user
 
_xxl's Avatar
 
Join Date: Oct 2005
Location: Romania
Posts: 818
Quote:
And to the devs, mplayer now only contains mp3lib, which is IMO not needed at all, with libavcodec and libmad. We can remove it and libmplayer will be gone.
Remove it. It is hard to maintain.
_xxl is offline   Reply With Quote
Old 28th September 2010, 11:41   #12531  |  Link
STaRGaZeR
4:2:0 hater
 
Join Date: Apr 2008
Posts: 1,307
Quote:
Originally Posted by leeperry View Post
I'm a noob at deinterlacing, but YADIF always gives me tons of combing...I was trying it on a 29.97fps NTSC source yesterday, and bingo still a combo feast. It works wonderfully in double frame rate mode, though...but it's not too handy in 89.91Hz.

One thing I've never understood about double frame rate deinterlacing is that it looks like frame interpolation...It really looks as if I were watching a 59.94fps source, when it should actually be 29.97*2

A friend of mine is completely hooked to 1080i*2 on his projector, he finds the picture WAY smoother.
First, please do not parrot your feature request/bug fixes/whatever each time you have the chance. It's annoying, and this is not the first time I tell you this.

Second, you should really learn what interlaced video is. If you have 29,97fps pure interlaced content you have 59,94fps of temporal information there. Outputting 29,97fps is an abortion, but needed in some cases. That's why deinterlacers have that option.

Quote:
Originally Posted by _xxl View Post
Remove it. It is hard to maintain.
OK. What about theora? It hasn't been included in the installer for quite some time, why is still there?
__________________
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.

Last edited by STaRGaZeR; 28th September 2010 at 11:52.
STaRGaZeR is offline   Reply With Quote
Old 28th September 2010, 11:41   #12532  |  Link
Astrophizz
Registered User
 
Join Date: Jul 2008
Posts: 184
That XXHighEnd developer and the people that buy into his overpriced software sound a bit loony to me. You can still measure something with a sensitive device and yet not be able to sense a difference and so you would be subject to a placebo effect. I could point out the differences in spectral patterns of two stars to determine that one is of slightly different composition, but I could never see the difference with my eyes.
Astrophizz is offline   Reply With Quote
Old 28th September 2010, 12:06   #12533  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,408
Quote:
Originally Posted by Astrophizz View Post
You can still measure something with a sensitive device and yet not be able to sense a difference and so you would be subject to a placebo effect. I could point out the differences in spectral patterns of two stars to determine that one is of slightly different composition, but I could never see the difference with my eyes.
Of course, many FREE audio engines provide the same sort of low jitter(cMP/Reclock/Lilith)...I couldn't care less about XXHighEnd myself. Did you compare all the media players, do they sound the same to you? Jitter is real, and far from placebo.
Quote:
Originally Posted by STaRGaZeR View Post
this is not the first time I tell you this.
If you had a bugtracker anyone cared about, this wouldn't be happening...bumping bugfixes requests is the only chance to see anything happening(just like MPC).

I've asked three very skilled audio plugins coders for help and they've all told me that the ffdshow audio code was a bug feast(full of syntax errors and beginners mistakes) and a huge mess...so I guess this is not going to change anytime soon. They were even wondering how it could be working at all

ffdshow is a lost cause for studio grade audio, atm it's just a toy to watch movies in WMP...sorry for rubbing it in

Last edited by leeperry; 28th September 2010 at 15:53.
leeperry is offline   Reply With Quote
Old 28th September 2010, 12:23   #12534  |  Link
fastplayer
Registered User
 
Join Date: Nov 2006
Posts: 799
Quote:
Originally Posted by STaRGaZeR View Post
OK. What about theora? It hasn't been included in the installer for quite some time, why is still there?
clsid disabled it some time ago in the hope that someone would update it. IIRC the current version in the trunk is hopelessly outdated.
fastplayer is offline   Reply With Quote
Old 28th September 2010, 12:43   #12535  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
Quote:
Originally Posted by leeperry View Post
I'm a noob at deinterlacing, but YADIF always gives me tons of combing...I was trying it on a 29.97fps NTSC source yesterday, and bingo still a combo feast. It works wonderfully in double frame rate mode, though...
I haven't seen yadif leaving residual combing in neither single nor double-rate mode if the spatial deinterlacing check is enabled (not skipped, modes 0 and 1 in the MPlayer implementation). Do you have a sample clip?
nm is offline   Reply With Quote
Old 28th September 2010, 12:49   #12536  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,408
Quote:
Originally Posted by nm View Post
I haven't seen yadif leaving residual combing in neither single nor double-rate mode if the spatial deinterlacing check is enabled (not skipped, modes 0 and 1 in the MPlayer implementation). Do you have a sample clip?
I didn't have it disabled, I'll try to come up w/ a sample.

so videos shot interlaced actually have 59.94fps, great! that would explain why my friend is so hooked to 1080i concerts on his projector...but I believe he also likes 1080i movies, that can't possibly have more than 24fps AFAIK(IVTC put aside).
leeperry is offline   Reply With Quote
Old 28th September 2010, 13:13   #12537  |  Link
_xxl
ffdshow user
 
_xxl's Avatar
 
Join Date: Oct 2005
Location: Romania
Posts: 818
Quote:
OK. What about theora? It hasn't been included in the installer for quite some time, why is still there?
If you can update it ok. If not remove it.

x264 should be updated to latest, I can t update it anymore....
_xxl is offline   Reply With Quote
Old 28th September 2010, 15:39   #12538  |  Link
Reimar
Registered User
 
Join Date: Jun 2005
Posts: 278
Quote:
Originally Posted by madshi View Post
An eternity ago I had asked both Benjamin Larsson (DTS) and Justin Ruggles (AC3 + E-AC3) about that and IIRC both said that native bitdepth output was planned for a future libav version. But that was ages ago. I had sent my eac3to patches to both of them, but neither was willing to apply them. So I keep on patching libav, year after year...
I think some were changed. The biggest issue is that the format conversion inside the codec uses some tricks to be a lot faster, particularly on systems with slow FPU like ARM. Just removing them would mean that FFmpeg would get a lot slower on these systems.
And for FFmpeg speed (even on non-mainstream platforms) is most important than output resolution.
But if someone sends a patch to fix this issue, there'd probably no objections to changing the output format.
Reimar is offline   Reply With Quote
Old 28th September 2010, 15:47   #12539  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 8,869
Quote:
Originally Posted by Reimar View Post
I think some were changed. The biggest issue is that the format conversion inside the codec uses some tricks to be a lot faster, particularly on systems with slow FPU like ARM. Just removing them would mean that FFmpeg would get a lot slower on these systems.
And for FFmpeg speed (even on non-mainstream platforms) is most important than output resolution.
I understand. I'm just wondering why there isn't a simple (compile time) configuration switch for activating "native" output. I did try to get such a switch added to the (E-)AC3 and DTS decoders, but my patches were declined.
madshi is offline   Reply With Quote
Old 28th September 2010, 15:57   #12540  |  Link
Reimar
Registered User
 
Join Date: Jun 2005
Posts: 278
Quote:
Originally Posted by madshi View Post
Quote:
Everyone else as soon as they use e.g. dithering to reduce the supposedly 24-bit output to 16 bit will actually reduce the accuracy from 16 to 15 bit (the lowest bit will be replaced by dithering, and the dithering will be based on pure noise
Incorrect. Dithering does not *replace* the lowest bit. You clearly don't understand how dithering works.
Bad choice of words maybe. But to clarify: If you take a 16 bit input, add random bits to expand it to 24 bit and then dither that to 16 bit the dithering will have added noise. If the encoder never had more than 16 bit to start with, anything more than 16 bit in the decoded output can't be much more than noise (I guess this is not 100% true since the encoder can "expand" the input data to more than 16 bit by knowing how audio data is "supposed" to look).
Reimar 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 03:55.


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