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 : Monday, June 4, 2018 9:15:03 AM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 366

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

I recently found myself in need of a utility because I needed a way to convert a large number (thousands) of media [audio] files from one format to another. I anticipated their might be some problems, so I also needed something that would log these problems so I could go back and address those files individually as necessary.

This C#.NET solution is a collection of two projects to create one utility that converts one media directory and generates another. The main console application takes an input directory, output directory, and log file as arguments. It will search the input directory for files to convert. It then passes the file information on to a secondary EXE which handles the actual conversion. This conversion utility is build using LEADTOOLS Multimedia 20 and uses the ConvertCtrl to take the input media and generate the desired output. A second EXE was used here in case any problems arose from attempting to convert non-media files. If the EXE were to crash for any reason, this wouldn't stop the folder conversion. The failure would simply be logged to be checked later.

This utility could also be useful for other mass conversions such as converting video files for use with a media server, or maybe mass extraction of video data from medical files. The benefit this utility has over existing SDK demos (like Convert to Media Server) is the logging designed to help debug any problems that might have come up.

File Attachment(s):
CS_ConvertMedia.zip (17kb) downloaded 342 time(s).

Before running this project, please extract it to the following directory:
C:\LEADTOOLS 20\Examples\posts\t12531

Basic usage: CS_ConvertMedia.exe [i/o/l]
[-i] Input directory
[-o] Output directory
[-l] log file path

Ex: CS_ConvertMedia.exe -i "F:\Music" -o "H:\Music" -l "H:\Convert.log"
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 

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.

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.070 seconds.