Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How can I extract some MP3 sample from an MP3 file?
I want to extract some sample of about 10 seconds from these files.
Is there any way or some documentation that I can study in order to do that by myself?
Thanks to everyone!
You could try a C# wrapper around ffmpeg, to convert the file to wav.
From there, you can extract whatever sample you want.
WAV-file documentation:
http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
ok, I went to the SFML official website, but there are no SFML tutorials in C#. There are only some for C++, which I do not know, and I do not know how to use that tutorial with C#
If you download the SMFL.Net distribution, you'll find documentation and examples within the archive. Translating the C++ tutorials into C# should be rather easy with that documentation.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I need to create a M3U playlist of mp3 songs.
Is there any way to read the duration attribute of MP3 files?
Don't reinvent the wheel. Use an external library such as NAudio to do the hard work.
NAudio is available at GitHub.
You can use it like this:
Mp3FileReader reader = new Mp3FileReader("<YourMP3>.mp3");
TimeSpan duration = reader.TotalTime;
Of course, an alternative would be this answer.
To use the Mp3FileReader class, you must add using NAudio.Wave; to your file.
Thanks everyone for help.
I tryed using TagLib and it works fine.
TagLib.File f = TagLib.File.Create(<pathToFile>, TagLib.ReadStyle.Average);
var duration = (int)f.Properties.Duration.TotalSeconds;
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a excel files that contain textboxes and I need to import the data from those boxes. Any ideas on how to accomplish that?
This has actually been addressed on this site before, and rather well. Check it out here: How to read data of an Excel file using C#?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How to convert full C# project to vb.net ?
Check out SharpDevelop, (specifically V4.4, which is the last version where this was supported). It has the feature you are asking for and its free.
Just go to Project > Convert
This is free: http://converter.telerik.com/ and it used to support multiple files by zip, but apparently doesn't anymore.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I need to make a project for my university. My project is a desktop video and audio recorder in C#... I know that I must use some of the libraries in .NET... But which or how?
It's like Camtasia...
There's at least one article on http://www.codeproject.com that shows how to do this: Capturing the Screen Image in C#