Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, November 12, 2021 12:01:19 AM(UTC)
MikeRodriguez

Groups: Registered
Posts: 4


I want to retreive and change the settings for H264 video and audio programatically.
Is the code the same for directshow and mediafouncation sdk?

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, November 15, 2021 11:38:24 AM(UTC)
Marcus Andra

Groups: Registered, Manager, Tech Support, Administrators
Posts: 107

Was thanked: 9 time(s) in 9 post(s)

Hi Mike,

If you are wanting to encode your files with different h.264 settings, I would suggest you look at the Convert demo. There are differences between how you would approach an implementation between DirectShow and MediaFoundation, but the general idea is the same. With the installation of the SDK on your machine, you can find this demo at the following default installation location:
C:\LEADTOOLS22\Shortcuts\Multimedia\Conversion and Compression\DirectShow\Dotnet Class Library
C:\LEADTOOLS22\Shortcuts\Multimedia\Conversion and Compression\Media Foundation\Dotnet Class Library

This demo will allow you to supply an input media file, and then select the Target format (with audio compressor and video compressor) which you wish to use when encoding. In your case, once you select the Target Format, you can manipulate the settings by selecting the properties button on the right. We provide the full demo code within the demo which you can use to help aid in your own implementation.

settings.png
Marcus Andra
Developer Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#3 Posted : Monday, November 15, 2021 6:57:46 PM(UTC)
MikeRodriguez

Groups: Registered
Posts: 4


Thanks for the reply.
I wanted the ability to change the settings programatically for the following reasons.
The last settings on the dialog are always reset to default when the application is closed.

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.061 seconds.