media

c# extract mp3 file from mp4 file

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-17 12:23:38
问题 is there any easy way of extracting a mp3 file from a mp4 file? I've already tried to change the file extension, but that won't let me to edit the mp3 description. thank you! 回答1: Use Xabe.FFmpeg. It's free (non-commercial use), has public repository on GitHub, cross-platform (written in .NET Standard). Extracting mp3 from mp4 just by 3 lines: string output = Path.ChangeExtension(Path.GetTempFileName(), FileExtensions.Mp3); IConversionResult result = await Conversion.ExtractAudio(Resources

Sitecore Media Items and URLs

浪尽此生 提交于 2020-01-17 02:50:08
问题 We are in the process of migrating media items (images, PDFs, etc) from an old system into Sitecore. Some of the directories in the old system have multiple media items with the same name but different extensions. So if I had to get them via URL they would be as follows - http://example.com/images/test.gif http://example.com/images/test.jpg They can obviously be reached in the old file based system because their file extensions differ. In Sitecore, out of the box, this is not the case.

Extract frame from VOB(DVD) file

依然范特西╮ 提交于 2020-01-16 08:08:10
问题 I need to generate thumbnail from video files, i m using IMediaDet to get frame from video, it not working for (*.vob) file DVD, how can i get thumbnail from DVD in C# .. 回答1: It isn't clear whether or not you are using an unencrypted DVD. For the sake of this answer, I'm going to assume you are. IMediaDet uses the Sample Grabber filter to perform most of its operations. Unfortunately the Sample Grabber doesn't support the VIDEOINFOHEADER2 format as indicated here. Some MPEG-2 decoders will

.Net sdk for video editing like Windows Movie Marker

久未见 提交于 2020-01-13 07:25:07
问题 i am currently working on .net application which contains one audio & video file. audio file is split as in to small section as per database entries. then we have to merge this files on video file at specific positions.we what something like windows movie maker it will be nice if someone suggest some .net based sdk for this. 回答1: You can use ffmpeg for this purpose. But you will need a .net wrapper to make it usable in C#. You can use ffmpeg-sharp or SolidFFMpeg. its a a wrapper library over

using Windows Media Encoder to record screen

試著忘記壹切 提交于 2020-01-13 06:59:19
问题 Is it easy to write some .Net code to record screen and audio (from computer mic), then output to an wmv file. Any reference code? BTW: I searched all codes from WME SDK, no such sample code. thanks! George 回答1: Microsoft and the content mafi^H^H^H^Hindustry are trying their best to make this impossible. You will be far better of searching for "open source screen audio capture" than browsing any officially supplied documentation/example code - I would be seriously surprised if Microsoft

Python - how to read Windows “Media Created” date (not file creation date)

六眼飞鱼酱① 提交于 2020-01-11 10:58:09
问题 I have several old video files that I'm converting to save space. Since these files are personal videos, I want the new files to have the old files' creation time. Windows has an attribute called "Media created" which has the actual time recorded by the camera. The files' modification times are often incorrect so there are hundreds of files where this won't work. How can I access this "Media created" date in Python? I've been googling like crazy and can't find it. Here's a sample of the code

Python - how to read Windows “Media Created” date (not file creation date)

偶尔善良 提交于 2020-01-11 10:58:08
问题 I have several old video files that I'm converting to save space. Since these files are personal videos, I want the new files to have the old files' creation time. Windows has an attribute called "Media created" which has the actual time recorded by the camera. The files' modification times are often incorrect so there are hundreds of files where this won't work. How can I access this "Media created" date in Python? I've been googling like crazy and can't find it. Here's a sample of the code

Stop / kill WebRTC media stream

[亡魂溺海] 提交于 2020-01-11 04:58:08
问题 How to completely kill the WebRTC media stream? MediaStream.stop() is not working anymore. Testing in Chrome 47, Mac OS 10.11. 回答1: Use stream.getTracks().forEach(track => track.stop()); . stream.stop() was deprecated. 回答2: For all browsers if (microphone_data.media_stream) { microphone_data.media_stream.getTracks().forEach(function (track) { track.stop(); }); } 来源: https://stackoverflow.com/questions/34966809/stop-kill-webrtc-media-stream

Playing BG Music Across Activities in Android

左心房为你撑大大i 提交于 2020-01-08 16:56:47
问题 Hello! First time to ask a question here at stackoverflow. Exciting! Haha. We're developing an Android game and we play some background music for our intro (we have an Intro Activity) but we want it to continue playing to the next Activity, and perhaps be able to stop or play the music again from anywhere within the application. What we're doing at the moment is play the bgm using MediaPlayer at our Intro Activity. However, we stop the music as soon as the user leaves that Activity. Do we

Playing BG Music Across Activities in Android

你说的曾经没有我的故事 提交于 2020-01-08 16:56:29
问题 Hello! First time to ask a question here at stackoverflow. Exciting! Haha. We're developing an Android game and we play some background music for our intro (we have an Intro Activity) but we want it to continue playing to the next Activity, and perhaps be able to stop or play the music again from anywhere within the application. What we're doing at the moment is play the bgm using MediaPlayer at our Intro Activity. However, we stop the music as soon as the user leaves that Activity. Do we