Click here to Skip to main content
15,885,928 members
Everything / Media

Media

media

Great Reads

by Steve Hoult
Creation of an Audio analysis framework to enable developers with little to no understanding of audio analysis to develop audio-driven games
by Maxim Kartavenkov
This is a guide on how to configure your application, service or driver to handle appearing the new devices or device removal avoiding reboot request.
by Rion Williams
Common approaches to responsive design
by Mukit, Ataul
Why sometimes AVI files captured through video camera recording cannot be opened when the camera loses power (similar case for downloaded AVI when internet goes off) and how to solve it

Latest Articles

by Maxim Kartavenkov
This is a guide on how to configure your application, service or driver to handle appearing the new devices or device removal avoiding reboot request.
by Steve Hoult
Creation of an Audio analysis framework to enable developers with little to no understanding of audio analysis to develop audio-driven games
by Anthony Fountaine
A quick and easy way to extract multiple video clips from GoPro video footage
by Ravimal Bandara
An implementation of Bag-Of-Feature descriptor based on SIFT features using OpenCV and C++ for content based image retrieval applications.

All Articles

Sort by Score

Media 

15 Jul 2021 by Steve Hoult
Creation of an Audio analysis framework to enable developers with little to no understanding of audio analysis to develop audio-driven games
13 Oct 2023 by Maxim Kartavenkov
This is a guide on how to configure your application, service or driver to handle appearing the new devices or device removal avoiding reboot request.
3 Sep 2013 by Rion Williams
Common approaches to responsive design
14 May 2012 by Sergey Alexandrovich Kryukov
If MIDI sound sounds not realistic enough to you (which I understand; it means you have some musical hearing — my congratulations :-)) you can only generate more realistic sound from scratch. It has nothing to do with MIDI: it can carry only as much information as it does, no more.You...
22 May 2011 by Mukit, Ataul
Why sometimes AVI files captured through video camera recording cannot be opened when the camera loses power (similar case for downloaded AVI when internet goes off) and how to solve it
8 Apr 2013 by Matthew Faithfull
When you say you have a bitmap I guess you have an RGB or BGR bitmap?To do a one off file conversion I would get a copy of IrfanView[^] . In fact I would get it anyway if you don't have it as it is the best tool I know for viewing not quite correctly formatted image data.If you are...
15 Sep 2013 by Sergey Alexandrovich Kryukov
You can use the open-source libVLC binding called LibVLC.NET: http://libvlcnet.codeplex.com/[^].The first page provides a small code sample and explains where to find the tutorial. This is all you need.—SA
3 Jul 2017 by zapsolution
Windows 10 multimedia player 64-bit
28 Nov 2018 by Anthony Fountaine
A quick and easy way to extract multiple video clips from GoPro video footage
3 Apr 2010 by Rod Kemp
To learn how to create plug-ins for Windows Media Player, see the Windows Media Player SDK[^].This should outline what you can and can't do with a plug-in in WMP.
22 May 2011 by Mukit, Ataul
Adjust Audio/Video Synchronization of an AVI file
1 Jan 2012 by DaveAuld
Hi Marcelo,I was reading recently the proposed spec modifications for HTML5, recording capability is being considered, it is currently support in chrome only I believe (thats how google implement the speech search capability, you could see if the Speech Input API helps any...
2 Feb 2012 by Sergey Alexandrovich Kryukov
It looks like this problem is solved in this CodeProject work:Vista Core Audio API Master Volume Control[^].Locate the sentence: "If you just want to be informed when somebody changes the volume settings, you can subscribe to the OnVolumeNotification event".See also:...
22 May 2012 by Sergey Alexandrovich Kryukov
You can use the function ExitWindowsEx through P/Invoke:http://msdn.microsoft.com/en-us/library/windows/desktop/aa376868%28v=vs.85%29.aspx[^],http://www.pinvoke.net/default.aspx/user32.exitwindowsex[^].If you need to learn P/Invoke, please...
23 Mar 2013 by André Kraak
You could try using the HTML5 audio[^] tag with a fallback option for browser that do not support it.Here are some resources that explain the fallback option:Using HTML5 audio and video[^]Learn HTML5 in 5 Minutes![^]Working with Media in HTML5[^]
2 Apr 2013 by Matthew Faithfull
Google says you can download it here[^]. Google is a good source for 'where can I download...?' information.
24 Sep 2013 by mccaber82
For anyone else that needs a hand working this out, I created two extension methods to convert back and forward between DrawingImage and BitmapSource:To BitmapSource: public static BitmapSource ToBitmapSource(this DrawingImage source){ DrawingVisual drawingVisual = new...
21 Nov 2013 by Motley Drew
I am currently working on a project where we stream (legal) MP3 files to users, and users can upload MP3s. I plugged the site into the Rackspace Cloud Files product. We want to make the site free for users, so we'll have to cover the bandwidth and storage cost.What is troubling me is the...
10 Dec 2013 by farhad Najib
HiTry it:$ ffmpeg -s 352x288 -i foreman_cif_frame_0.yuv f.pngffmpeg version N-46810-g7750c48 Copyright (c) 2000-2012 the FFmpeg developers built on Apr 21 2013 11:12:24 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libx264 --enable-libmp3lame ...
19 Jan 2016 by Jochen Arndt
It seems that the full screen mode requires that the video is actually played. When your code tries to switch to full screen mode, the media player has probably not finished his startup. So you have to wait until the state has changed. This can be done using the IWMPEvents::PlayStateChange...
10 May 2010 by William Winner
I'm a little bit confused with what you are asking, but here is what it seems to me.You want a ListBox to show just a name. You want that when the ListBox Item is clicked, you can pull out from that item where the video file is. Is that correct?If so, there are a couple of options...
12 Jul 2012 by Sandeep Mewara
There is no comparison. Media Foundation is the next generation multimedia platform for Windows that enables developers, consumers, and content providers to embrace the new wave of premium content with enhanced robustness, unparalleled quality, and seamless interoperability.DirectX Video...
9 Aug 2012 by Zac Newman
Hey all,I am writing an application that will give directions and then play an audio track with the directions on there... It works fine on my local PC when I am testing, but as soon as I put it onto my web server... No go... No errors just no sound plays...Imports WMPLibProtected...
11 Dec 2012 by Sergey Alexandrovich Kryukov
This is too broad topic. There are many ways to encode/transcode video and a good number of different formats/containers, compression algorithms and codecs.I would highly recommend one of the most lean a capable products, opens-source...
27 Jan 2013 by Alan N
The lack of up to date documentation makes programming with these VLC plugins a voyage of discovery. I have VLC version '2.0.5 Twoflower' installed and certainly with this one, the useful looking events prefixed with MediaPlayer, e.g. MediaPlayerPositionChanged, never get raised by the...
27 Jan 2013 by Valery Possoz
HelloHave you tried that:AxVLCPlugin21.shuttle(seconds)The documentation is here:http://wiki.videolan.org/ActiveX_Controls[^]Valery.
27 Jan 2013 by Sergey Alexandrovich Kryukov
There is an open-source library exactly for this purpose: http://wpfsvl.codeplex.com/[^].—SA
3 Feb 2013 by Alan N
Buffering can be increased by specifying options in the play list. Although you can test various sizes in the plugin I find it easier and quicker in the VLC player. Just check "Show more options" in the OpenMedia dialog, and adjust the cache value UpDown control.Private Sub...
12 Apr 2013 by Richard MacCutchan
You need to understand pointers to pointers in C++. Without seeing the documentation, I suspect your code should read:IMFPresentationClock *pPresentationClock = NULL; MFCreatePresentationClock(&pPresentationClock);mySink.SetPresentationClock(*pPresentationClock);// or maybe...
29 Apr 2013 by TnTinMn
It may be a problem with the newer VLC 2.x.x plugin versions. I've had nothing but grief with them. The last version that I've had any luck with is:http://download.videolan.org/pub/videolan/vlc/1.1.9/win32/[^]
31 Jul 2013 by nwhitfield
Mobile, geo-centric app for Business Users, Consumers and Sales/Marketing Professionals
15 Sep 2013 by Sergey Alexandrovich Kryukov
Sachin Athrady wrote:…it returns an error "An unhandled exception of type 'System.NullReferenceException' occurred in Vlc.DotNet.Forms.dllYou did not show where the exception with the message "Object reference not set to an instance of an object" is thrown. Not to worry. This is one...
9 Oct 2013 by sandip1711
hi guys I’m new in broadcasting technologyI’m broadcasting using windows media encoder 9, what I want is while broadcasting when I use insert link option of windows media encoder 9 that time I want to change image path on broadcasting page but when I insert link(of image path) it is...
11 Nov 2013 by chinahyin
nRet = av_image_alloc(pSrcBuff,nLines,nSrcWidth,nSrcHeight,AV_PIX_FMT_YUV420P,16) ; nDstBuffLen = av_image_alloc(pDstBuff,nDstLines,nSrcWidth,nSrcHeight,AV_PIX_FMT_RGB24,1) ; if (nDstBuffLen
21 Nov 2013 by Yvan Rodrigues
I'm not a big cloud user, but I do run dedicated servers through iWeb. One of the main reasons that I haven't adopted cloud computing is the cost.For $89 you can get a dedicated server with 20TB of bandwidth. For $150 you can get a Xeon E3 with 8GB RAM, 1TB disk in RAID1, and unmetered...
24 Feb 2015 by Sergey Alexandrovich Kryukov
It does not have its own volume. You can do one of two things: adjust the system volume level or modify the volume of the waveform you want to play.On the system volume control, please see: http://www.dreamincode.net/forums/topic/45693-controlling-sound-volume-in-c%23[^].You can also...
19 Jul 2015 by OriginalGriff
Well, you have been told how to play files one after the other:How can I play mp3 file after mp3 file[^]So all you need is to store the path to the file in a text file, and keep an index to the "currently playing" item, probably at a class level.Then read the paths in:private string[]...
28 Sep 2015 by sreeyush sudhakaran
Please make you of following links which may guide you.1) Extract all images from a video frame by frame.Extracting still pictures from movie files, with C#[^]Extract Frames from Video...
17 Aug 2021 by Richard MacCutchan
if icon || clear_sky That is not valid Java, what are you expecting? MediaPlayer overview �|� Android Developers[^]
4 Apr 2010 by Rod Kemp
To find information regarding the DirectX SDK and Windows Media Format SDK a quick Google (or Bing) search finds the MSDN pages for them which also contain sample code;Windows Media Format 11 SDK[^]DirectX Developer Center[^]Also a quick search of this site found;Various methods for...
16 Apr 2010 by imagiro
Ever had to enumerate the supported media files under Windows for example for the filter-string for GetOpenFileName?Here is a simple solution (using ATL for the registry access):void EnumSupportedMediaFileTypes(){ CRegKey key; CString s; DWORD dwLen; DWORD dw =...
21 Apr 2010 by Christian Graus
THe media player object can be given a URL to a stream. In fact, the property you set to give it a file path is the URL property, I believe.
27 Apr 2010 by Member 4242942
I have some mp3 files. How can I define wich codec was used for make this files? Mp3 frame header don't have such info. I need the method that not used ID3 tags but detect the codec from audio frames. Some programms such as TagAndRename show codec name correctly. Thanks.
27 Apr 2010 by Christian Graus
I don't believe there is any additional codec that could be used, an mp3 is an mp3, it uses the mp3 codec.
27 Apr 2010 by Member 4242942
Dont't exists "mp3 codec", but exists Lame, Xing, Fhg etc.
12 May 2010 by CPGUID123
I need to be able to play a .wmv video in a Windows Media Player component on a web page starting at a particular specified point in the video right away.I can embed the component and play the video. The problem is that even if I specify the location with the PARAM “currentPosition”, the...
1 Jun 2010 by CPGUID123
Hello,I get the following errors when I attempt video format conversions called from the local host:“An invalid media type was specified” for M4V to WMV conversions.“One or more arguments are invalid” for MP4 to WMV conversions.Here are the details of the problems:I’ve written a...
19 Jun 2010 by Myn92
I'm a beginner to C# and I want to create a video player and for that I'm using DirectX.AudioVideoPlayback, but I can play only avi,mpg,mpeg,wmv file types. Can anyone give me a hint how to play other file types (like mkv,cam,vob,xvid, etc.)?Any help is appreciated.Thanks.
28 Jun 2010 by GPUToaster™
If you want to play other types, then you can use sharpffmpeg (http://code.google.com/p/ffmpeg-sharp/[^]).
8 Jul 2010 by Myn92
I searched on the internet for ffmpeg-sharp.dll and added it as a reference to my project, but I don't know how to use it. Could you help me, please?Thanks
29 Jul 2010 by weylspinor
Hi! Does anyone know how to overlay text using a video filter using Microsoft Media Foundation?
29 Jul 2010 by Richard MacCutchan
Sorry, no I don't. However by searching MSDN I found this[^].
7 Aug 2010 by sayed.net
Hi,I'd like to ask if it's possible to record videos from Media Player component in VB.Net or not .. If it's possible could you explain how do I make it. :rolleyes: Thanks in advance.. :)
7 Aug 2010 by Christian Graus
The media player component is called that because it is a player. You can use directX to record video, if you were to search the web, or even this site, you'd find plenty of examples.
10 Oct 2010 by Amitux
Hi,I need to get codec or format (e.g. H.264) of movie(.MOV, .3GP) files at runtime in .net.Can anyone help me to get code for it?Many ThanksAmit
10 Oct 2010 by Sandeep Mewara
Looks like this article should help you out: C# Windows Media Format SDK Translation[^]
10 Oct 2010 by Sandeep Mewara
Why to post the same thing again[^]?Follow at one place. People will respond. Have patience. and Try!
23 Oct 2010 by Nish Nishant
A few things to check:(1) Is the path to the desktop correct?(2) Does the app have permissions to write there?(3) Put a breakpoint and see what SelectedFileName and SafeFileName are.(4) Maybe an exception is thrown but gets silently swallowed because of your empty catch block.
23 Oct 2010 by Justin Swanepoel
Hey All,I am developing a project where I need to upload video files to a server. Basically I already have the means to to get the location and play that video in my project using WPF.My idea is to have a separate folder to copy the files to, while only storing the location path in my...
10 Nov 2010 by fjdiewornncalwe
Hey Mahadevan,If you are doing this as a personal learning project, I encourage you to go ahead and do it, but if you just want to have a tool to help you organize the files, then I would suggest using iTunes or Winamp. Most of the library tools available have that capability built in...
18 Nov 2010 by PrinceOfThief
I try to create a profile for Video. Because I don't know how to create, I follow the Windows media Encoder and make this method.private void createNewProfie() { this.newProfile = new WMEncProfile2(); this.newProfile.ContentType = 17; ...
30 Nov 2010 by venkateshguptha
In my application, I am using FFMPEG Library to find the codecs of media files and I need to find the mime type of that same files. Is there any way available to find the mime type by using the codecs ?thanks in advance,Venki
1 Dec 2010 by herbutant
Hi all,I have an application that is replaying video via dotNet4.0 MediaElement.Now we have a new requirement to display closed captions that are encoded in the video. Any pointers?ThanksHerb
19 Dec 2010 by Shining Legend
How to build a custom player that will play music of different formats like real, windows, flash etc
20 Dec 2010 by Dave Kreskowiak
You're going to have to do a ton of research on the various formats you want to support, what codecs you're going to need, how to write codecs for the formats that don't have a public version already available, how those codecs work, how to build a graph that will decode those various formats,...
29 Mar 2011 by sathish.kasin
HelloThe below thing is my requirementThe viewers of the website should be able to view the videos in High Bandwidth(size 640 x 480) as well as Low Bandwidth(size 320 x 240) depending upon the bandwidth the viewer would like to choose.The media player in which the videos will be placed...
29 Mar 2011 by crocks256
Floplayer or just link direct to video stored on Youtube ;-)
29 Mar 2011 by Sergey Alexandrovich Kryukov
All players do that. Additionally, they zoom the output regardless of input.My advice would be Media Player Classic, http://sourceforge.net/projects/guliverkli[^].But better obtain it from there, better use K-Lite Codec Pack: http://codecguide.com/[^]. Why? Because you need the codec...
5 Apr 2011 by yazza_pm
Hi.. i'm want create video player in visual basic 2010 but i don't know how the code make my video player can show in the secondary monitor and play to in primary monitor and what the code vb for detect secondary monitor or another monitorplease help me the code visual basic 2010. thanks...
5 Apr 2011 by Johnny J.
It's quite easy to work with multiple monitors in .NET.Here are two examples. They are both in C#, but the classes and principles apply to VB as well, of course.http://www.codeproject.com/KB/cs/multi-monitor_in_c_.aspx[^]http://www.codeproject.com/KB/system/managemonitor.aspx[^]If...
5 Apr 2011 by Abhinav S
You can create one in Silverlight too - as shown here[^].
20 Apr 2011 by funniezatee
I found the solution and posted it in my blog here.http://briancjc.blogspot.com/2011/04/facebook-gives-adobe-flash-player-error.html[^]
22 Apr 2011 by ashishdalvi123@gmail.com
I want to create a mult-point video conferencing project. I have done the peer to peer video conferencing using RTP protocol and using H263 codec. I am having difficulty making my project multi-point.Any help is greatly appreciated.
13 Jun 2011 by Henco Eloff
Good day.I have taken a look at the low level audio player on this site....I was wondering if there is any way of making it play mp3's or wma file formats. It should be done in C#Thank you sincerely
13 Jun 2011 by Sergey Alexandrovich Kryukov
First and most straightforward way to consider: you can use available System.Windows.Media.MediaPlayer component and use it in your WPF application.What it plays depends on installed codecs.For wma you need Windows Media (which you should already have):...
13 Jun 2011 by Christian Graus
This will work fine, so I assume you're not asking a question. I have no idea what you're trying to do by posting this.
22 Jul 2011 by Stefan_Lang
The pointer variable ppSomeClass serves as a return value. Therefore, in C/C++ you have to pass it by reference. There are two ways to do this: either you pass a variable of type reference to the original type, in this case reference to pointer:HRESULT SomeClass::CreateInstance(HWND hVideo,...
21 Jul 2011 by Sergey Chepurin
From The COM Programmer's Cookbook, chapter COM Interfaces: "An interface is actually a pointer to a vtable. The vtables are usually shared by multiple instances, so the methods need a different pointer to be able to find the object that the interface is attached to. This is the interface...
26 Jul 2011 by Brady Kelly
I've been commissioned to implement an application for the design (layout and content) of computer based training courses, the delivery of these courses to learners, and the conducting of exams on these courses. Administrators must have the ability to define their own workflow and content for...
7 Nov 2011 by Member 7839509
Hi,I'd like to run Wmp not by ShellExecute but by something else from Windows Media Object Model references.I spent lots of time to see the documentation to check if anything related to executing wmp but so far I could not find it yet.Can anyone help me where I should look at it?...
8 Nov 2011 by SKOTAJI
Hi All,Please suggest some online help for me. I tried at google in various to initiate / design the work. My query is, I have a DICOM MRI file needs to convert to avi file formats. I tried with code project samples help and able to convert the .dcm files but not the MRI files. Like Dx file...
7 Nov 2011 by Mehdi Gholam
Check these : http://lcni.uoregon.edu/~jolinda/MRIConvert/[^]http://www.idoimaging.com/index.shtml[^]http://www.itk.org/Wiki/VTK_Tools[^]http://www.dclunie.com/medical-image-faq/html/part8.html[^]
18 Nov 2011 by Jackie00100
Hi every one i've been trying for hours now to make WMPLib and AxWMPLib work to be able to rip a wished song from a cd. Before all this is done the user can search in a larger music database such as youtube, local music library and USB/removeable devices. the last thing i need now is to make it...
20 Nov 2011 by dustyfoot
how do i use the WPFMediakit in WPF to capture images from webcam, till now i have been able to read the webcam but i need to capture images through the device also....WPFMediakit is available in codeplex. any help will be appreciated
21 Nov 2011 by NguyenVanDuc
I have an aspx( contain binary of one mp3 file), and i want to play this file using that aspx page. Please help me!
21 Nov 2011 by Abhinav S
Try outMP3 Player Server Control[^]http://ultidevwebbasedmp3pl.codeplex.com/[^]http://www.asp.net/community/control-gallery/Item.aspx?i=2015[^]http://www.aspnetmedia.com/[^]http://www.wonderhowto.com/how-to-play-mp3s-asp-net-web-applications-259021/[^]
2 Feb 2012 by Joel Whatley-
I am using the media player in a C# program I'm making. I am making controls to use instead of the default media controls.For example:button for Playbutton for Stopbutton for Pause....i have made a splitContainer to use as the volume control. It works fine.however, i am also...
24 Feb 2012 by Joel Whatley-
I have created a music player in C# visual studio using the Windows Media Player control. It works fine on my computer - but when I want to send the .exe to another person they cannot open the program. I searched the web and can't find any solutions but someone said they have the same...
17 Mar 2012 by mohammadghaderian.bp
HiPlease introduce some media control that i can play music and seeking it except media player control.I use media player control but it is not good.Can you introduce me another control like it ?thanks a lot
2 Apr 2012 by Manish Kumar Namdev
Hello friends...I am novice to Windows MediaCenter.I've installed Win XP SP 3 in my pc and installed Windows MediaCenter 5.3 to develop interactive TV applications.I have no knowledge in this area.Please guide me how can I go ahead to build such kind of application.What tools...
27 Apr 2012 by O.Calderbank
Hi,I am currently creating a media player but as I am searching online for some help, no one seems to be able to provide the information. I am trying to have a media player which I find easy to build to have it playing videos but what I am having the issue with is creating a file on the...
27 Apr 2012 by Rahul Rajat Singh
You have two separate requirements.1. Playback of media files.2. Extracting and using metadata to populate the library.The playback can easily be performed by using any playback API like DierctX, managed DirectX, WMPSDK, SlimSx, SharpSx, NAudio etc.I don't know how to get the meta...
22 May 2012 by Member 9013533
here is the situation guys:I am developing an alarm clock for myself. An alarm clock that can wake me up in the morning with a song i choose and which automatically shutdown the computer after the song finishes.So my problem is:#How can i let my alarm to perform that 'shutdown...
25 May 2012 by Yatin_Chauhan
hello LebneizTechyou can use object tag to solve this problmelike this..
25 May 2012 by Sandeep Mewara
There is a .NET interface for VLC: Wiki: .Net Interface to VLC[^]Sample article using it: LiquidVideo, Play Video Anywhere with VLC C# .NET VideoLan[^]In general, for displaying Video in ASP.NET:ASP.NET Embedded Video Player (YouTube™ API, C#) video streaming with ASP.NET 2.0, IIS...
22 Jul 2012 by Farhan Ghumra
Hi, I have checked this[^] sample. It shows me TimeLineMarker API. Now when I press button "Add Marker" at that time markers are added and text block shows the markers, on which time it was added. Now I want to display those markers onto Slider control in the form of any sign like any shape or...