View Full Version : ffdshow tryouts project: Discussion & Development
avivahl
1st April 2009, 16:12
I have fixed at rev 2849.Thank you (will test once alexins compile the new revision).
I also noticed that the behavior of the "Vertical Position" has changed a bit. I now have to use ~95% (instead of 90%) to get it where I want it. Isn't 90% too low as a default?
EpsilonX
1st April 2009, 16:30
About the subtitles in FFDShow...
Can it be used to position subtitles from a DVD...
Let's say, below the picture as in the black bar...
So it won't be on top of the video...
If it's possible, is it possible with ZoomPlayer or MPC-HC..?
IIRC both player use different method in displaying subtitle...
CMIIW...
Hoping to be able to use the smoothing option available...
Unless it's actually active all this time... :D
BTW...
IIRC before build 28xx, I didn't have to enable FFDShow's subtitle to display subtitles in ZP...
But now, it will cause the most bottom part of the monitor to be "highlighted" in white...
Like 2-5 pixel in height across the whole screen width...
But if I enable FFDShow's subtitle, it's all fine...
Tried it with a clean profile, same thing...
It only happens with the Resize filter active though...
No biggie, just curious... :D
breez
1st April 2009, 17:31
indeed, I've added a VST vu-meter and on my loudest 24/96 5.1 tracks, I have to lower the volume to 45% in ffdshow prior to the matrix to avoid clipping > -0.1dB
I'd like to take it in account directly in the Logic 7 matrix, but w/ the inverted phases and stuff I've got no idea how to do so :o
it's not very clear how to compute coeffs : http://ac3filter.net/guides/mixing_matrix
Sum the absolute values of the coeffs for one channel and then divide every coeff by that number. That guarantees no clipping.
Example (the first matrix you posted): 0.853 + 0.5 + 0.14 + 0.5 + 0.5 + 0.5 = 2.993
Coeffs become 0.285, 0.167, -0.047 and so on.
leeperry
1st April 2009, 18:07
Sum the absolute values of the coeffs for one channel and then divide every coeff by that number. That guarantees no clipping.
Example (the first matrix you posted): 0.853 + 0.5 + 0.14 + 0.5 + 0.5 + 0.5 = 2.993
Coeffs become 0.285, 0.167, -0.047 and so on.
well OK, but lowering the volume to 45% in ffdshow prior to the matrix just "works"...I never clip, even on my most dynamic 24/96 lossless stuff and these psychoacoustic coeffs do wonders :eek:
any idea how to reach 45% if 100% is 1+0.707+0.9-0.38+0.707 please? :o
http://www.image-load.eu/out.php/t156027_logic7.png (http://www.image-load.eu/out.php/i156027_logic7.png) http://www.image-load.eu/out.php/t156028_uuuu.png (http://www.image-load.eu/out.php/i156028_uuuu.png)
leeperry
1st April 2009, 19:46
BTW, is there any working source filter for FLAC? so I could use ffdshow's decoder?
I'm not too lucky w/ madflac on 24/96 files these days....as soon as I add ffdshow on top of it I get garbled audio on some files :confused:
STaRGaZeR
1st April 2009, 19:48
You can install the mingw64 + yasm, and more…
cd /src/ffmpeg
make 64BIT=yes
cd ../mplayer
make 64BIT=yes
cd ../codecs/libmpeg2
make 64BIT=yes
I've already installed them, even make64 but this doesn't matter. The problem is that as soon as it starts the compilation I get this error:
http://thumbnails12.imagebam.com/3146/898bdc31457128.gif (http://www.imagebam.com/image/898bdc31457128)
I'm using MinGW64 from here: http://sourceforge.net/project/showfiles.php?group_id=202880&package_id=311650, mingw-w64-bin_i686-mingw_20090326.zip to be exact.
Brazil2
1st April 2009, 20:07
http://www.image-load.eu/out.php/i155923_mix00.png
What's the point to have a negative value for the FR channel in the Left output and a negative value for the FL channel in the Right output ? I don't get it... :confused:
leeperry
1st April 2009, 20:09
What's the point to have a negative value for the FR channel in the Left output and a negative value for the FL channel in the Right output ? I don't get it... :confused:
phase inversion my friend, these values are based on psychoacoustic principles...try it, it's great :)
ok MPC HC has a standalone FLAC source filter, hopefully ffdshow will play all my 24/96 FLAC files :)
Brazil2
1st April 2009, 20:13
phase inversion
AFAIK that should be OK for DTS only.
But anyway since there is no output from the FR to the Left output I still don't get it. As we are talking about FRONT channels and not the Back and Surround ones.
leeperry
1st April 2009, 20:25
it's the Logic 7 matrix from Lexicon, it uses psychoacoustic principles to widen the soundstage...mostly it sends a very low copy of the opposite front channel to create a sorta "out of head" sound, but not as hollow as Dolby Headphone/Virtual Speaker, much more subtle...it's really awesome on headphones
it seems that the MPC HC flac source filter is tied to its own audio decoder, it doesn't let ffdshow decode on my XP box.....and I sure hope that it doesn't downsample 24/96 to 16/48, but at least it doesn't give garbled audio like madflac :)
HMS takes over for FLAC embedded in MKV, so ffdshow does the decoding :)
PS: I got 2 profiles for music, one for 6 channels audio, one for stereo...it works w/ madflac/WavPack/.wav files but not w/ the internal MPC HC decoder...ffdshow always loads the stereo profile even though it shows "6 channels PCM uncompressed" as input :confused:
and problem remains if I make one profile for stereo and one for the rest...
here's a 5.1 24/96 FLAC sample :
http://www.megaupload.com/?d=LYMN7DI4
here's what MPC HC says, and yet ffdshow will pick my "2 channels" profile even though it says "6 channels uncompressed" as input ?!
same problem occurs w/ AC3Filter...apparently the number of channels condition is buggy :(
CLSID: {1930D8FF-4739-4E42-9199-3B2EDEAA3BF2}
Filter: C:\96000.flac
Pin: Output
- Connection media type:
Audio: FLAC 96000Hz 6ch 13824Kbps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {1541C5C0-CDDF-477D-BC0A-86F8AE7F8354}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 18
WAVEFORMATEX:
wFormatTag: 0xf1ac
nChannels: 6
nSamplesPerSec: 96000
nAvgBytesPerSec: 1728000
nBlockAlign: 1
wBitsPerSample: 24
cbSize: 18 (extra bytes)
haruhiko_yamagata
1st April 2009, 23:59
I've already installed them, even make64 but this doesn't matter. The problem is that as soon as it starts the compilation I get this error:
http://thumbnails12.imagebam.com/3146/898bdc31457128.gif (http://www.imagebam.com/image/898bdc31457128)
I'm using MinGW64 from here: http://sourceforge.net/project/showfiles.php?group_id=202880&package_id=311650, mingw-w64-bin_i686-mingw_20090326.zip to be exact.
Try 'make clean' and rebuild.
STaRGaZeR
2nd April 2009, 00:23
Try 'make clean' and rebuild.
That did the trick :)
puffpio
2nd April 2009, 10:10
software used:
media player classic home cinema 64 bit
ffdshow tryouts rev 2832 64 bit
windows 7 64 bit
I MPC-HC I uncheck the internal filters for H264
But ffdshow will only decode H264 if it is set to use libavcodec. If I set it to use ffmpeg-mt, then I get an error that says the following pin(s) could not find a connectable filter. is this a known issue? or how can I get ffmpeg-mt to work?
D:\test\vid.mp4::GPAC ISO Video Handler
Media Type 0:
--------------------------
Video: MPEG4 Video (H264) 320x240 29.97fps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {31637661-0000-0010-8000-00AA00389B71}
formattype: FORMAT_MPEG2_VIDEO {E06D80E3-DB46-11CF-B4D1-00805F6CBBEA}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 161
VIDEOINFOHEADER:
rcSource: (72081392,35106736)-(34981368,1078664988)
rcTarget: (72081424,48)-(34981368,1078664988)
dwBitRate: 0
dwBitErrorRate: 0
AvgTimePerFrame: 333673
VIDEOINFOHEADER2:
dwInterlaceFlags: 0x00000000
dwCopyProtectFlags: 0x00000000
dwPictAspectRatioX: 320
dwPictAspectRatioY: 240
dwControlFlags: 0x00000000
dwReserved2: 0x00000000
MPEG2VIDEOINFO:
dwStartTimeCode: 0
cbSequenceHeader: 29
dwProfile: 0x00000042
dwLevel: 0x0000000d
dwFlags: 0x00000004
BITMAPINFOHEADER:
biSize: 40
biWidth: 320
biHeight: 240
biPlanes: 1
biBitCount: 24
biCompression: avc1
biSizeImage: 0
biXPelsPerMeter: 0
biYPelsPerMeter: 0
biClrUsed: 0
biClrImportant: 0
pbFormat:
0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 69 17 05 00 00 00 00 00 ........i.......
0030: 00 00 00 00 00 00 00 00 40 01 00 00 f0 00 00 00 ........@...ð...
0040: 00 00 00 00 00 00 00 00 28 00 00 00 40 01 00 00 ........(...@...
0050: f0 00 00 00 01 00 18 00 61 76 63 31 00 00 00 00 ð.......avc1....
0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0070: 00 00 00 00 1d 00 00 00 42 00 00 00 0d 00 00 00 ........B.......
0080: 04 00 00 00|00 15 67 42 c0 0d 9a 74 0a 0f d0 80 ......gBÀ.št..Ѐ
0090: 00 00 32 00 00 0b b5 47 8a 15 50 00 04 68 ce 32 ..2...µGŠ.P..hÎ2
00a0: c8 È
Media Type 1:
--------------------------
Video: MPEG4 Video (H264) 320x240 29.97fps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {31435641-0000-0010-8000-00AA00389B71}
formattype: FORMAT_MPEG2_VIDEO {E06D80E3-DB46-11CF-B4D1-00805F6CBBEA}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 161
VIDEOINFOHEADER:
rcSource: (72081392,35106736)-(34981656,1078664988)
rcTarget: (72081424,48)-(34981656,1078664988)
dwBitRate: 0
dwBitErrorRate: 0
AvgTimePerFrame: 333673
VIDEOINFOHEADER2:
dwInterlaceFlags: 0x00000000
dwCopyProtectFlags: 0x00000000
dwPictAspectRatioX: 320
dwPictAspectRatioY: 240
dwControlFlags: 0x00000000
dwReserved2: 0x00000000
MPEG2VIDEOINFO:
dwStartTimeCode: 0
cbSequenceHeader: 29
dwProfile: 0x00000042
dwLevel: 0x0000000d
dwFlags: 0x00000004
BITMAPINFOHEADER:
biSize: 40
biWidth: 320
biHeight: 240
biPlanes: 1
biBitCount: 24
biCompression: AVC1
biSizeImage: 0
biXPelsPerMeter: 0
biYPelsPerMeter: 0
biClrUsed: 0
biClrImportant: 0
pbFormat:
0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 69 17 05 00 00 00 00 00 ........i.......
0030: 00 00 00 00 00 00 00 00 40 01 00 00 f0 00 00 00 ........@...ð...
0040: 00 00 00 00 00 00 00 00 28 00 00 00 40 01 00 00 ........(...@...
0050: f0 00 00 00 01 00 18 00 41 56 43 31 00 00 00 00 ð.......AVC1....
0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0070: 00 00 00 00 1d 00 00 00 42 00 00 00 0d 00 00 00 ........B.......
0080: 04 00 00 00|00 15 67 42 c0 0d 9a 74 0a 0f d0 80 ......gBÀ.št..Ѐ
0090: 00 00 32 00 00 0b b5 47 8a 15 50 00 04 68 ce 32 ..2...µGŠ.P..hÎ2
00a0: c8 È
Leak
2nd April 2009, 10:42
ffdshow tryouts rev 2832 64 bit
*cough*Revision 2838*cough* (http://forum.doom9.org/showthread.php?p=1267600#post1267600)
haruhiko_yamagata
2nd April 2009, 11:31
About the subtitles in FFDShow...
Can it be used to position subtitles from a DVD...
Let's say, below the picture as in the black bar...
So it won't be on top of the video...
If it's possible, is it possible with ZoomPlayer or MPC-HC..?
IIRC both player use different method in displaying subtitle...
CMIIW...
Hoping to be able to use the smoothing option available...
Unless it's actually active all this time... :D
It's impossible or very hard. DVD application requires 4:3 or 16:9 display aspect ratio. If ffdshow add borders, DVD menu won't work.
BTW...
IIRC before build 28xx, I didn't have to enable FFDShow's subtitle to display subtitles in ZP...
But now, it will cause the most bottom part of the monitor to be "highlighted" in white...
Like 2-5 pixel in height across the whole screen width...
But if I enable FFDShow's subtitle, it's all fine...
Tried it with a clean profile, same thing...
It only happens with the Resize filter active though...
No biggie, just curious... :D
Could you give me more details?
What is the source you are playing? Is it a file or DVD?
What is the resolution of video?
Could you send me your settings (go to 'Profiles/ Preset settings' and press 'Save to file')?
haruhiko_yamagata
2nd April 2009, 11:35
Same problem as clsid, ffdshow just fails to connect when -mt is selected as decoder.
Please try this.
launch \Program Files\Microsoft SDKs\Windows\v6.0\Bin\Depends.exe
Drag and drop ffmpegmt.dll there.
What does it say?
haruhiko_yamagata
2nd April 2009, 11:45
Thank you (will test once alexins compile the new revision).
I also noticed that the behavior of the "Vertical Position" has changed a bit. I now have to use ~95% (instead of 90%) to get it where I want it. Isn't 90% too low as a default?
Yes, the behavior has been changed.
I have changed default to 94%.
Leak
2nd April 2009, 13:49
It's impossible or very hard. DVD application requires 4:3 or 16:9 display aspect ratio. If ffdshow add borders, DVD menu won't work.
I think you should say "using DVD menus with the mouse won't work". Using a remote control or the keyboard (or just taking into account that the mouseover spots are actually above/below the image) will continue to work with it...
mark0077
2nd April 2009, 13:52
haruhiko, did you make any changes to ffdshow regarding enforcing 4:3 or 16:9 or are you still not sure what to do...
clsid
2nd April 2009, 13:59
Please try this.
launch \Program Files (x86)\Microsoft SDKs\Windows\v6.0\Bin\Depends.exe
Drag and drop ffmpegmt.dll there.
What does it say?
Here is a screenshot:
http://i40.tinypic.com/zjch8p.png
STaRGaZeR
2nd April 2009, 14:10
Please try this.
launch \Program Files (x86)\Microsoft SDKs\Windows\v6.0\Bin\Depends.exe
Drag and drop ffmpegmt.dll there.
What does it say?
It was in \Program Files\Microsoft SDKs\Windows\v6.0\Bin\Depends.exe
http://thumbnails12.imagebam.com/3152/7ae09c31517167.gif (http://www.imagebam.com/image/7ae09c31517167)
If you need anything else let me know. ffmpegmt.dll is from xvidvideo.ru's rev2849 x64.
EpsilonX
2nd April 2009, 14:21
Could you give me more details?
What is the source you are playing? Is it a file or DVD?
What is the resolution of video?
Could you send me your settings (go to 'Profiles/ Preset settings' and press 'Save to file')?
Source is DVD...
Tried using clean install rev2849 from XvidVideo.Ru...
The only setting changed are...
1.Enable libmpeg2 + DVD Decoding option in Codecs
2.Set Resize to 1360x768, select "No Aspect Ratio Correction"
Notice the white line across the screen when the Subtitle option is disabled...
STaRGaZeR
2nd April 2009, 14:37
Source is DVD...
Tried using clean install rev2849 from XvidVideo.Ru...
The only setting changed are...
1.Enable libmpeg2 + DVD Decoding option in Codecs
2.Set Resize to 1360x768, select "No Aspect Ratio Correction"
Notice the white line across the screen when the Subtitle option is disabled...
My experience:
1.- ffdshow displays DVD subtitles even when the subtitle filter is disabled and MPC's internal subtitle renderer is enabled. It does not autoload with normal files.
2.- The white line appears only if resize is enabled and ffdshow is displaying autoloaded subtitles and the subtitle filter is disabled. Changing any of these will make it disappear.
haruhiko_yamagata
2nd April 2009, 15:09
Here is a screenshot:
Which ffmpegmt.dll did you use?
It looks like a problem in libpthreadGC2.a.
haruhiko_yamagata
2nd April 2009, 15:24
It was in \Program Files\Microsoft SDKs\Windows\v6.0\Bin\Depends.exe
http://thumbnails12.imagebam.com/3152/7ae09c31517167.gif (http://www.imagebam.com/image/7ae09c31517167)
If you need anything else let me know. ffmpegmt.dll is from xvidvideo.ru's rev2849 x64.
It looks perfect...
I don't know why it does not load.
clsid
2nd April 2009, 15:27
I used the one I build myself.
Yes, I also suspect a problem with libpthreadGC2.a. Which one are you currently using?
The one from MinGW64 project page (http://sourceforge.net/project/showfiles.php?group_id=202880&package_id=293298) gives me linking errors. The one build by xxl links ok, but gives broken dll.
The linking errors are:
libavcodec/pthread.o:pthread.c:(.text+0x61): undefined reference to `_imp__pthread_mutex_lock'
libavcodec/pthread.o:pthread.c:(.text+0x68): undefined reference to `_imp__pthread_mutex_unlock'
...
the library only contains definitions without the "_imp__" prefix.
STaRGaZeR
2nd April 2009, 15:39
It looks perfect...
I don't know why it does not load.
I also tried with graphstudio64, ffdshow just does not accept the connection.
haruhiko_yamagata
2nd April 2009, 15:40
The one from MinGW64 project page (http://sourceforge.net/project/showfiles.php?group_id=202880&package_id=293298) gives me linking errors. The one build by xxl links ok, but gives broken dll.
The linking errors are:
the library only contains definitions without the "_imp__" prefix.If you mean the one in the self extracting exe file, it's for x86. You have to apply pthreads-w64.patch to the source code and compile or download .a and .dll.
clsid
2nd April 2009, 15:43
No, I am using the standalone libpthreadGC2.a file.
puffpio
2nd April 2009, 17:54
*cough*Revision 2838*cough* (http://forum.doom9.org/showthread.php?p=1267600#post1267600)
nice! thanks. I'll grab myself a more recent build
puffpio
3rd April 2009, 09:01
nice! thanks. I'll grab myself a more recent build
I installed revision 2850 of ffdshow 64 bit build (from here http://www.xvidvideo.ru/content/view/699/5/)
and still, when I set H264 to be decoded by ffmpeg-mt, media player classic home cinema still can't find a connectable filter..switching to libavcodec works fine still...
any ideas?
haruhiko_yamagata
3rd April 2009, 10:07
@puffpio
Please read a few pages from the latest of this thread.
morsa
3rd April 2009, 10:33
Will anybody add support for DVCproHD in FFDSHOW?
fastplayer
3rd April 2009, 10:36
Will anybody add support for DVCproHD in FFDSHOW?
Your question has already been answered:
http://forum.doom9.org/showthread.php?p=1267163#post1267163
ikarad
4th April 2009, 10:12
I have re-enabled external subtitles file for DVD. I disabled for a reason, DVDs may have DVD subtitles and closed caption. If three kind of subtitles are displayed at the same time, it's just a mess. And this really happens (strictly speaking, external subtitles are not displayed at the same time as DVD subtitles, but if DVD subtitles disappear, external subtitles appear immediately...), ffdshow just does not crash.
Thanks. But There is a problem.
Now, external subtitles are displayed but they are desynchronized with video.
At the start of the dvd there is nearly 10 seconds of ad or logos displays and then, the movie start (normally subtitles start also with movie and not logos or ad).
But here, subtitles start with logos and ad. Consequently when the movie start, some subtitles are displayed before the start of movie and there is a gap with voice in the movie and subtitles.
the gap depends on the lenght of ad or logos displayed before the movie.
here an example:
http://www.zshare.net/info.html?58171633-15b887cac10caf87421ce669c23063c5
subtitle file:
http://www.zshare.net/info.html?58171999-660b36e99b3ecc4c87a68229c75747ad
ffdshow 2850,
fdshow tracker
https://sourceforge.net/tracker/?func=detail&aid=2730487&group_id=173941&atid=867360
video captured by fraps to show the problem
http://www.zshare.net/info.html?58172420-7bf85ad1e00b79286035a52df9223be1
haruhiko_yamagata
5th April 2009, 02:24
Thanks. But There is a problem.
Now, external subtitles are displayed but they are desynchronized with video.
At the start of the dvd there is nearly 10 seconds of ad or logos displays and then, the movie start (normally subtitles start also with movie and not logos or ad).
I knew it, please add delay (in the dialog 'Delay:' plus 'Keys & remote' numpad + and -) until I have time to fix it.
haruhiko_yamagata
5th April 2009, 02:27
haruhiko, did you make any changes to ffdshow regarding enforcing 4:3 or 16:9 or are you still not sure what to do...
Maybe the AR must match either with 4:3, 16:9 or container AR.
BTW, I'm working on DVD's ff and rew.
Joniii
5th April 2009, 07:57
Is there any way to get ffdshow working again on Windows 7 (build 7068) with Xvid/H.264/VC-1/MPEG-2?
Leak
5th April 2009, 12:30
Is there any way to get ffdshow working again on Windows 7 (build 7068) with Xvid/H.264/VC-1/MPEG-2?
You might want to read this thread (http://forum.doom9.org/showthread.php?t=145906); somewhere further down there's some discussion what you need to fiddle with in the registry to make MS's codecs less "special"...
(NB: I haven't used Windows 7 yet, so I can't guarantee it'll work...)
np: Autechre - Draun Quarter (Envane)
ikarad
5th April 2009, 16:30
I knew it, please add delay (in the dialog 'Delay:' plus 'Keys & remote' numpad + and -) until I have time to fix it.
thanks but I hope you will fix as soon as possible
yesgrey
6th April 2009, 00:22
anyone know what 45% of -0.38 is :confused: Not -0.844 apparently...
-0.38*0.45 = -0.171
leeperry
6th April 2009, 00:29
-0.38*0.45 = -0.171
indeed, you nailed it! I thought because it was out of phase it had to be divided by 0.45 :rolleyes:
ah well, hopefully the random glitches on my 24/96 5.1 content will vanish...it never occured before I started playing around w/ the ffdshow volume filter :confused:
:thanks:
yesgrey
6th April 2009, 00:32
iI thought because it was out of phase it had to be divided by 0.45 :rolleyes:
No, the out-of-phase is handled by the minus sign.;)
mark0077
6th April 2009, 13:36
Seeing as you guys are talking about audio, why does the ffdshow mixer feature to expand stereo to rear channels only give them 50% volume. Shouldn't it just send an exact copy of the front channels to the rear channels. This is what I am hoping to achieve.
leeperry
6th April 2009, 15:51
it's all explained on that site from David Griesinger(main DSP engineer for Lexicon/Harman Kardon) : http://www.davidgriesinger.com/
especially this PPT :
http://www.davidgriesinger.com/surround_from_stereo2.ppt
and especially this slide :
http://www.image-load.eu/out.php/t156390_mixx.png (http://www.image-load.eu/out.php/i156390_mixx.png)
you need to lower the volume of the rear channels otherwise the loudness would be too high.
if you look hard enough, he publishes all his matrixes for 5.1>stereo, stereo>5.1 and stereo>7.1....this would be a great asset to have them in ffdshow, for uncompromised SQ :)
his Logic7 matrixes are the best on the market, as I understand it!
but Haruhiko is apparently the only active ffdshow coder, and he mostly focuses on ffdshow video...so fix the matrixes yourself, the most valuable infos I found are on this engineer's site....he's got it all figured out :devil:
albain
6th April 2009, 16:03
@clsid, Haruhiko, _xxl
I have prepared a set of 2 C# projects
Project 1 FFDShowAPI .Net library : this library (used by my plugin Media Control) can be integrated into third party players to communicate with and control FFDShow.
Project 2 sample application in C# too that uses some features of the library (find a FFDShow instance, control playback, list and switch subtitle/audio streams...)
This code is free to use and may be promoted to enhance the integration of FFDShow inside other projects.
The only requirement is to have a .Net compiler (visual studio)
I would like to know how to integrate it into subversion.
Here is the zip package of the sources :
FFDShowAPI .Net sources (http://damienbt.free.fr/FFDShowAPI.zip)
Features of the library :
Enable and set postprocessing intensity
Enable and set picture properties (brightness, hue...)
Enable and set horizontal or vertical crop
Enable and set resize
Enable sharpen
Enable noise reduction
Enable deinterlacer
Set subtitles delay
Set audio delay
List and select an external subtitle file
List and select subtitle/audio streams
List and select chapters (whenever supported)
Fast forward/rewind functionality
Set active video preset
Set default audio or video preset
Set an OSD message to be displayed at a given position
FYI, this library uses the FFDShowRemoteAPI integrated into FFDShow video decoder.
mark0077
6th April 2009, 16:07
it's all explained on that site from David Griesinger(main DSP engineer for Lexicon/Harman Kardon) : http://www.davidgriesinger.com/
especially this PPT :
http://www.davidgriesinger.com/surround_from_stereo2.ppt
and especially this slide :
http://www.image-load.eu/out.php/t156390_mixx.png (http://www.image-load.eu/out.php/i156390_mixx.png)
you need to lower the volume of the rear channels otherwise the loudness would be too high.
if you look hard enough, he publishes all his matrixes for 5.1>stereo, stereo>5.1 and stereo>7.1....this would be a great asset to have them in ffdshow, for uncompromised SQ :)
his Logic7 matrixes are the best on the market, as I understand it!
but Haruhiko is apparently the only active ffdshow coder, and he mostly focuses on ffdshow video...so fix the matrixes yourself, the most valuable infos I found are on this engineer's site....he's got it all figured out :devil:
Very interesting set of slides but he seems to talk about complicated mixing with some sort of goal different to mine (just hear my stereo content from front and rear). Even talking about panning, etc makes me think this is not what I am after AT ALL.
I just want the original stereo sound untouched sent to rear channels, nothing more. This has always sounded gorgeous to me compared to any of these advanced expanders, including the dolby ones. They never have sounded good to me for some reason.
I can easily create a custom matrix in ffdshow.... I only want that matrix used obv when stereo content comes in, not on 5.1 content. Can't seem to achieve this through ffdshow presets, tried a few months back and changing preset on input channel number didn't work for some reason. I shall try again.
leeperry
6th April 2009, 16:14
he seems to talk about complicated mixing with some sort of goal different to mine (just hear my stereo content from front and rear)
[...]
Can't seem to achieve this through ffdshow presets, tried a few months back and changing preset on input channel number didn't work
well the ffdshow audio channels detection for automatic profiles doesn't work with some decoders(MPC HC/AC3filter), that might be your problem.
I've filed a ticket on the ffdshow bug tracker, hopefully someone will be able to look into it http://forum-images.hardware.fr/images/perso/sniperr.gif
well these algorithms make very gorgeous multichannel conversions from stereo, nothing to do w/ DPL2 and stuff...this is far more refined ;)
if I had known about ffdshow when I was a kid, I would have continued coding in K-Seka assembler on Amiga :rolleyes:
mark0077
6th April 2009, 16:24
well the ffdshow audio channels detection for automatic profiles doesn't work with some decoders(MPC HC/AC3filter), that might be your problem.
I've filed a ticket on the ffdshow bug tracker, hopefully someone will be able to look into it http://forum-images.hardware.fr/images/perso/sniperr.gif
well these algorithms make very gorgeous multichannel conversions from stereo, nothing to do w/ DPL2 and stuff...this is far more refined ;)
if I had known about ffdshow when I was a kid, I would have continued coding in K-Seka assembler on Amiga :rolleyes:
Yeah would be great to get that fixed. My soundcard drivers only has some of the dolby expanders, a dts neo one I think, and some D3D GX which I don't have a clue what it is. Would be fantastic to be able to force ffdshow to be loaded in EVERY app just to perform this stereo -> multichannel conversion, even games etc. Would love to plug it into winamp especially, just to do the expansion.
leeperry
6th April 2009, 16:30
well I've ditched all the other audio players because 1)ffdshow is unmatched for audio processing(too bad the winamp plugin support doesn't work too well, but Haruhiko & Christian Budde are looking into it) and 2)MPC opens really fast, 1/10" of a second...I like that..foobar is just as slow as KMP, they need like 1 or 2 seconds to open :rolleyes:
you can force ffdshow audio in WinDVD9 and many other apps from my experience if you check "uncompressed : all" in its settings.
PS: having the "number of channels" condition working w/ the MPC HC decoder would enable me to stop using madflac...which is giving static in WaveOut on XP :(
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.