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 3rd March 2015, 16:29   #15261  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 729
Quote:
Originally Posted by j7n View Post
Is it known that still frame Grabbing doesn't work on oddball width (mod-2) video? I get a skewed picture with alternating red, green and blue lines in the BMP output, as if the row length was specified incorrectly. The position of the Grab filter makes no difference. Playback is correct. I can capture frames if I use AviSynth with AddBorders(0,0,2,0) above Grab, which adds a black column to bring the width to mod-4.
This is weird, because grab definitely used to work with non-mod4. If you need this feature, revert to some older build. (BTW if you by chance isolate at which revision this got broken, post it here, even if currently nobody is willing to fix it... it might be useful to somebody.)

Edit: I have revision 4499 (2 years old by now) installed on W8.1 64 and it works with 714x478 video (both 10-bit and 8-bit H.264). Note that I have SSE2-capable CPU, it might be different on processors without that. Also maybe try if it starts to work if you disable decoding in ffdshow and use it as a postprocessor after LAV video. Proofs

Last edited by mandarinka; 3rd March 2015 at 16:49.
mandarinka is offline   Reply With Quote
Old 3rd March 2015, 21:32   #15262  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
You don't have to bother testing that older version, because nothing has changed with regard to the Grab filter. In fact, there haven't been any significant changes to ffdshow at all in the past years.

I can confirm the problem with mod2 width for BMP. PNG output works ok, so use that, or use Resize&Aspect to expand to a multiple of 4.
__________________
MPC-HC 2.2.1
clsid is offline   Reply With Quote
Old 4th March 2015, 00:25   #15263  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 729
Ah, I see, I didn't try BMP. It didn't occur to me that the trouble could actually be just in the output part (IIRC png uses different colorspace). That is pretty acceptable workaround, too.
mandarinka is offline   Reply With Quote
Old 4th March 2015, 10:44   #15264  |  Link
j7n
Registered User
 
j7n's Avatar
 
Join Date: Apr 2006
Posts: 137
I do have SSE2, but I find PNG too slow to be practical for any kind of screen grabs without a computer from space. I usually take dozens and discard most that don't show what I want. It would be cool if the quality slider that doesn't do anything could perhaps adjust the PNG compression between none and max. I would of course use no compression for temporary grabs.

The workaround with AddBorders(0,0,2,0) works for me. I then easily crop off the extra columns with IrfanView. As far as I understand both BMP and PNG are in RGB24 color space. Here is how a broken still frame looks like: 710*480
j7n is offline   Reply With Quote
Old 4th March 2015, 15:44   #15265  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 729
Quote:
Originally Posted by j7n View Post
I do have SSE2, but I find PNG too slow to be practical for any kind of screen grabs without a computer from space. I usually take dozens and discard most that don't show what I want. It would be cool if the quality slider that doesn't do anything could perhaps adjust the PNG compression between none and max. I would of course use no compression for temporary grabs.

The workaround with AddBorders(0,0,2,0) works for me. I then easily crop off the extra columns with IrfanView. As far as I understand both BMP and PNG are in RGB24 color space. Here is how a broken still frame looks like: 710*480
Both is R/G/B 8/8/8 bit, but the arrangement of the channel can be different IIRC or something - BGR/RGB etc.
mandarinka is offline   Reply With Quote
Old 8th March 2015, 18:41   #15266  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Moved increasingly off-topic posts about audio sampling to audio forum.
foxyshadis is offline   Reply With Quote
Old 18th March 2015, 14:39   #15267  |  Link
djonline
Registered User
 
Join Date: Mar 2011
Posts: 40
There is no FFV1 version 3 in ffdshow ?
Is there is any vfw build of ffv1.3 for encoding/decoding ?
djonline is offline   Reply With Quote
Old 27th March 2015, 02:13   #15268  |  Link
HackAR
Registered User
 
Join Date: May 2006
Posts: 7
Bug with Avisynth processing?

I've written a neat Avisynth script to do some transformations on the videos. But it involves changing YV12 to YV16. If I create a avs file and load the video in it, everything displays fine. But if I put the same script into Avisynth section of ffdshow (so it is active with all videos), the output is shown in wrong colorspace and colors are displaced.

Anyone met this bug? Any idea how to solve it or is there a workaround?
HackAR is offline   Reply With Quote
Old 27th March 2015, 09:30   #15269  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,780
I doubt ffdshow supports YV16...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is online now   Reply With Quote
Old 27th March 2015, 13:28   #15270  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
Try converting back to a more common colorspace at the end of the script. Like RGB32.
__________________
MPC-HC 2.2.1
clsid is offline   Reply With Quote
Old 27th March 2015, 13:42   #15271  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,780
YUY2 would be more appropriate. It has about the same amount of information (both YUV 4:2:2), just that YV16 is planar, and YUY2 is interleaved (packed pixels).
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is online now   Reply With Quote
Old 27th March 2015, 20:01   #15272  |  Link
HackAR
Registered User
 
Join Date: May 2006
Posts: 7
Yes I did a major rearrangement in my filter (Planar YV16 to Packed YUY2)
Now it works almost well in ffdshow. There are still 2 things: for some reason ffdshow still tries to output in NV12, messing with chroma values. If I deactivate the 4:2:0 output modes, it chooses RGB . Only if I deactivate RGB output too, it stays with YUY2. Why?

Btw, all other processing steps are deactivated, only the AviSynth is active.
HackAR is offline   Reply With Quote
Old 6th April 2015, 17:51   #15273  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
YUY2 is probably the least-commonly output colorspace of all, so it's no surprise it's the victim of driver and ffdshow bugs. It's chosen dead last because compatibility is so low.
foxyshadis is offline   Reply With Quote
Old 6th April 2015, 18:01   #15274  |  Link
HackAR
Registered User
 
Join Date: May 2006
Posts: 7
My first chose was YV16
But I assumed ffdshow outputs the best matched (and supported) colorspace. I was very surprised about 4:2:2 to 4:2:0 and also about YVU to RGB conversions.
HackAR is offline   Reply With Quote
Old 12th April 2015, 15:01   #15275  |  Link
shae
Registered User
 
Join Date: Jun 2006
Posts: 397
Is ffdshow-tryouts still the recommended way to add video/audio processing over other decoders (such as LAV)? For example, I want to get a histogram.
shae is offline   Reply With Quote
Old 13th April 2015, 08:51   #15276  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,780
With both numerous built-in post-processing filters and the additional support for AviSynth filter scripts, ffdshow is probably still unrivaled.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is online now   Reply With Quote
Old 13th April 2015, 11:42   #15277  |  Link
HackAR
Registered User
 
Join Date: May 2006
Posts: 7
Yes, if ffdshow dies, an important and unmatched piece of software will be lost.
HackAR is offline   Reply With Quote
Old 13th April 2015, 12:35   #15278  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
ffdshow is already dead. There are no active developers and there haasn't been any serious development in years.

Of course, it will always remain available in its current form.
__________________
MPC-HC 2.2.1
clsid is offline   Reply With Quote
Old 13th April 2015, 20:51   #15279  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 729
That's the upside of windows ecosystem - you can use software that is unmaintained, and stability of frameworks like dshow sorta give it chance to work with newer components.

Hmm, now I realise that when I'll get 64bit MPC/LAV Video/MadVR now, I won't be able to use FFDshow for decimating, IVTCing and other such things... I hope having a parallel 32bit and 64bit components is going to work.
mandarinka is offline   Reply With Quote
Old 14th April 2015, 02:00   #15280  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Parallel installation works just fine, no problems whatsoever. And for decimating & IVTC madVR's forced film mode should do the trick. It does even things like 720p60 -> 720p24 decimation etc...
madshi 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 23:20.


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