View Full Version : ffdshow tryouts project: Discussion & Development
SamuriHL
4th October 2009, 19:59
Thanks, Vladd, for testing that. At least you're getting similar results to what I'm seeing. :) Not that it's good, but, at least it's consistent and not something I'm doing wrong.
whurlston
4th October 2009, 20:25
One more question vladd:
At this stage of graph:
FileSource(asynch) > Arcsoft MPEG Demux > ffdshow audio decoder
What do you read on Properties Page of ffdShow ?(under "out")
1. [ffdshow Audio Decoder]/(Out) -> [Default DirectSound Device]/(Audio Input pin (rendered))
Major: MEDIATYPE_Audio
Subtype: MEDIASUBTYPE_PCM
bFixedSizeSamples: TRUE
bTemporalCompression: FALSE
lSampleSize: 1
cbFormat: 40
Format: FORMAT_WaveFormatEx
WAVEFORMATEX:
wFormatTag: 0xfffe (65534)
nChannels: 5
nSamplesPerSec: 48000
nAvgBytesPerSec: 480000
nBlockAlign: 10
wBitsPersample: 16
cbSize: 22
Extradata:
10 00 37 00 00 00 01 00 00 00 00 00 10 00 80 00
00 aa 00 38 9b 71
rica
4th October 2009, 20:32
Thx. But do you see the same info before (without) linking the renderer?
whurlston
4th October 2009, 20:46
Thx. But do you see the same info before (without) linking the renderer?
Yup. GraphStudio just doesn't print the info in the report if it's not linked.
http://forum.doom9.org/attachment.php?attachmentid=10357&stc=1&d=1254685523
SamuriHL
4th October 2009, 20:52
I just realized you guys are using GraphStudio not GraphEdit. Neat. I hadn't seen this before but that's a very impressive piece of software. Will be learning more about it. I know the very basics of GraphEdit but this seems to expand upon that functionality. Nice.
rica
4th October 2009, 20:56
Yup. GraphStudio just doesn't print the info in the report if it's not linked.
http://forum.doom9.org/attachment.php?attachmentid=10357&stc=1&d=1254685523
Yes this was the answer i expected.
IMO ffdshow makes bitstream but no renderer is available yet to render it.
When you link ffdshow to default renderer, ffdshow drops to PCM mode i suppose.
SamuriHL
4th October 2009, 20:57
Well, hopefully they have some success on a WASAPI audio renderer. That would rock.
rica
4th October 2009, 21:02
Hopefully James; everything is ready for James indeed.
http://forum.slysoft.com/showpost.php?p=221929&postcount=27
SamuriHL
4th October 2009, 21:03
We'll see what happens.
whurlston
4th October 2009, 21:09
When you link ffdshow to default renderer, ffdshow drops to PCM mode i suppose.Yup, that's exactly what's happening.
rica
4th October 2009, 21:12
Or another option is MPC-HC Audio Renderer with the contribution of albain:
http://forum.doom9.org/showthread.php?p=1331573#post1331573
rica
4th October 2009, 22:54
BTW, MSDN document:
http://msdn.microsoft.com/en-us/library/dd316761%28VS.85%29.aspx
_ _ _ _ _ _ _
Gerbrand
4th October 2009, 23:13
Hello,
I do not know if this is the right place to post this, but I posted this issue over at avs and did not get an answer.
My issue is the following:
When playing a Blu-ray with LPCM (e.g. Casino Royale, Pirates of the Caribbean) through the following graph
MPC-HC internal splitter -> ffdshow audio -> reclock (encode to AC3) -> SPDIF
I am not getting sound from one of the two surround channels (somethings left and sometimes right).
I have narrowed the problem down to ffdshow audio (I am using build 3069): e.g. if I use MPC-HC's internal LPCM decoder it works fine. Also, if I use ffdshow audio's "swap channel" function I can swap the mute channel from left to right surround.
Ffdshow, reclock and my receiver all report 6 channels present.
Any idea what could be causing this? If I select the Dolby Digital track all works fine, DTS-HD also works (although I only get the core).
Thanks for helping out (or directing me to the right thread),
Gerbrand
rica
4th October 2009, 23:36
Sorry if i misunderstood:
You get LPCM (decoded as is via ffdshow) over what?
You get ac3 (pass-through) over SPDIF, it is fine?
And what are you trying to do: re-encode LPCM to ac3 and sent it to receiver?
Gerbrand
5th October 2009, 00:39
Sorry if I have not been clear enough.
What I try to do is the following: decode the LPCM using FFDshow, then reencode to AC3 using Reclock and output over SPDIF.
I only get this issue when I use ffdshow to decode the LPCM. If I use another decoder, it works fine. Also if I use another format (e.g. DTS) it works. I have tried it without Reclock (use FFDshow for the reencode) and I still get the same issue. So to me it seems it must definitely be ffdshow.
Any ideas?
Gerbrand
rica
5th October 2009, 00:52
Have no idea but i keep going not to understand why you are trying to downsample an LPCM of a Blu?
You don't have analog outputs or an HDMI output (like 4*** series has)?
Anyway, give it a go with this:
FFDShow TrueHD bitstream outputs Reclock IEEE Float mediatype (http://damienbt.free.fr/ffdshow_rev3089_20090927_dbt_beta6_reclockIEEEFloat.zip)
rica
5th October 2009, 01:32
BTW, MSDN document:
http://msdn.microsoft.com/en-us/library/dd316761%28VS.85%29.aspx
Seems MS only agreed with Dolby Laboratories.
DTS-HD support seems to be missing in WAVEFORMATEXTENSIBLE_IEC61937 as far as i understood?
SamuriHL
5th October 2009, 01:33
Um, what the? That seems rather ungood.
whurlston
5th October 2009, 01:52
Seems MS only agreed with Dolby Laboratories.
DTS_HD support is missing in WAVEFORMATEXTENSIBLE_IEC61937 as far as i understand.
It's not missing from the WAVEFORMATEXTENSIBLE_IEC61937, as mentioned in that document.
Support for DTS-HD compressed streams is missing from the Windows 7 HD Audio class driver: http://msdn.microsoft.com/en-us/library/dd567920.aspx
rica
5th October 2009, 01:56
Correct, thanks. :)
Note Not all the available formats are supported by the Windows 7 HD audio class driver. The formats supported by Windows 7 are indicated in the tables with an asterisk (*).
http://img3.imageshack.us/img3/2258/97367725.th.png (http://img3.imageshack.us/i/97367725.png/)
No asterisk on DTS-HD?
Gerbrand
5th October 2009, 07:59
Have no idea but i keep going not to understand why you are trying to downsample an LPCM of a Blu?
You don't have analog outputs or an HDMI output (like 4*** series has)?
My receiver does not have HDMI in and the analogue outs of my motherboard are not so good. I try to use the downsampled LPCM, because sometimes a different mix (more dynamics) is used for the HD audio formats than for the regular dolby digital tracks.
Anyway, I will give the link a try.
Gerbrand
albain
5th October 2009, 08:58
Sorry if I have not been clear enough.
What I try to do is the following: decode the LPCM using FFDshow, then reencode to AC3 using Reclock and output over SPDIF.
I only get this issue when I use ffdshow to decode the LPCM. If I use another decoder, it works fine. Also if I use another format (e.g. DTS) it works. I have tried it without Reclock (use FFDshow for the reencode) and I still get the same issue. So to me it seems it must definitely be ffdshow.
Any ideas?
Gerbrand
FFDShow has the ability to encode to AC3 : just check the AC3 box in the output section and see if it solves the problem
Also, provide the information about what is outputted by ffdshow : sample rate (48khz or more), number of channels, sample size (16 bits, 24 bits, ...)
And compare this information when you don't use ffdshow.
To bitstream testers : status summary
Everything you can see from the output of ffdshow is fully on our control. I can provide AC3,PCM mediatype or anyone else, use the windows 7 IEC structure or not...
So far I have tried several combinations with no success :
AC3 SPDIF structure as for DD/DTS (beta 8, but IEC implementation was not correct, maybe a new test should be done) => Link to new build with AC3 media type (http://www.mediafire.com/?sharekey=05fb19b4b2e4495ee7c82ed4b8f0c380e04e75f6e8ebb871)
Settings : IEC unchecked, use with Reclock. And in Reclock settings, uncheck "Enable audio timestretching" to avoid that reclock messes up with the data
PCM output but with the right description of the compressed data (beta 9)
PCM output with the new IEC structure (for windows 7) (not compatible with reclock, to be used on windows 7 and a compatible audio driver) (beta 9 + IEC checked)
Same IEC structure but with the real compressed media type instead (beta 10 + IEC checked)
The real compressed media type without IEC structure (beta 10)
Next steps :
Work with MPC-HC team to bring the necessary modifications to the audio renderer (wasapi)
Get some answers from Microsoft about the IEC implementation, from AMD about the bitstream implementation
About DTS-HD, this is the next step, the media type is there, there is just a lack of details but this is doable
Inventive Software
5th October 2009, 13:08
If ffdshow doesn't load then it doesn't support the format.
And before you ask. If you want it to get added follow the following steps:
1) Open a feature request at the SourceForge project page
2) Include a sample file
3) Wait*
* This step may take forever. Certainly if it is a wma3 variant that is not yet supported by FFmpeg.
WMA Pro support recently got added to FFmpeg. I posted this twice already but it seems to have gotten buried in the bitstreaming discussion.
THX-UltraII
5th October 2009, 13:59
WMA Pro support recently got added to FFmpeg. I posted this twice already but it seems to have gotten buried in the bitstreaming discussion.
thanks for your reply.
But why is it then that ffdshow does not load (and of course not decode) the audio? I ve selected all the codecs to be sure but it just does not work.
clsid
5th October 2009, 14:00
@Inventive Software
I already knew that as I read the FFmpeg SVN log almost daily. It changes nothing, as there currently does not seem to be anyone with the time and willingness to add it to ffdshow. There are simply too few developers working on ffdshow at this moment.
@THX-UltraII
ffdshow does not include everything that FFmpeg does, only a subset.
THX-UltraII
5th October 2009, 14:03
@Inventive Software
I already knew that as I read the FFmpeg SVN log almost daily. It changes nothing, as there currently does not seem to be anyone with the time and willingness to add it to ffdshow. There are simply too few developers working on ffdshow at this moment.
@THX-UltraII
ffdshow does not include everything that FFmpeg does, only a subset.
So for my 1400gb .mwv material ffdshow is just not usable?!
albain
5th October 2009, 14:56
There are simply too few developers working on ffdshow at this moment.
Yes, this is annoying
Inventive Software
5th October 2009, 16:11
@Inventive Software
I already knew that as I read the FFmpeg SVN log almost daily. It changes nothing, as there currently does not seem to be anyone with the time and willingness to add it to ffdshow. There are simply too few developers working on ffdshow at this moment.
What's required to get it working? I thought it was a case of plugging in the code, changing certain links to it, and compiling and away ya go. Yes I know in real life it's never as simple as that. ;)
albain
5th October 2009, 16:40
What's required to get it working? I thought it was a case of plugging in the code, changing certain links to it, and compiling and away ya go. Yes I know in real life it's never as simple as that. ;)
No, you must :
1/ declare a new decoder in FFDShow and add it to the interface (ffdshow.rc) in the codec section
2/ detect the input format according to the media type and assign the new decoder
SamuriHL
5th October 2009, 18:22
To bitstream testers : status summary[/B]
Everything you can see from the output of ffdshow is fully on our control. I can provide AC3,PCM mediatype or anyone else, use the windows 7 IEC structure or not...
So far I have tried several combinations with no success :
AC3 SPDIF structure as for DD/DTS (beta 8, but IEC implementation was not correct, maybe a new test should be done) => Link to new build with AC3 media type (http://www.mediafire.com/?sharekey=05fb19b4b2e4495ee7c82ed4b8f0c380e04e75f6e8ebb871)
Settings : IEC unchecked, use with Reclock. And in Reclock settings, uncheck "Enable audio timestretching" to avoid that reclock messes up with the data
PCM output but with the right description of the compressed data (beta 9)
PCM output with the new IEC structure (for windows 7) (not compatible with reclock, to be used on windows 7 and a compatible audio driver) (beta 9 + IEC checked)
Same IEC structure but with the real compressed media type instead (beta 10 + IEC checked)
The real compressed media type without IEC structure (beta 10)
"The renderer accepted the change of media type but failed with reconnection"
That's with ReClock enabled, IEC unchecked, with the new AC3 build.
SamuriHL
5th October 2009, 18:24
00000108 0.20812562 [2384] TffdshowDecAudio::CheckConnect (input)
00000109 0.20818004 [2384] TffdshowDecAudio::CheckInputType
00000110 0.20822658 [2384] TffdshowDecAudio::getCodecId
00000111 0.20827572 [2384] TffdshowDecAudio::getCodecId: codecId=103
00000112 0.20832314 [2384] TinputPin::SetMediaType
00000113 0.20837273 [2384] TffdshowDecAudioInputPin::initAudio
00000114 0.20841749 [2384] TffdshowDecAudio::getCodecId
00000115 0.20850879 [2384] TffdshowDecAudio::getCodecId: codecId=103
00000116 0.21362071 [2384] initPreset
00000117 0.22065197 [2384] TffdshowDecAudio::getMediaType:48000 Hz, 8 channels 16-bit integer
00000118 0.22070025 [2384] TffdshowDecAudio::CheckConnect (output)
00000119 0.22074634 [2384] initPreset
00000120 0.22084026 [2384] TffdshowDecAudio::CheckTransform
00000121 0.22088678 [2384] TffdshowDecAudio::CheckInputType
00000122 0.22093242 [2384] TffdshowDecAudio::getCodecId
00000123 0.22097982 [2384] TffdshowDecAudio::getCodecId: codecId=103
00000124 0.22107551 [2384] TffdshowDecAudio::getMediaType:48000 Hz, 8 channels 16-bit integer
00000125 0.22271657 [2384] TffdshowDecAudio::CheckConnect (output)
00000126 0.22276135 [2384] initPreset
00000127 0.22285220 [2384] TffdshowDecAudio::CheckTransform
00000128 0.22289960 [2384] TffdshowDecAudio::CheckInputType
00000129 0.22294743 [2384] TffdshowDecAudio::getCodecId
00000130 0.22299571 [2384] TffdshowDecAudio::getCodecId: codecId=103
00000131 0.22316338 [2384] TffdshowDecAudio::getMediaType:48000 Hz, 8 channels 16-bit integer
00000132 0.22417374 [2384] TffdshowBase::Constructor
00000133 0.22727372 [2384] TffdshowDecAudio::Constructor
00000134 0.22956437 [2384] Join filter graph
00000135 0.22961879 [2384] Removed from filter graph
00000136 0.22966576 [2384] Join filter graph
00000137 0.22973071 [2384] Removed from filter graph
00000138 0.23008052 [2384] TffdshowDecAudio::getMediaType:48000 Hz, 8 channels 16-bit integer
00000139 0.23012967 [2384] TffdshowDecAudio::CheckConnect (output)
00000140 0.23017576 [2384] initPreset
00000141 0.23026310 [2384] TffdshowDecAudio::CheckTransform
00000142 0.23031095 [2384] TffdshowDecAudio::CheckInputType
00000143 0.23035659 [2384] TffdshowDecAudio::getCodecId
00000144 0.23040444 [2384] TffdshowDecAudio::getCodecId: codecId=103
00000145 0.23050188 [2384] TffdshowDecAudio::getMediaType:48000 Hz, 8 channels 16-bit integer
00000146 0.23059580 [2384] TffdshowDecAudio::DecideBufferSize
00000147 0.23064363 [2384] TffAudioDecoder::DecideBufferSize 307200
00000148 0.23089425 [2384] TffdshowDecAudio::getMediaType:48000 Hz, 8 channels 16-bit integer
00000149 0.23099257 [2384] TffdshowDecAudio::getMediaType:48000 Hz, 8 channels 16-bit integer
00000150 0.23111898 [2384] TffdshowDecAudio::getMediaType:48000 Hz, 8 channels 16-bit integer
00000151 0.23121378 [2384] TffdshowDecAudio::getMediaType:48000 Hz, 8 channels 16-bit integer
00000152 0.23222852 [2384] TffdshowBase::Constructor
00000153 0.23526092 [2384] TffdshowDecAudio::Constructor
00000154 0.23754102 [2384] Join filter graph
00000155 0.23759457 [2384] Removed from filter graph
00000156 0.23764066 [2384] Join filter graph
00000157 0.23771703 [2384] Removed from filter graph
00000158 0.28665975 [2384] TffdshowDecAudio::getMediaType:48000 Hz, 8 channels 16-bit integer
00000159 0.42361870 [2384] TffdshowBase::Constructor
00000160 0.42705753 [2384] TffdshowDecVideo::Constructor
00000161 0.42712203 [2384] TffdshowDecVideoOutputPin::Constructor
00000162 0.43005306 [2384] Join filter graph
00000163 0.43010834 [2384] Removed from filter graph
00000164 0.43015707 [2384] Join filter graph
00000165 0.43026504 [2384] TffdshowVideoInputPin::ReceiveConnection
00000166 0.43038353 [2384] Removed from filter graph
00000167 0.43043357 [2384] TffdshowDecVideo::Destructor
00000168 0.43049106 [2384] TffdshowDecVideoOutputPin::Destructor
00000169 0.43138599 [2384] TffdshowBase::Constructor
00000170 0.43478620 [2384] TffdshowDecVideo::Constructor
00000171 0.43484852 [2384] TffdshowDecVideoOutputPin::Constructor
00000172 0.43769789 [2384] Join filter graph
00000173 0.43787959 [2384] Removed from filter graph
00000174 0.43792701 [2384] Join filter graph
00000175 0.43810695 [2384] TffdshowVideoInputPin::ReceiveConnection
00000176 0.43822151 [2384] Removed from filter graph
00000177 0.43828207 [2384] TffdshowDecVideo::Destructor
00000178 0.43833825 [2384] TffdshowDecVideoOutputPin::Destructor
00000179 0.61568171 [2384] TffdshowDecVideo::CheckTransform
00000180 0.62397832 [2384] TffdshowDecVideo::CheckTransform
00000181 0.62615883 [2384] TffdshowDecVideo::CheckTransform
00000182 0.64691114 [2384] TffdshowDecVideo::CheckTransform
00000183 0.64696950 [2384] TffdshowDecAudio::StartStreaming
00000184 0.64790744 [2384] TffdshowVideoInputPin::NewSegment
00000185 0.64795965 [2384] TffdshowDecVideo::NewSegment thread=4040
00000186 0.64801890 [2384] TffdshowDecVideoOutputPin::DeliverNewSegment tStart 0, tStop 12013
00000187 0.64806497 [2384] m_Connected->NewSegment
00000188 0.64815456 [2384] TffdshowDecAudioInputPin::NewSegment
00000189 0.64820153 [2384] TffdshowDecAudio::NewSegment
00000190 0.65036088 [2384] Media Type Structure
00000191 0.65036088 [2384] Format type : FORMAT_WaveFormatEx
00000192 0.65036088 [2384] Sub type : MEDIASUBTYPE_PCM
00000193 0.65036088 [2384]
00000194 0.65036088 [2384] WAVEFORMATEX :
00000195 0.65036088 [2384] wFormatTag : PCM
00000196 0.65036088 [2384] Channels : 2
00000197 0.65036088 [2384] Bits per sample : 16
00000198 0.65036088 [2384] Samples per second : 48000
00000199 0.65036088 [2384] nBlockAlign : 4
00000200 0.65036088 [2384]
00000201 0.65048778 [2384] TaudioParser::checkOutputFormat : the output sample format (compressed stream to bitstream) ac3 is accepted by the renderer for codec s/pdif
00000202 0.65058297 [2384] TffdshowDecAudioInputPin : switching codec from 103 to 1400
00000203 0.65065324 [2384] Media Type Structure
00000204 0.65065324 [2384] Format type : FORMAT_WaveFormatEx
00000205 0.65065324 [2384] Sub type : MEDIASUBTYPE_PCM
00000206 0.65065324 [2384]
00000207 0.65065324 [2384] WAVEFORMATEX :
00000208 0.65065324 [2384] wFormatTag : Dolby AC3 SPDIF
00000209 0.65065324 [2384] Channels : 2
00000210 0.65065324 [2384] Bits per sample : 16
00000211 0.65065324 [2384] Samples per second : 48000
00000212 0.65065324 [2384] nBlockAlign : 4
00000213 0.65065324 [2384]
00000214 0.65240139 [2384] TffdshowDecAudioInputPin::Receive : the output sample format ac3 is not accepted by the renderer
00000215 0.68450594 [2384] TffdshowVideoInputPin::CheckMediaType: YV12, 1920, 1080
00000216 0.68457091 [2384] TffdshowVideoInputPin::ReceiveConnection
00000217 0.68463105 [2384] TffdshowVideoInputPin::CheckMediaType: YV12, 1920, 1080
00000218 0.68467933 [2384] TinputPin::SetMediaType
00000219 0.68472499 [2384] TffdshowDecVideo::SetMediaType
00000220 0.68477368 [2384] TffdshowVideoInputPin::initVideo: darX:16, darY:9
00000221 0.68481934 [2384] TffdshowVideoInputPin::initVideo: YV12, width:1920, height:1080, aspectX:16, aspectY:9
00000222 0.68486410 [2384] initPreset
00000223 0.71386999 [2384] TffdshowDecVideo::reconnectOutput
00000224 0.74393195 [2384] TffdshowDecVideo::CheckTransform
00000225 0.74404734 [2384] TffdshowDecVideo::CheckTransform
00000226 0.74410003 [2384] TffdshowDecVideo::CheckTransform
00000227 0.76301330 [2384] TffdshowDecVideo::CheckTransform
00000228 0.76310813 [2384] TffdshowDecVideo::SetMediaType
00000229 0.76325512 [2384] TffdshowDecVideo::setOutputMediaType
00000230 0.76326960 [2384] TffdshowDecVideo::setOutputMediaType: colorspace:YUY2, biWidth:1920, dstStride:3840, Bpp:2, dstSize:4147200
00000231 2.09366894 [2384] TffdshowDecAudioInputPin::Receive : Connection failed (error 2147746346) !
00000232 2.09465289 [2384] Media Type Structure
00000233 2.09465289 [2384] Format type : FORMAT_WaveFormatEx
00000234 2.09465289 [2384] Sub type : MEDIASUBTYPE_PCM
00000235 2.09465289 [2384]
00000236 2.09465289 [2384] WAVEFORMATEX :
00000237 2.09465289 [2384] wFormatTag : PCM
00000238 2.09465289 [2384] Channels : 2
00000239 2.09465289 [2384] Bits per sample : 16
00000240 2.09465289 [2384] Samples per second : 48000
00000241 2.09465289 [2384] nBlockAlign : 4
00000242 2.09465289 [2384]
00000243 2.09471488 [2384] TaudioParser::checkOutputFormat : the output sample format (compressed stream to bitstream) ac3 is accepted by the renderer for codec s/pdif
00000244 2.09477091 [2384] TaudioCodecBitstream::decode bitstreaming codec 1400, bitrate 640000, sample rate 48000
00000245 2.09482360 [2384] TffdshowDecAudio::deliverSampleSPDIF sample format 16
00000246 2.09488940 [2384] Media Type Structure
00000247 2.09488940 [2384] Format type : FORMAT_WaveFormatEx
00000248 2.09488940 [2384] Sub type : MEDIASUBTYPE_PCM
00000249 2.09488940 [2384]
00000250 2.09488940 [2384] WAVEFORMATEX :
00000251 2.09488940 [2384] wFormatTag : Dolby AC3 SPDIF
00000252 2.09488940 [2384] Channels : 2
00000253 2.09488940 [2384] Bits per sample : 16
00000254 2.09488940 [2384] Samples per second : 48000
00000255 2.09488940 [2384] nBlockAlign : 4
00000256 2.09488940 [2384]
00000257 2.09494662 [2384] TffdshowDecAudio::deliverSampleSPDIF Delivering IEC sample format type 1 - sample size 2560
00000258 2.10980654 [2384] Media Type Structure
00000259 2.10980654 [2384] Format type : FORMAT_WaveFormatEx
00000260 2.10980654 [2384] Sub type : MEDIASUBTYPE_PCM
00000261 2.10980654 [2384]
00000262 2.10980654 [2384] WAVEFORMATEXTENSIBLE :
00000263 2.10980654 [2384] subFormat : MEDIASUBTYPE_PCM
00000264 2.10980654 [2384]
00000265 2.10980654 [2384] wSamplesPerBlock : 16
00000266 2.10980654 [2384] Valid bits per sample : 16
00000267 2.10980654 [2384]
00000268 2.10980654 [2384] WAVEFORMATEX :
00000269 2.10980654 [2384] wFormatTag : WAVE_FORMAT_EXTENSIBLE
00000270 2.10980654 [2384] Channels : 8
00000271 2.10980654 [2384] Bits per sample : 16
00000272 2.10980654 [2384] Samples per second : 96000
00000273 2.10980654 [2384] nBlockAlign : 16
00000274 2.10980654 [2384]
00000275 2.10990620 [2384] TffdshowDecVideo::Run thread=4472
00000276 2.10996509 [2384] TaudioParser::checkOutputFormat : the output sample format (compressed stream to bitstream) Bitstream Dolby True HD is accepted by the renderer for codec bitstream Dolby True HD
00000277 2.11003685 [2384] TffdshowDecAudioInputPin : switching codec from 1400 to 1402
00000278 2.11013699 [2384] Media Type Structure
00000279 2.11013699 [2384] Format type : FORMAT_WaveFormatEx
00000280 2.11013699 [2384] Sub type : MEDIASUBTYPE_PCM
00000281 2.11013699 [2384]
00000282 2.11013699 [2384] WAVEFORMATEXTENSIBLE :
00000283 2.11013699 [2384] subFormat : MEDIASUBTYPE_PCM
00000284 2.11013699 [2384]
00000285 2.11013699 [2384] wSamplesPerBlock : 16
00000286 2.11013699 [2384] Valid bits per sample : 16
00000287 2.11013699 [2384]
00000288 2.11013699 [2384] WAVEFORMATEX :
00000289 2.11013699 [2384] wFormatTag : WAVE_FORMAT_EXTENSIBLE
00000290 2.11013699 [2384] Channels : 8
00000291 2.11013699 [2384] Bits per sample : 16
00000292 2.11013699 [2384] Samples per second : 96000
00000293 2.11013699 [2384] nBlockAlign : 16
00000294 2.11013699 [2384]
00000295 2.11019802 [2384] TffdshowDecAudioInputPin::Receive : the output sample format Bitstream Dolby True HD is accepted by the renderer
00000296 2.11030293 [2384] TffdshowDecAudioInputPin::Receive : Reconnection successful
00000297 2.11036396 [2384] TaudioCodecBitstream::decode bitstreaming codec 1402, bitrate 9876000, sample rate 96000
00000298 2.11041474 [2384] TffdshowDecAudio::deliverSampleSPDIF sample format 16
00000299 2.11047840 [2384] Media Type Structure
00000300 2.11047840 [2384] Format type : FORMAT_WaveFormatEx
00000301 2.11047840 [2384] Sub type : MEDIASUBTYPE_PCM
00000302 2.11047840 [2384]
00000303 2.11047840 [2384] WAVEFORMATEX :
00000304 2.11047840 [2384] wFormatTag : Dolby AC3 SPDIF
00000305 2.11047840 [2384] Channels : 2
00000306 2.11047840 [2384] Bits per sample : 16
00000307 2.11047840 [2384] Samples per second : 96000
00000308 2.11047840 [2384] nBlockAlign : 4
00000309 2.11047840 [2384]
00000310 2.11055970 [2384] TffdshowDecAudio::deliverSampleSPDIF Delivering IEC sample format type 22 - sample size 332
That's the debug info before I clicked ok on the dialog I quoted previously and MPC-HC crashed. Hope this helps.
clsid
5th October 2009, 19:30
So for my 1400gb .wmv material ffdshow is just not usable?!Let ffdshow process uncompressed audio and you can post-process any audio format for which you have a third party decoder installed.
But if it is such a big deal for you, nobody is stopping you from adding it yourself and submitting a patch.
whurlston
5th October 2009, 19:50
"The renderer accepted the change of media type but failed with reconnection"
That's with ReClock enabled, IEC unchecked, with the new AC3 build.
I get the same results.
albain
5th October 2009, 20:14
Okay, I didn't expect a miracle... :-)
I am waiting for a feedback of Casimir666 from MPC-HC team.
Otherwise I will try to implement WASAPI by myself inside MPC-HC. I have already done a little about it on FFDShow for multichannel devices (an unstable feature though :-))
Stay tuned !
SamuriHL
5th October 2009, 20:24
Awesome. We'll be here when you need more stuff tested. :) I have all the builds cached so if you need me to go back to b10 or whatever when the audio renderer is ready I'll be able to do that.
Emilot
5th October 2009, 20:46
we must pay a respect to all of you for your time and passion....
Thank you for your awesome job guys.....:thanks:
whurlston
5th October 2009, 21:32
Okay, I didn't expect a miracle... :-)
I am waiting for a feedback of Casimir666 from MPC-HC team.
Otherwise I will try to implement WASAPI by myself inside MPC-HC. I have already done a little about it on FFDShow for multichannel devices (an unstable feature though :-))
Stay tuned !
It was worth a shot! :D We appreciate all the work you've done so far.
mrcorbo
5th October 2009, 22:52
It was worth a shot! :D We appreciate all the work you've done so far.
Indeed. Thanks to albain and testers both. I think an open-source WASAPI/exclusive audio renderer and open-source HD audio bitstreaming code are both good projects for the community at large whether they come together or separately. I've been testing with my 4870 on Win7 X64, but haven't posted results since I really haven't had anything to add to what has already been posted. Once you get something working, though, I'll be happy to try to break it ;).
Gerbrand
6th October 2009, 00:12
FFDShow has the ability to encode to AC3 : just check the AC3 box in the output section and see if it solves the problem
I did that and reclock reports it receives an AC3 stream, but still the right surround channel stays mute.
Also, provide the information about what is outputted by ffdshow : sample rate (48khz or more), number of channels, sample size (16 bits, 24 bits, ...)
And compare this information when you don't use ffdshow.
In both cases Reclock reports 48000 Hz, 6 channel(s), PCM IEEE Float (which it should).
As shown below if I do not use ffdshow, reclock sees the same input format as when I do use ffdshow. So both MPC-HC's internal LPCM decoder and ffdshow output 6 channels, but for some reason the 6th channel of ffdshow is empty. Any idea what could be going on?
Thanks,
Gerbrand
Reclock IN with ffdshow:
Audio: WAVE_FORMAT_EXTENSIBLE 48000Hz 6ch 9216Kbps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_IEEE_FLOAT {00000003-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 80
WAVEFORMATEX:
wFormatTag: 0xfffe
nChannels: 6
nSamplesPerSec: 48000
nAvgBytesPerSec: 1152000
nBlockAlign: 24
wBitsPerSample: 32
cbSize: 22 (extra bytes)
WAVEFORMATEXTENSIBLE:
wValidBitsPerSample: 32
dwChannelMask: 0x0000003f
SubFormat: {00000003-0000-0010-8000-00AA00389B71}
If I DON'T use ffdshow, reclock reports the following for its input
Audio: WAVE_FORMAT_EXTENSIBLE 48000Hz 6ch 9216Kbps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_IEEE_FLOAT {00000003-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 24
cbFormat: 40
WAVEFORMATEX:
wFormatTag: 0xfffe
nChannels: 6
nSamplesPerSec: 48000
nAvgBytesPerSec: 1152000
nBlockAlign: 24
wBitsPerSample: 32
cbSize: 22 (extra bytes)
WAVEFORMATEXTENSIBLE:
wValidBitsPerSample: 32
dwChannelMask: 0x0000003f
SubFormat: {00000003-0000-0010-8000-00AA00389B71}
Ffdshow IN also reports 6 channels:
Audio: PCM 48000Hz 6ch 6912Kbps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {949F97FD-56F6-4527-B4AE-DDEB375AB80F}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 19
WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 6
nSamplesPerSec: 48000
nAvgBytesPerSec: 864000
nBlockAlign: 18
wBitsPerSample: 24
cbSize: 1 (extra bytes)
THX-UltraII
6th October 2009, 07:54
off-topic:
@SamuriHL: I know you can t say ANYTHING about a releasedate for Slyplayer, but can you maybe say if it is a matter of days, weeks or even months?
albain
6th October 2009, 08:06
I did that and reclock reports it receives an AC3 stream, but still the right surround channel stays mute.
In both cases Reclock reports 48000 Hz, 6 channel(s), PCM IEEE Float (which it should).
As shown below if I do not use ffdshow, reclock sees the same input format as when I do use ffdshow. So both MPC-HC's internal LPCM decoder and ffdshow output 6 channels, but for some reason the 6th channel of ffdshow is empty. Any idea what could be going on?
Do you have a sample to provide ?
So to sum up : you want to play a HD LPCM (so uncompressed) track from a bluray and output it on your SPDIF output.
As SPDIF does not support HD LPCM, you have to convert it to AC3 : you can use FFDShow or Reclock for that
Still, did you enable the mixer filter inside ffdshow to downmix from 7.1 to 5.1 ? Is it 5.1 or 7.1 ?
Indeed AC3 is limited to 6 channels
I applied a fix on LPCM channels mapping on revision 3050.
Can you try a revision 3049 or less and report if the problem is still there ?
Here is a link (http://www.xvidvideo.ru/content/category/1/4/5/) to find older (and newer too) revisions
There may be a different channels mapping between HD LPCM and SD LPCM (5.1).
Also it would be great that you test both LPCM formats : 5.1 and 7.1 to confirm what is not working in each case
SamuriHL
6th October 2009, 14:30
off-topic:
@SamuriHL: I know you can t say ANYTHING about a releasedate for Slyplayer, but can you maybe say if it is a matter of days, weeks or even months?
HAHAHA. If you've seen my thread on Slysoft you would know that there is no release date info at all. I have no insider knowledge or anything like that. Unfortunately, we simply have no idea. I can assuredly tell you it's not days. Probably not weeks, either. The "official" response Slysoft always gives on release dates is "February". :D
THX-UltraII
6th October 2009, 14:35
:rolleyes::D:D:D
thxz m8!
Gerbrand
6th October 2009, 17:16
Do you have a sample to provide ?
I will try to figure out how to extract a sample.
So to sum up : you want to play a HD LPCM (so uncompressed) track from a bluray and output it on your SPDIF output.
As SPDIF does not support HD LPCM, you have to convert it to AC3 : you can use FFDShow or Reclock for that
This is correct.
Still, did you enable the mixer filter inside ffdshow to downmix from 7.1 to 5.1 ? Is it 5.1 or 7.1 ?
The original LPCM is 5.1 (as can be seen from the input of ffdshow that I provided above). I did not enable the mixer, I will try if it helps. However, when I used the swap channel option (which is sort of the same) I could make the mute channel swap.
Can you try a revision 3049 or less and report if the problem is still there ?
I think I used an earlier revision before with the same result, but I will try again.
Also it would be great that you test both LPCM formats : 5.1 and 7.1 to confirm what is not working in each case
I do not know if I have 7.1 LPCM, but I will search my collection.
Thanks for the help so far,
Gerbrand
albain
6th October 2009, 17:23
I reviewed your post and the revision you used is post-3049
Ok, there may be a problem with LPCM 5.1 channel remapping, but if you can confirm that it works with 3049, the fix is easy otherwise I will need a sample
albain
7th October 2009, 22:06
Hi,
a little status :
the wasapi audio renderer is nearly finished. I have a few insights on the Buffer feeding. This is the mpc audio renderer on which I added wasapi support. Tomorrow I won't have time to work on it. Maybe friday
rica
7th October 2009, 22:27
Hi,
a little status :
the wasapi audio renderer is nearly finished. I have a few insights on the Buffer feeding. This is the mpc audio renderer on which I added wasapi support. Tomorrow I won't have time to work on it. Maybe friday
:):):) :thanks:
Samuri; ready to fly? :D
Inventive Software
7th October 2009, 22:52
BUG: ffdshow will not play this WMV9 video without the picture looking extremely blocky and just plain wrong, with libavcodec or the wmv9 decoder. http://www.megaupload.com/?d=4UQ8SHDP
Playback is absolutely fine in Windows Media Player. :confused:
Only upon disabling the WMV3 decoder in ffdshow does it play correctly, and that's only because it goes back to MS's decoder.
Using latest ffdshow from clsid's generic builds.
SamuriHL
7th October 2009, 23:04
Hi,
a little status :
the wasapi audio renderer is nearly finished. I have a few insights on the Buffer feeding. This is the mpc audio renderer on which I added wasapi support. Tomorrow I won't have time to work on it. Maybe friday
Most excellent. You've done some great work here. I'm quite sure everyone appreciates your efforts. I certainly do. :) Thanks!!
SamuriHL
7th October 2009, 23:04
:):):) :thanks:
Samuri; ready to fly? :D
That I am.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.