Add audio track to MKV - aac

I have several MKV files in several folders. I wanted to be able to add a Video track & Audio track that is supported by my TV.
It's ALL MKV files (but in multiple different folders)
Obviously I do not want to add another track if the required track already exists
So let's say I got a MKV with a DTS Audio track. After the convertion the MKV would both have the original DTS Audio track and a AAC Audio track.
I am thinking of a powershell script where I run a command to extract information about existing tracks and the based on that add required tracks.
If anyone can point me to the right tool I would be very happy.
UPDATE:
I found that "mediainfo" seems like a great tool for the "get information about the mkv part". Which means that I only need a tool for the update mkv file part

Related

How to upload and download media files using GUNDB?

I'm trying to use GUN to create a File sharing platform. I read the tutorial and API but I couldn't find a general way to upload/download a file.
I hear that there is a limitation of 5Mb of localStorage in GUN, if I want to upload a large file, I have to slice it then storage it into GUN. But right now I can't find a way to storage file into GUN.
I read the question from Retric and I know how to store the image into GUN, but can I store the other type of Files such as .zip or .doc File? Is there a general API for file storage?
I wrote a quick little app in 35 lines of HTML to demonstrates file sharing for images, videos, sound, etc.
https://github.com/amark/gun/blob/master/examples/basic/upload.html
I've sent 20MB files thru it, tho yeah, I'm sure there is a better way of splitting it up into 2MB chunks - that is currently not automatic, you'd have to code it.
We'll have a feature in the future that will automatically split up video files. Do you want to help with this?
I think on the download side, all you have to do is make sure you have the whole file (stitch it back together if you do write a splitter upper), and add it to some <a href=" target. Actually, I'm not sure exactly how, but I know browsers support download file attributes for a few years now, where you can create a download link even of a in-memory file... but you'll have to search online for how. Then please write a tutorial and share it with the community!!
I would recommend using IPFS for file storage and GUN to store the links to those files. GUN isn't meant for file storage I believe, primarily user/graph data. Thus the 5 MB limitation.

How to capture voice of user using Avaya IVR?

Dears,
I want to capture voice of users using IVR built on Orchestration Designer and store it in file system as wav files. As far as I know, there is a way to do that by using Speech Servers such as Nuance,but, since it is expensive we want to find an alternative way. I have been searching internet for week, but could not find anything related. Is there a way to capture voice using java or voiceXML? Is it even possible without using speech servers?
you could use recoding node to record the voice. '.wav' would be saved in data/temp in your application but it would be deleted once your session is over. You need to write customize java code to copy and paste from temp to your local dir before the session gets invalidated.

vb.net using a custom file to save different types of data

I'm brushing up on my VB.NET skills for a future project I will be working on. This application will be very data intensive, requiring 20+ data tables, user supplied images, and possibly even short audio/video files.
I want to be able to save all of this information into a single, external file, so that the user can share what they create with the world.
Ideally, I would like all the text based data to be stored in a database format that I can easily work with, preferably via the entity framework.
Pretty much all the information I'm finding relates to only saving a single text/XML file, and that will not really work for me. Can anyone point me in the proper direction, or suggest a method that will let me save the data?
I'm working inside Visual Studio 2012 Pro, with a Visual Basic Windows Form Application. Please let me know if you need any additional information.
I'll expand my comment to an answer instead.
As previously mentioned this sounds like a zip file. In this you can:
Have a file called databasetables.txt or whatever containing the database tables.
You can have Audio, Video, Images etc in respective folders. This way when you open your file you can just load all files in the Audio folder to get the expected files.
You can have information stored in xmlfiles.
Endless posibilities...
Just keep in mind that you might want to load all this only into the memory of the computer so you dont extract it onto the hard drive.
And you dont have to save the file as .zip to open it as .zip, just select your own cool suffix which will look neat :)

Inserting wav file within a wav file using naudio

I have a recorder application(CSHARP) where i use NAudio to record/playback audio. Our need is to Insert and overwrite audio in an existing wav file.
Currently, for inserting audio, i use the current position of the wav file and do a split. Merge the new wav file to original one and merge with the rest of the file.
When overwrite, i take the current position of the original audio and merge the new audio from that position.
This process seem to work ok but for some reason i think reading the file and writing a file takes a big toll. When we do a fast recording,stop recording, rewinding, recording, stop recording and so on.. the request to file gets clogged up and at some point i get File IO exception error saying "The file is in use by another process.."
(Note: We use a footpedal equipment with 3 keys assigned for recording, play and rewind. The issue we have is when we bang on the pedals faster.)
i am really stuck at this point as i am unable to resolve this issue. I will need some expert help.
Is there a way to insert audio from a specific position in a file without doing Split and Merge? PLSSSSSSSSS Help!!
Overwriting audio in a WAV file is not too difficult, and when I need to do this, I use a customised version of WaveFileWriter that can open an existing WAV file, and lets you reposition within the data chunk.
Inserting on the other hand is always going to be problematic, since you need to shift all the audio after the insert point forwards. I'd be tempted to create a separate "insert" wav file, and then after your whole recording session is finished, stitch the parts together into a final WAV file.

DirectShow - Capture Webcam While Viewing It?

I am trying to make a webcam application in c# that allows users to record video. I have been using DirectShow.Net to preview the webcam and to take snapshots. But need to be able to capture video and audio while previewing the webcam at the same time. One thing I tried was using capturing multiple snapshots and converting them to a video using ffmpeg, however this obviously does not capture audio. Any ideas on how I could accomplish this?
Things you should be aware of:
Capture device is typically used exclusively, so can be used in a single graph
Graphs change state as a whole, you cannot stop a part of the graph, esp. to start/stop recording separately from previewing
The simplest is to create a graph which does both recording and preview:
A more complicated scenario is to create 2 graphs for capture+preview and for recording and copy data from the first to the second, so that you could start/stop recording separately and seamlessly.