Normal
Hi,I never mentioned .h264... Yes.I never mentioned .h264... 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.
Hi,
I never mentioned .h264...
Yes.
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);
}[/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.