home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
watch/edit Videos
Testing MP with GraphEdit, MP does not use the configuration settings
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FlipGer" data-source="post: 181623" data-attributes="member: 10293"><p>Hi,</p><p></p><p></p><p>I never mentioned .h264... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Yes.</p><p></p><p>I never mentioned .h264... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p></p><p>You do not trust my words, right? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p>Code from MP:</p><p>[CODE]if (extension.Equals(".dvr-ms") || extension.Equals(".mpg") || extension.Equals(".mpeg") || extension.Equals(".bin") || extension.Equals(".dat"))</p><p> {</p><p> if (strVideoCodec.Length > 0) videoCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, strVideoCodec);</p><p> if (strAudioCodec.Length > 0) audioCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, strAudioCodec);</p><p> }</p><p> // doesn't help for Music Videos to start..</p><p> //if (extension.Equals(".wmv"))</p><p> //{</p><p> // videoCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, "WMVideo Decoder DMO");</p><p> // audioCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, "WMAudio Decoder DMO");</p><p> //}</p><p> if (extension.Equals(".mp4") || extension.Equals(".mkv"))</p><p> {</p><p> if (strH264VideoCodec.Length > 0) h264videoCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, strH264VideoCodec);</p><p> if (strAudioCodec.Length > 0) audioCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, strAudioCodec);</p><p> }[/CODE]</p><p></p><p>Although not knowing C# I hope you can see that MP sets the Codecs depending on the file extension. MP takes the h264 settings, if the extension is "mkv" or "mp4". Please note, that this code example, is from the "Videos" section. Afaik it differs a littlebit in the DVD and TV section, but I did not take a look into that code. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>Another remark to your question "Why is it programmed that way". This code section is rather old. More than 3 years I think. At this time it was only necessary to take care about the mpeg codec. All upcomming other codecs were just added the easiest way: By adding its most common extension.</p><p></p><p></p><p>Jupp. Saw it. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> Hopefully it will taken care off. I will add my thoughts there too. So it might get more attention.</p><p></p><p>Best regards,</p><p>Flip.</p></blockquote><p></p>
[QUOTE="FlipGer, post: 181623, member: 10293"] Hi, I never mentioned .h264... :) Yes. I never mentioned .h264... :D You do not trust my words, right? ;) Code from MP: [CODE]if (extension.Equals(".dvr-ms") || extension.Equals(".mpg") || extension.Equals(".mpeg") || extension.Equals(".bin") || extension.Equals(".dat")) { if (strVideoCodec.Length > 0) videoCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, strVideoCodec); if (strAudioCodec.Length > 0) audioCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, strAudioCodec); } // doesn't help for Music Videos to start.. //if (extension.Equals(".wmv")) //{ // videoCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, "WMVideo Decoder DMO"); // audioCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, "WMAudio Decoder DMO"); //} if (extension.Equals(".mp4") || extension.Equals(".mkv")) { if (strH264VideoCodec.Length > 0) h264videoCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, strH264VideoCodec); if (strAudioCodec.Length > 0) audioCodecFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, strAudioCodec); }[/CODE] Although not knowing C# I hope you can see that MP sets the Codecs depending on the file extension. MP takes the h264 settings, if the extension is "mkv" or "mp4". Please note, that this code example, is from the "Videos" section. Afaik it differs a littlebit in the DVD and TV section, but I did not take a look into that code. ;) Another remark to your question "Why is it programmed that way". This code section is rather old. More than 3 years I think. At this time it was only necessary to take care about the mpeg codec. All upcomming other codecs were just added the easiest way: By adding its most common extension. Jupp. Saw it. :) Hopefully it will taken care off. I will add my thoughts there too. So it might get more attention. Best regards, Flip. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
watch/edit Videos
Testing MP with GraphEdit, MP does not use the configuration settings
Contact us
RSS
Top
Bottom