ZEDER Mathieu BU IT&L@bs
2010-Apr-14 09:20 UTC
[theora] Cannot connect matroska splitter to theora encoder
Hi everyone, I face a problem trying to encode a mkv file into theora using directshow filters I have a mkv file containing only video encoded in YUY2. I use the DirectShowNet Lib V2.1 ( <http://sourceforge.net/projects/directshownet/files/> http://sourceforge.net/projects/directshownet/files/) I use the matroska splitter directshow filter v1.0.2.9 ( <http://www.matroska.org/downloads/windows.html> http://www.matroska.org/downloads/windows.html) And I use the xiph theroa encoder directshow filter version 0.82.16930 The graph I try to create looks like : fileReader -> Matroska Splitter -> theoraEncoder. When I try to connect theora Encoder to the Matroska splitter the ConnectDirect() method returns an error Code (0x80040207) which is interpreted as "There is no common media type between theses two pins" And here is the issue : My guess is there should be a common media type. When I inspect the different media type the matroska splitter can return (using the EnumMediaTypes method of the pins) I can see : f72a76a0-eb0a-11d0-ace4-0000c0cc16ba 73646976-0000-0010-8000-00aa00389b71 32595559-0000-0010-8000-00aa00389b71 VIDEOINFO2 Video YUY2 05589f80-c356-11ce-bf01-00aa0055595a 73646976-0000-0010-8000-00aa00389b71 32595559-0000-0010-8000-00aa00389b71 VIDEOINFO Video YUY2 And when I inspect the different media types the theora encoder should accept I retrieve 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 32315659-0000-0010-8000-00aa00389b71 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 32315659-0000-0010-8000-00aa00389b71 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 32595559-0000-0010-8000-00aa00389b71 **** 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 32595559-0000-0010-8000-00aa00389b71 ***** 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 56555941-0000-0010-8000-00aa00389b71 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 56555941-0000-0010-8000-00aa00389b71 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 e436eb7d-524f-11ce-9f53-0020af0ba770 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 e436eb7d-524f-11ce-9f53-0020af0ba770 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 e436eb7e-524f-11ce-9f53-0020af0ba770 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 e436eb7e-524f-11ce-9f53-0020af0ba770 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 59565955-0000-0010-8000-00aa00389b71 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 59565955-0000-0010-8000-00aa00389b71 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 55595659-0000-0010-8000-00aa00389b71 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 55595659-0000-0010-8000-00aa00389b71 00000000-0000-0000-0000-000000000000 73646976-0000-0010-8000-00aa00389b71 56555949-0000-0010-8000-00aa00389b71 00-00-00-00-0 73646976-0000-0010-8000-00aa00389b71 56555949-0000-0010-8000-00aa00389b71 Lines with **** shows that there should be a match no ? I have do the same test using another matroska filter (Haali media splitter) and the result is the same. If someone could have any idea Thanx Mathieu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora/attachments/20100414/b79d15c8/attachment-0001.htm
Cristian Adam
2010-May-11 22:26 UTC
[theora] Cannot connect matroska splitter to theora encoder
On 14/04/2010 11:20, ZEDER Mathieu BU IT&L at bs wrote:> > Hi everyone, > > I face a problem trying to encode a mkv file into theora using > directshow filters > > I have a mkv file containing only video encoded in YUY2. > > [...] > > The graph I try to create looks like : > > fileReader -> Matroska Splitter -> theoraEncoder. > > When I try to connect theora Encoder to the Matroska splitter the > ConnectDirect() method returns an error Code (0x80040207) which is > interpreted as > > ?There is no common media type between theses two pins? > > And here is the issue : My guess is there should be a common media type. > > When I inspect the different media type the matroska splitter can > return (using the EnumMediaTypes method of the pins) I can see : >Hi, I just successfully created an ogv file using GraphStudio (http://blog.monogram.sk/janos/tools/monogram-graphstudio/), Mike Wasson's Video Test Source (http://blogs.msdn.com/mikewasson/archive/2008/04/21/video-test-source-filter.aspx), configured to output YUY2 data, and Theora Encoder 0.82. Theora Encoder should accept connections as: MEDIATYPE_Video, MEDIASUBTYPE_YUY2, FORMAT_VideoInfo2 or MEDIATYPE_Video, MEDIASUBTYPE_YUY2, FORMAT_VideoInfo. You should try to build the same DirectShow graph using GraphStudio. GraphStudio can display the media types of the pins, which is very useful. Have you tried using IGraphBuilder::Connect instead of IFilterGraph::ConnectDirect? it doesn't require to specify a media type, and it should just work. Cheers, Cristian. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora/attachments/20100512/a284a1e2/attachment.htm