473,757 Members | 3,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to detect that a media stream has no sound

FE
Hi,

I need to create a program that will connect a media stream (a server on the
internet - Windows Media format) and then generate an error when :

* The stream is ok but there is no sound (for example when someone
disconnected the mic)
* The stream is ok but there is no more images

In these to cases, I imagine the encoding server is still working fine but
the source of the data to encode (sound or video) is not working fine.

How can I do that ?

To connect the stream I use the Windows media Player 9 component.

Thanks for your advices.
--
FE
Nov 19 '05 #1
2 3044
very kludgy. I think you have to look at the video when the conditions that
you mention exist and detect the presence of similar video to generate the
error message/alert. Eg. if loss of video results in a blue screen being
sent, grab frames at regular intervals, check a few pixels at different
locations for colour, and if they are all blue raise the error/alert. If the
image freezes, compare with previously sampled values. Similarly for sound,
try using code from one of the many 'oscilloscope' samples going around and
raise the alert when the values do not exceed a set threshold for a while
(you'll get some noise when the mic is disconnected). Remember that long
periods of silence are frequently encountered and are not necessary a fault
condition. (I saw an 'art' film once which had nothing on the sound track
for the first 15 minutes!). Same for 'frozen' video.

HTH

Sujit

"Cor" <no*@non.com> wrote in message
news:3f******** **************@ reader20.wxs.nl ...
Hi,
I think first of all make a list in what circumstances, because your sample looks now a little like a question
"I want a message on my screen when there is no power."

I dont think much people can answer that qeustion with so little
information.
Cor

Nov 19 '05 #2
f e


Hi,

Thanks for all the feedback.

My problem is that I don't knwow the best way to do it. I am currently
using the media player component and so can play the media streams ...
but how to :

* For the sound : capture the level of the sound, ...
* For the video : make a snapshot of the video (so I can analyse it
with another function.

I also wonder for the sound if I can use an API to ask my windows to
tell me the level of the sound but according to the sound card (so I
don't get the level from the source (the media) but via the sound card).
Is the Media player componend can do that ? Do I have to take a look ad
Directxxx APIs ?

Thanks for your help.

Regards.

FE

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
501
by: rockstar1971 | last post by:
Hello. I’m working with the Windows Media Encoder SDK to create an online jukebox for myself, but I’m having problems getting it to work. Here’s what I want to do: I’ve got a large collection of mp3 files that I listen to at work from my home server. I simply share them out from IIS and then open playlist files in WMP to play lists of songs. This works well fairly well. However, most of my mp3s are encoded at 192kbps or higher,...
2
2866
by: StefanT | last post by:
Hi, I have a web app and a I have a http handler for a file, when I have a web request for that file I insert a stream of bytes like this: public void ProcessRequest(System.Web.HttpContext context) { string path = "c:/media/atb.mpg"; byte buffer=null; context.Response.ClearHeaders();
19
3852
by: Lisa Jones | last post by:
Hi I don’t want to change my name or anything :) but I wish I was able to save Sound into SQL server and retrieve it So my question is How do you save a wav file into a SQL server and how do you retrieve it Thanks so much Lisa Jone
5
3251
by: Manuel Alves | last post by:
Hi, Is it possible to store media files (like windows .wmv) on SQL Server 2005 and stream it back to the client via media server (not just download it)? Regards, Manuel Alves
1
1841
by: Arielle | last post by:
I wasn't sure where to put this but anyway here's the idea and I'm wondering if it's possible. Help would be appreciated but if anyone has done this before regardless I can eventually figure it out I just don't want to waste effort on the impossible. I want to basically detect a visitor's connection speed when they come to my website in order to determine which "version" to forward them to. I have one that is a little media intense...
4
6315
by: hzgt9b | last post by:
Using VS 2003, VB.NET and/or ASP.NET 2.0, BACKGROUND I have a window forms based application that contains a TreeView control and a WebBroswer (AxSHDocVw.AxWebBrowser) control. The TreeView is populated with nodes that when clicked play an audio clip from specified local or web URL and navigate the browser control to a specified local or web URL. Audio playback uses as hidden media player object AxWMPLib.AxWindowsMediaPlayer).
19
19275
by: Tony | last post by:
I'm working on project that plays movies using Windows Media Player and I'm controlling everything with JavaScript. Per the client I only need to support IE 6 or greater which happens to make things a bit easier. What I need to do is create a playlist and play it using JavaScript. I keep on getting close but not close enough to play the dang files. Has anyone done this before and can shed some light on what worked for them?
9
6486
Atran
by: Atran | last post by:
Hello everybody, can anyone till me: What we can do in System.ComponentModel If you can give me easy example too. Thanks for anyhelp.
2
4777
by: lazzypink | last post by:
hi guys! i having a problem in my project which is create a media player and let the user choose the sound card for audio output. Let say i have 2 sound card in my computer, i want to select the sound card to play an audio file. i'm using C# window media player com component. eg. axWindowsMediaPlayer1. your kindly help much much appreciated. Thanks!
0
9487
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9297
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10069
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9904
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9735
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8736
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7285
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3828
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2697
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.