View Full Version : ffdshow tryouts project: Discussion & Development
leeperry
25th August 2009, 13:20
oh, and I dunno what the defaults are...but I think it'd be good that you set liba52 and libdts as default decoders as they both decode in 32float(libavcodec only decodes in 16int, which is much lossier if you use post-processing).
mark0077
25th August 2009, 13:29
BTW, my first filter in fffdshow is YADIF("process frames flagged as progressive" disabled), so ideally it should only turn itself on for interlaced content...but it's been processing progressive content as well lately :o
I think it started to happen after I upgraded to a newer version...how can I check if ffdshow detected an interlaced source? I loved when it was fully automatic, I'll try to change the MPEG decoders maybe....I think it was working fine w/ the MPC-HC decoder, which seemed to set the interlaced bit properly.
Are you by any chance having the problem with DVD's? which you might already know don't have reliable flags. You will know if yadif is in use if you have "Double framerate" on, you can then see in mpc-hc's status, the frame rate will be 50.00 instead of 25.00 for example.
Anyone know if grab should catch these second frames that are output from yadif, seems like they arn't being grabbed in the current versions.
leeperry
25th August 2009, 13:47
Are you by any chance having the problem with DVD's? which you might already know don't have reliable flags. You will know if yadif is in use if you have "Double framerate" on, you can then see in mpc-hc's status, the frame rate will be 50.00 instead of 25.00 for example.
yes, I had the problem on DVD's...but also on progressive AVI files?! apparently something's messed up w/ the flag, or in the latest ffdshow revs/my user settings :o
if you enable YADIF, it doesn't turn on for AVI files for you? and I've got some interlaced WMV files where it doesn't.
I guess automatic deinterlacing is not quite doable..
diizzy
25th August 2009, 13:52
Have you tryed with reclock? I'm not sure, but maybe reclock could do that for you...
It does indeed (checkbox), although it seems to have some bugs also. First video I tried made it hang, probably due to SPDIF. Would be lovely if that feature could be adapted to ffdshow although I don't see any source code available for reclock.
//Danne
yesgrey
25th August 2009, 17:07
First video I tried made it hang, probably due to SPDIF.
If you read the option it says "for PCM sound", so probably you cannot use it with spdif... Have you tryed it with PCM sound?
albain
25th August 2009, 17:32
As usual, a big thanks to the developers and contributors for keeping this project alive.
I just have a small question in case I'm missing something, this "issue" is on both Vista and Win7 if you have your computer hooked up to a receiver with HDMI. If you set your speaker set to 5.1 Windows always outputs it as 5.1 (multichannel) but with only L,R active if you have a stereo source. The workaround would be to enable some surround effect in either ffdshow or in Windows (I only think its available in Windows 7) if you want sound in all speakers. Is it possible to force regular stereo output for 2 ch sound like when you set 2 speakers in Windows so the stream is truly 2ch?
That way you can use upmixing features on your reciever.
Thanks in advance
//Danne
This is possible if you enable autoload condition on ffdshow audio :
if nbchannels = 2, define a preset with mixer set to 2/0
mark0077
25th August 2009, 22:50
Hi all,
I am trying to use the ffdshow encoder to make lossless clips from adobe premiere. What could I be doing wrong.
Using ffv1 in avi, the exported clip plays the first 5 seconds and then crashes.
Using lossless jpeg in avi, the exported clip initially comes up as pure grey image, then shows a streaking effect and crashes.
Using H264 losslessin avi, the exported clip plays fine the whole way through, but its suspiciously small, and shows horrible video corruption the whole way through.
I am exporting a 60fps 1024 x 768 clip which exports fine completely uncompressed (not using ffdshow encoder).
My aim is to get my clip approx 30% smaller than the uncompressed lossless version so that my hdd can keep up with the clip, 4ghz core i7 should be enough I hope to decode this on the fly.
I am using ffdshow and mpc versions released today, 3060 and 1245. h264 lossless is the only one that I can actually see some output, although its badly garbled.
mrcorbo
25th August 2009, 23:15
As usual, a big thanks to the developers and contributors for keeping this project alive.
I just have a small question in case I'm missing something, this "issue" is on both Vista and Win7 if you have your computer hooked up to a receiver with HDMI. If you set your speaker set to 5.1 Windows always outputs it as 5.1 (multichannel) but with only L,R active if you have a stereo source. The workaround would be to enable some surround effect in either ffdshow or in Windows (I only think its available in Windows 7) if you want sound in all speakers. Is it possible to force regular stereo output for 2 ch sound like when you set 2 speakers in Windows so the stream is truly 2ch?
That way you can use upmixing features on your reciever.
Thanks in advance
//Danne
This would seem to be the relevant MSDN doc (http://msdn.microsoft.com/en-us/library/ms790524.aspx) if a developer had the time/interest to add a "match speaker config to output" option to ffdshow.
ReClock works well for me, though, for this purpose and in fact the function was added to ReClock specifically to address your situation.
diizzy
26th August 2009, 12:38
This is possible if you enable autoload condition on ffdshow audio :
if nbchannels = 2, define a preset with mixer set to 2/0
Unfortunately this doesnt seem to work, even if I set 2/0/0 I get multichannel PCM. The link provided by mrcorbo appears to be that I'm looking for. Unfortunately Im not a developer myself so I cant add it :-/
Best regards
Danne
STaRGaZeR
26th August 2009, 13:14
Unfortunately this doesnt seem to work, even if I set 2/0/0 I get multichannel PCM. The link provided by mrcorbo appears to be that I'm looking for. Unfortunately Im not a developer myself so I cant add it :-/
Best regards
Danne
Albain's trick is for creating the surround effect inside ffdshow, then output the multichannel PCM to the receiver as always but only for stereo sources and leaving 5.1 streams untouched. You can even create your personal matrix for the mix, so the possibilities are endless.
JarrettH
27th August 2009, 05:39
Do you think there'll be a new beta soon? :confused:
_xxl
27th August 2009, 12:24
Maybe a bug ?
Since Version 3040 when resizing SD material to e.g. 720p, picture seems to be zoomed (only a part of the picture is resized to full screen resolution). When unchecking and checking resize checkbox, everything works like a charm. When opening a new video, trouble starts again. Version 3029 works flawlessly.
OSD always shows correct in- and output resolutions.
Is 3031 the cause for that regression? If nobody is going to fix I will revert it.
albain
27th August 2009, 12:34
Is 3031 the cause for that regression? If nobody is going to fix I will revert it.
yes but clsid added a workaround since, I don't know if that fixed all the problems though
clsid
27th August 2009, 13:18
My workaround was only for a limitation of the Overlay Mixer. It does not fix the reported cropping and resizing issues.
I think it may be best to revert 3031, until a better patch is made that also deals properly with the filters of ffdshow.
Mercury_22
28th August 2009, 09:33
Audio it's broken in 3063 for the x64 version
x64 version Video and x86 version (video and audio) are working fine !
EDIT: For example I'm getting this (with MPC-HC)
ffdshow Audio Decoder::Out
Media Type 0:
--------------------------
Audio: PCM 8000Hz mono 128Kbps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 58
WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 1
nSamplesPerSec: 8000
nAvgBytesPerSec: 16000
nBlockAlign: 2
wBitsPerSample: 16
cbSize: 0 (extra bytes)
pbFormat:
0000: 01 00 01 00 40 1f 00 00 80 3e 00 00 02 00 10 00 ....@...€>......
0010: 00 00|00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0020: 00 00 00 00 00 00 00 00 40 1f 00 00 01 00 00 00 ........@.......
0030: 00 00 00 00 00 00 00 00 e8 49 ........čI
Media Type 1:
--------------------------
Unknown
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: MEDIASUBTYPE_None {E436EB8E-524F-11CE-9F53-0020AF0BA770}
formattype: FORMAT_None {0F6417D6-C318-11D0-A43F-00A0C9223196}
bFixedSizeSamples: 0
bTemporalCompression: 0
lSampleSize: 307200
cbFormat: 0
when it gets connected, but usually even that FFD's merit it's "Very High" MPC-HC or graphstudio64 (or WMP) are connecting to other audio decoder with lower merit
clsid
28th August 2009, 11:55
That is the output. What is the input?
Mercury_22
28th August 2009, 12:53
That is the output. What is the input?
Are you referring to the codec ? This is the file for which I manage to connect the ffd Impreza.3gp (http://sharebee.com/a931666c)
For any other type of file as i've said I can't mange to connect to FFD even that it has the highest merit on my system
Media info for that file General
Complete name : D:\Recorded TV\Impreza.3gp
Format : MPEG-4
Format profile : 3GPP Media Release 4
Codec ID : 3gp4
File size : 67.9 KiB
Duration : 7s 0ms
Overall bit rate : 79.5 Kbps
Encoded date : UTC 2003-11-17 18:26:16
Tagged date : UTC 2003-11-17 18:26:16
Video
ID : 1
Format : H.263
Format profile : BaseLine@1.0
Codec ID : s263
Duration : 6s 913ms
Bit rate mode : Variable
Bit rate : 64.5 Kbps
Width : 128 pixels
Height : 96 pixels
Display aspect ratio : 4:3
Frame rate mode : Variable
Frame rate : 15.044 fps
Minimum frame rate : 12.500 fps
Maximum frame rate : 29.969 fps
Bits/(Pixel*Frame) : 0.349
Stream size : 54.4 KiB (80%)
Writing library : noki
Encoded date : UTC 2003-11-17 18:26:16
Tagged date : UTC 2003-11-17 18:26:16
Audio
ID : 2
Format : AMR
Format/Info : Adaptive Multi-Rate
Format profile : Narrow band
Codec ID : samr
Duration : 7s 0ms
Bit rate mode : Constant
Bit rate : 12.8 Kbps
Channel(s) : 1 channel
Sampling rate : 8 000 Hz
Resolution : 16 bits
Stream size : 10.9 KiB (16%)
Writing library : Nokia
Encoded date : UTC 2003-11-17 18:26:16
Tagged date : UTC 2003-11-17 18:26:16
EDIT: Last (tested) working version is 3054, first (tested) broken 3058
albain
28th August 2009, 16:08
It may be my modifs then (rev 3056) but I don't understand why it would work on x86 and not on x64 ??
The modifications I brought is to check if the output filter (audio renderer) will accept the media type in case of format change. This does not apply to your case but the other svn modifications concern x264 and ffmpeg updates.
Could you report the debugview traces when launching this file from mpc-hc 64 ?
You will have to set the allowDPRINTF registry key to 1 in FFDShow *64* registry key.
Test number 2 : could you install ffdshow 3054 64 bits, make a copy of libavcodec.dll and then install a non working version of ffdshow (3058 for example) and overwrite libavcodec.dll by the rev3054 one ?
Thanks
Mercury_22
28th August 2009, 16:40
It may be my modifs then (rev 3056) but I don't understand why it would work on x86 and not on x64 ??
The modifications I brought is to check if the output filter (audio renderer) will accept the media type in case of format change. This does not apply to your case but the other svn modifications concern x264 and ffmpeg updates.
Could you report the debugview traces when launching this file from mpc-hc 64 ?
You will have to set the allowDPRINTF registry key to 1 in FFDShow *64* registry key.
Test number 2 : could you install ffdshow 3054 64 bits, make a copy of libavcodec.dll and then install a non working version of ffdshow (3058 for example) and overwrite libavcodec.dll by the rev3054 one ?
Thanks
The libavcodec.dll (3063 replaced with 3054) trick has no result = no changes and I can't find the allowDPRINTF key I even did a full registry search for allowDPRINTF It should be the same path for the x86 version on a x86 windows so if you can be more precisely (HKLM\Software\GNU ? HKCU\Software\GNU ? or ?)
EDIT: Replacing the ffdshow.ax with the old one (3054) does the trick = ffd it's connectable (working)
alexins
28th August 2009, 17:02
Test number 2 : could you install ffdshow 3054 64 bits, make a copy of libavcodec.dll and then install a non working version of ffdshow (3058 for example) and overwrite libavcodec.dll by the rev3054 one ?
Replacing the file does not change anything. The same problem exists with the ffdshow x86 icl10 3056-3063.
_xxl
28th August 2009, 17:09
Replacing the file does not change anything. The same problem exists with the ffdshow x86 icl10 3056-3063.
Only ICL10 version? Is 3055 working?
Mercury_22
28th August 2009, 17:10
Ok I've solved the allowDPRINTF key "mystery" first it has to be created by checking the "Output strings to debugger" but I have no log file (maybe because FFD audio it's not connecting )where should it be? C:\Program Files\ffdshow ? or C:\ ? or...?
EDIT: ICL11 rev 3063 it's working ! http://www.mediafire.com/?sharekey=3f33c77c2cf9ce251686155677bb26855284166a6fc12f6c
Daedalus01
29th August 2009, 03:52
hi, i was wondering if you guys could help me out on a very irritating issue?
i love ffdshow's audio decoder and its ability to normalise / normalize ! it makes the dialogue easier to hear at a volume such that loud sounds dont deafen me!
however, i am having trouble with it when re-encoding a 5.1 source to ac3 5.1 and passing via spdif optical. The normalisation will work but after a while (5-10min, or i think when a scene changes) it will stop working. if i seek to a different part of the video file it works again.
i am using the latest ffdshow.
does anyone know why?
thanks!
clsid
29th August 2009, 12:59
@Mercury_22
You need this tool:
http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
Mercury_22
29th August 2009, 16:30
@Mercury_22
You need this tool:
http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
Thanks !
Here it is http://sharebee.com/e1c4b8ba
Can someone compile revs 3055, 3056 and 3057 x64 version so I can pinpoint the exact rev where it got broken ?
ale5000
30th August 2009, 04:05
ffdshow 3054 is able to load this subtitle: http://waarokkufansub.googlepages.com/WaarokkuSetonoHanayome-01.ass
but it is unable to load this: http://waarokkufansub.googlepages.com/WaarokkuSetonoHanayome-02.ass
mark0077
1st September 2009, 12:15
Anyone know how to make the "grab" feature grab all frames that are output from the yadif de-interlacer in double framerate mode
ie grab double the amount of frames as would normally be grabbed.
At the moment it currently skips every second frame output from yadif. Its like the grab is being triggered from something in the chain that hasn't got the double frame rate, perhaps as the frames are decoded grab gets triggered?
Hopefully someone can update this to make grab be triggered from whatever was before it in the chain, either yadif, avisynth, whatever... as they can possibly change frame rate.
yesgrey
1st September 2009, 14:40
Anyone know how to make the "grab" feature grab all frames that are output from the yadif de-interlacer in double framerate mode
Have you tryed with an avisynth script using ImageWriter function?
mark0077
1st September 2009, 14:54
Nope, I could but just wanted to point this out to ffdshow developers as a potential issue with grab. Also grabbing to BMP doesn't give a clear indication as to what type of YV12 -> RGB conversion is done for example. I am hoping its using my RGB Conversion settings, ie high quality, dithering on, assume full range output, limited range input etc.
rack04
1st September 2009, 18:50
Will the H.264/AVC codecs need to be updated to decode x264 encodings using multi-slices?
clsid
1st September 2009, 18:55
Slices are already supported afaik.
leeperry
2nd September 2009, 02:36
@leeperry
Post a detailed bugreport on sourceforge. Otherwise it will certainly be forgotten.
ok, just did : https://sourceforge.net/tracker/?func=detail&aid=2834209&group_id=173941&atid=867360
this bug also happens on DVD MPEG2, as GinSonic said: http://forum.doom9.org/showpost.php?p=1312403&postcount=7785
each time I wanna open a DVD, I have to disable resizing in ffdshow, then reenable it once the movie is playing...otherwise HR crashes MPC, and EVR/VMR9 zoom the picture to death :o
http://thumbnails8.imagebam.com/4749/22212247489685.gif (http://www.imagebam.com/image/22212247489685)
her34
2nd September 2009, 06:31
would an option be added to audio decoder, "delay" filter, so that all channels are controlled by single entry box? something like an extra entry row with checkbox that will grey out individual channels
Mark_A_W
2nd September 2009, 06:40
Is is possible to create a shortcut to the offline configuration properties for the Audio Processor filter?
Out of the box ffdshow has shortcuts for the Video Decoder and Audio Decoder.
I figured out the Raw Video Filter shortcut (configureRaw).
But I can't figure out one for the Audio Processor (tried configureAudioProcessor, configureProcessor, configureAudioProc, configureProc, etc)
Help please!
TIA
Mark
jmartinr
2nd September 2009, 10:16
this bug also happens on DVD MPEG2, as GinSonic said: http://forum.doom9.org/showpost.php?p=1312403&postcount=7785
each time I wanna open a DVD, I have to disable resizing in ffdshow, then reenable it once the movie is playing...otherwise HR crashes MPC, and EVR/VMR9 zoom the picture to death :o
http://thumbnails8.imagebam.com/4749/22212247489685.gif (http://www.imagebam.com/image/22212247489685)
Rev 3064 seems to be OK. In 3062 some changes were reverted. I had some WMV's that had the same problem but play fine now. Did you check rev 3064?
leeperry
2nd September 2009, 10:29
ahhh, lemme try :)
xvidvideo.ru doesn't make ICL10 builds anymore, and those on sourceforge are old as well..
Mercury_22
2nd September 2009, 12:25
ahhh, lemme try :)
xvidvideo.ru doesn't make ICL10 builds anymore, and those on sourceforge are old as well..
Try XhmikosR's http://www.mediafire.com/?sharekey=3f33c77c2cf9ce251686155677bb26855284166a6fc12f6c
leeperry
2nd September 2009, 12:36
ah great, it seems to be fixed indeed! it wasn't clear from the SVN updates commentaries, and getting the newest builds in ICL10 is not an easy task...but I can play DVD again! :thanks:
PS: I will close my bug report after some extensive testing.
leeperry
2nd September 2009, 12:41
http://www.nanoed.org/courses/carbon_nanotube/ballv02.mpg
http://thumbnails19.imagebam.com/4753/9e4e7347524114.gif (http://www.imagebam.com/image/9e4e7347524114)
ah well, it works...who cares :o
FoLLgoTT
3rd September 2009, 20:25
Can anyone confirm that when outputting LPCM directly from the gabest splitter (or MPC-HC) the right rear channel gets a wrong/defect signal? With TrueHD everything is fine.
It seems to be no problem when the decoder of MPC-HC decodes anything to LPCM and FFDSHOW outputs to the renderer. In this case the signal of the right rear channel is correct. A good Blu-ray to test is "300", because it has LPCM, TrueHD and AC3 audio tracks.
anyone23
3rd September 2009, 22:26
Somehow the auto deinterlacing of ffdshow doesn't work here for a few TV channels.
Example: http://www.file-upload.eu/download-1866342/ffdshow_auto_deinterlacing.m2v.html
Open the file in DGIndex and analyze it. After about 14 seconds, the frames are flagged as progressive but they are in fact interlaced.
The Cyberlink MPEG-2 Codec plays the file flawless and on the televisor the deinterlacing works too.
My ffdshow settings: http://www.pic-upload.de/view-3000528/ffdshow_deinterl.png.html
Catalyst settings: Vector adaptive deinterlacing without pulldown detection, ATI HD 4870 PCIE, Catalyst 9.8.
This happens with all the interlaced content of this TV channel.
Is this a bug of ffdshow?
thewebchat
3rd September 2009, 22:36
I would like to point out a bug about mod4 width video being sent from ffdshow to intermediary filters before the renderer:
http://sourceforge.net/tracker/?func=detail&aid=2849620&group_id=173941&atid=867360
clsid
3rd September 2009, 23:09
@anyone23
Enable the "Process frames flagged as progressive" option.
SledgeHammer_999
3rd September 2009, 23:31
I want to report a bug of ffdshow with subs. Just create a mkv file with this track layout:
1.subtitle
2.video
3.audio
The subtitle track isn't picked up by ffdshow.
anyone23
3rd September 2009, 23:59
@anyone23
Enable the "Process frames flagged as progressive" option.
You mean "Methods: Bob"?
Yeah, but with that option everything gets deinterlaced even content correctly flagged as progressive.
Isn't there a way to make hardware deinterlacing like in Cyberlink (PowerDVD) Decoder because here the auto option works?
STaRGaZeR
4th September 2009, 00:38
You mean "Methods: Bob"?
Yeah, but with that option everything gets deinterlaced even content correctly flagged as progressive.
Isn't there a way to make hardware deinterlacing like in Cyberlink (PowerDVD) Decoder because here the auto option works?
No, because Haruhiko (developer) specifically designed it that way. It's the channel responsability to flag the content as they should. I was against this decision precisely because of DVB issues, but I understand his position. You can create a profile with "Process frames flagged as progressive" option checked and set autoload conditions for this kind of streams.
clsid
4th September 2009, 12:56
I want to report a bug of ffdshow with subs. Just create a mkv file with this track layout:
1.subtitle
2.video
3.audio
The subtitle track isn't picked up by ffdshow.
You should put the subtitles last. Older versions of MPC also do not like subs as the first track.
SledgeHammer_999
4th September 2009, 13:23
You should put the subtitles last. Older versions of MPC also do not like subs as the first track.
Well it is still a bug of ffdshow. I don't think there's an explicit guideline for subtitle tracks being last. It's just a convention. Furthermore if I enable the internal subtitle renderer in MPC the subs are detected.
MPC = 6.4.9.1(rev 104)
clsid
4th September 2009, 14:16
Yes, it is a bug that should be fixed. I just wanted to say that triggering it can be avoided.
Please add it to the BugTracker (http://sourceforge.net/tracker/?group_id=173941&atid=867360).
khagaroth
4th September 2009, 15:24
Is is possible to create a shortcut to the offline configuration properties for the Audio Processor filter?
Out of the box ffdshow has shortcuts for the Video Decoder and Audio Decoder.
I figured out the Raw Video Filter shortcut (configureRaw).
But I can't figure out one for the Audio Processor (tried configureAudioProcessor, configureProcessor, configureAudioProc, configureProc, etc)
Help please!
TIA
Mark
You almost got it, it's configureAudioRaw.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.