multimedia

How can I create a video from a directory of images in C#?

只愿长相守 提交于 2019-11-28 05:31:32
I have a directory of bitmaps that are all of the same dimension. I would like to convert these bitmaps into a video file. I don't care if the video file (codec) is wmv or avi. My only requirement is that I specify the frame rate. This does not need to be cross platform, Windows (Vista and XP) only. I have read a few things about using the Windows Media SDK or DirectShow, but none of them are that explicit about providing code samples. Could anyone provide some insight, or some valuable resources that might help me to do this in C#? At the risk of being voted down, I'll offer a possible

How to get the master volume in windows xp?

核能气质少年 提交于 2019-11-28 04:13:55
问题 In Windows XP, with Delphi, how to get the master volume? I know I can set up and down sending key strokes with keybd_event(VK_VOLUME_UP, 1, 0, 0); and keybd_event(VK_VOLUME_DOWN, 1, 0, 0); , but I don't know how to get the actual value of the volume. 回答1: The below is a little modification on the example code found here (credited there is Thomas Stutz). The example there sets the microphone volume. I just modified the component type - speaker destination instead of microphone source, and

How to Play multiple audio files simultaneously

我怕爱的太早我们不能终老 提交于 2019-11-28 01:33:24
how to Play numbers Of audio files at same time With AVAudioPlayer? Is it Possible to Play numbers Of audio files can play at same time using AVAudioPlayer? or any other way to play numbers of audio files at same time ? Thank You! Files with below formats can be played simultaneously on iPhone. AAC, MP3, and ALAC (Apple Lossless) audio: have CPU resource concern. Linear PCM and IMA/ADPCM (IMA4 audio): without CPU resource concerns. You just need to create a new player instance for every music file, that you want to play. Sample Code snippet: -(void)playSounds{ [self playSound1]; [self

MP4 Atom Parsing - where to configure time…?

☆樱花仙子☆ 提交于 2019-11-27 12:57:47
I've written an MP4 parser that can read atoms in an MP4 just fine, and stitch them back together - the result is a technically valid MP4 file that Quicktime can open and such, but it can't play any audio as I believe the timing/sampling information is all off. I should probably mention I'm only interested in audio. What I'm doing is trying to take the moov atoms/etc from an existing MP4, and then take only a subset of the mdat atom in the file to create a new, smaller MP4. In doing so I've altered the duration in the mvhd atom, as well as the duration in the mdia header. There are no tkhd

What is the best way to store media files on a database?

混江龙づ霸主 提交于 2019-11-27 02:47:50
I want to store a large number of sound files in a database, but I don't know if it is a good practice. I would like to know the pros and cons of doing it in this way. I also thought on the possibility to have "links" to those files, but maybe this will carry more problems than solutions. Any experience in this direction will be welcome :) Note: The database will be MySQL. Every system I know of that stores large numbers of big files stores them externally to the database. You store all of the queryable data for the file (title, artist, length, etc) in the database, along with a partial path

Android API for detecting new media from inbuilt camera & mic

独自空忆成欢 提交于 2019-11-27 02:37:34
问题 Is there any elegant way in the Android API for detecting new media when it is written to the device? I’m mainly interested in photos taken by the camera, video taken by the camera and audio recorded from the mic. My current thinking is to periodically scan each media content provider and filter based on last scan time. I’m just wondering if there is some service I can get realtime notifications. 回答1: There's a special broadcast Intent that should get called every time an application writes

How can I create a video from a directory of images in C#?

前提是你 提交于 2019-11-27 01:03:17
问题 I have a directory of bitmaps that are all of the same dimension. I would like to convert these bitmaps into a video file. I don't care if the video file (codec) is wmv or avi. My only requirement is that I specify the frame rate. This does not need to be cross platform, Windows (Vista and XP) only. I have read a few things about using the Windows Media SDK or DirectShow, but none of them are that explicit about providing code samples. Could anyone provide some insight, or some valuable

How to Play multiple audio files simultaneously

时光怂恿深爱的人放手 提交于 2019-11-26 21:56:23
问题 how to Play numbers Of audio files at same time With AVAudioPlayer? Is it Possible to Play numbers Of audio files can play at same time using AVAudioPlayer? or any other way to play numbers of audio files at same time ? Thank You! 回答1: Files with below formats can be played simultaneously on iPhone. AAC, MP3, and ALAC (Apple Lossless) audio: have CPU resource concern. Linear PCM and IMA/ADPCM (IMA4 audio): without CPU resource concerns. You just need to create a new player instance for every

Android : How to change Playback Rate of music using OpenSL ES

不问归期 提交于 2019-11-26 12:01:53
问题 I am working on a music player in which I need to change tempo (playback speed of music) without changing the pitch. I\'m not able to find any native android class to do so. I tried SoundPool but it doesn\'t work with large music files and it also doesn\'t seems to work on many devices. I also tried AudioTrack but again no luck. Now I am trying android NDK audio example which use OpenSL ES to handle music. Now I just want to add set playback rate feature in this example. Can anyone show me

What is the best way to store media files on a database?

时光毁灭记忆、已成空白 提交于 2019-11-26 10:16:03
问题 I want to store a large number of sound files in a database, but I don\'t know if it is a good practice. I would like to know the pros and cons of doing it in this way. I also thought on the possibility to have \"links\" to those files, but maybe this will carry more problems than solutions. Any experience in this direction will be welcome :) Note: The database will be MySQL. 回答1: Every system I know of that stores large numbers of big files stores them externally to the database. You store