multimedia

Error on getting AVI file duration

丶灬走出姿态 提交于 2019-12-13 07:14:07
问题 I am using VFW unit from JEDI wrapper on WinAPI. The code I am writing is intended to search user drives and detect warez. We do MP3, WMA and some graphic file search. Now we want to detect illegal movies. I want to open AVI file, read some details from it and close it. I have the following code: uses WFV; //from JEDI api wrappers procedure TForm1.Button1Click(Sender: TObject); var lInfo : TAVIFILEINFO lFile : IAVIFILE; lFileType : string; lLenMinutes : integer; lFPS : integer; begin {init

How do I check if my DirectShow Renderer filter is being used?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 04:41:12
问题 In my DirectShow project I create a filter (derived from CBaseVideoRenderer ) to render to a block of memory. This works in most cases perfectly well, with me adding the filter mGraphBuilder->AddFilter(pInterfaceInfo, MemoryRendererName); and relying on GraphBuilder to do the rest. However in some cases the graph builder and my filter cannot agree on a common format and it creates a new ActiveMovie window, bypassing my filter. I would like to detect when this occurs so that I know my filter

Retrieve a thumbnail of a video

空扰寡人 提交于 2019-12-13 02:33:47
问题 I'm trying to make an application for showing the best movie trailers. I'd like to show a grid view with the thumbnails of each video and then clicking them open a new Activity for playing the video. Given a moment of the video, how can I retrieve the thumbnail? If that is complicated the first frame is enought too. Thanks 回答1: If you are using API 2.0 or newer this will work. To get video id: String[] proj = { MediaStore.Video.Media._ID, MediaStore.Video.Media.DISPLAY_NAME, MediaStore.Video

Android MMS Monitoring

ぃ、小莉子 提交于 2019-12-12 09:28:30
问题 I have spent the last several hours trying to research this and understand it, however i've come up empty on every example I tried. Basically my app can send information via MMS to someone else, though the content is in a format that the native inbox doesn't display correctly. Sending the content works fine, however I need to be able to detect the incoming MMS message and open the content in my application to format it correctly. Are there any decent tutorials for this? Of the ones i've found

how to record anything from soundcards?

天大地大妈咪最大 提交于 2019-12-12 08:17:52
问题 i would like to record any sounds produced in my soundcard. please help, where i can get a freeware component or commercial(trial). delphi7/2009 回答1: I have very good experience with the BASS audio library API. Here is a forum thread with C# example, but since the BASS API is procedural and there is a good Delphi API interface, it translates pretty OK. --jeroen 回答2: http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what-you-hear.aspx might help

How to get specific information about media files (Duration, Bitrate, FPS, etc.)

点点圈 提交于 2019-12-12 04:35:38
问题 I need to get the same kind of info that you can get on "Get Info" when using Finder; more specifically I need the same info that is present in the "More Info" section, like Duration, Bitrate, Dimension, Codecs, Audio channels, etc. To get the basic info like size, type, I have: // Getting the file's attributes NSError *error; NSFileManager *fm = [NSFileManager defaultManager]; NSDictionary *fileInfo = [fm attributesOfItemAtPath:fileName error:&error]; Is there any native Cocoa library to get

Qt 5.6 + multimedia + gstreamer

橙三吉。 提交于 2019-12-11 12:47:28
问题 Okay here's the deal. I am on Ubuntu 14.04 LTS, have installed Qt 5.6, qtmultimedia5-dev, gstreamer0.10 (and 1.0), and libqtgstreamer-dev. I am STILL getting this error when I try to use a QAudioDecoder: defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.audiodecode" What am I missing? 回答1: Might be a bit late. I'm having the same problem. Installing gstreamer plugins solved the issue. 来源: https://stackoverflow.com/questions/36465073/qt-5-6-multimedia

Loading video using QMediaPlayer and UNC paths

孤者浪人 提交于 2019-12-11 11:51:19
问题 I'm trying to load a video from a network using UNC paths thanks to Qt 5.5 QMediaPlayer. The code snippet is the following one: projectDirectory = QFileDialog::getExistingDirectory (this, tr ("Choose project folder (sensor + video data"), QDir::homePath(), QFileDialog::ShowDirsOnly); QDir dir(projectDirectory); QStringList test = dir.entryList(); qDebug () << projectDirectory << "contains:" << endl << test; mediaPlayer.setMedia(QUrl::fromLocalFile(projectDirectory+"/video.mov")); The code

How to add System.Windows dll to Visual Studio 2010 express?

风流意气都作罢 提交于 2019-12-11 04:01:13
问题 I am developing a small application using C# and VS2010 as IDE with .NET Framework 4 . I want to use CaptureSource class in order to capture video from laptop's webcam. For that i need to add a namespace System.Windows.DependencyObject . How can I add this? In the Solution Explorer , if I right clicked on Referenced , then .NET tab, I wont be able to see System.Windows . Please see the attached file the same. Please anyone help me in adding this System.Windows dll . Thanks in Advance Sri 回答1:

Set audio input level using portaudio

谁都会走 提交于 2019-12-10 19:48:00
问题 I am dealing with a legacy code that uses portaudio on windows. The code grabs audio from desktop mic and has ability to configure input volume. It worked perfectly under windows xp, but tuning audio input level is broken under windows 7, changing the parameter has no effect on output audio stream. Code do the following to adjust volume mp_mixer = Px_OpenMixer(mp_inputStream, m_dev_num); if(mp_mixer) Px_SetInputVolume(mp_mixer, m_volume); I have discovered, that underling winmme functions