multimedia

Looking for a simple MP3 library for C# [closed]

[亡魂溺海] 提交于 2019-12-04 15:31:42
I'm writing a larger project and a part of the project is playing MP3 files. Nothing fancy, just playing files from a playlist, start/stop, next/previous (can be done outside the library), fast forward/rewind. I'm looking for a (free) library, or any other method of doing that. Relying on an external player is not an option. Bass Audio Library is one option. Check out SDL.NET http://cs-sdl.sourceforge.net/ It's a library and has ways to play music. NAudio is an open source .NET audio library that can play back WAV files, using ACM codecs installed on your computer for decompression purposes.

How to convert pixels to gray scale?

霸气de小男生 提交于 2019-12-04 04:24:39
Ok, I am using Processing which allows me to access pixels of any image as int[] . What I now want to do is to convert the image to gray-scale. Each pixel has a structure as shown below: ...........PIXEL............ [red | green | blue | alpha] <-8--><--8---><--8--><--8--> Now, what transformations do I need to apply to individual RGB values to make the image gray-scale ?? What I mean is, how much do I add / subtract to make the image gray-scale ? Update I found a few methods here: http://www.johndcook.com/blog/2009/08/24/algorithms-convert-color-grayscale/ For each pixel, the value for the

memcpy from graphic buffer is slow in Android

别来无恙 提交于 2019-12-03 21:56:52
I want to capture every frame from a video to make some modification before rendering in Android device, such as Nexus 10. As I know, android uses hardware to decode and render the frame in the specific device, so I should get the frame data from GraphicBuffer, and before rendering the data will be YUV format. Also I write a static method in AwesomePlayer.cpp to implement that capture frame data / modify the frame / write it back into GraphicBuffer to render. Here is my demo code static void handleFrame(MediaBuffer *buffer) { sp<GraphicBuffer> buf = buffer->graphicBuffer(); size_t width = buf-

how to record anything from soundcards?

时光毁灭记忆、已成空白 提交于 2019-12-03 21:00:24
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 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 http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what-you-hear.aspx might help try http://sourceforge.net/projects/delphiasiovst/ . there is a component to communicate with the ASIO driver.

Changing speed of a sound file

江枫思渺然 提交于 2019-12-03 17:03:16
I'm looking to change the speed of a sound file, but am at a loss as to how to accomplish it. I'm assuming that some type of interpolation has to take place in the case of slowing it down, but am unsure how to accomplish a speed up - perhaps an average of several samples? Whether it changes the tempo or pitch doesn't really matter at the moment, I'd like to learn how to accomplish both, but would like to at least accomplish one or the other to begin. If anyone has any references to the math behind these types of operations, they would be greatly appreciated! Thanks, Ben coobird There are two

How to edit or add video metadata of “rotation” in mp4?

落爺英雄遲暮 提交于 2019-12-02 23:07:56
I want put rotation information into my mp4 video file but I have no idea about this. Is there any program that I can add "rotation" metadata? It would be OK if there's the way to edit video content with hexa editor. +1 for FFMpeg. More specifically, I had good results correcting orientation metadata with ffmpeg -i input.mp4 -metadata:s:v rotate=90 -vcodec copy -acodec copy output.mp4 danielmhanover Check out the software FFMpeg , use ffprobe to give you the rotation metadata of any video file if it has it. Check out this answer for functions allowing your to rotate videos. 来源: https:/

Getting started with audio programming [closed]

别等时光非礼了梦想. 提交于 2019-12-02 14:56:30
I'm looking to build some compression interfaces for windows audio, and I was wondering if anybody might know of some tips/tricks? I'd like to build my own software equalizer that will function with the whole windows audio system, not just a particular program. I know this can be done - my sound card has one built in, but doesn't have enough channels for my tastes. I'm completely new to audio programming, but I'd really like to break into it and get my hands dirty. If you can think of any tutorials/references/articles/bits of advice, I'd love to hear them! I'm using Visual Studio C++ 2008. If

Window Media Player issues two requests for the audio on web page

拥有回忆 提交于 2019-12-02 01:31:15
I'm using Windows Media Player in a web page. I have version 11 installed so that is the version I'm testing with right now. The player is embedded on the page with this HTML: <OBJECT id='MS_mediaPlayer' width="400" height="45" classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> <param name='autoStart' value="false"> <param name='uiMode' value="invisible"> <param name='loop' value="false"> </OBJECT> I

Android Multimedia Framework 架构--base on jelly...

会有一股神秘感。 提交于 2019-12-01 13:24:04
转载请注明出处:太妃糖出品。哈哈 我们学习一种新事物必然首先都要对该事物要有个大体的了解,熟悉它的整体架构,然后进行划分归类,接下来才是各个击破,逐步学习乃至掌握。对于要学习android Multimedia的人来说也是如此,先来个总括吧 !我打算分三部分来讲解,请听我娓娓道来.... 一:多媒体简介 为啥要讲多媒体的概念呢?可能很多人都对这个名称解释不怎么了解,所以在这普及普及。 媒体(Media)就是人与人之间实现信息交流的中介,简单地说,就是信息的载体,也称为媒介。多媒体是计算机和视频技术的结合,实际上它是两个媒体;声音和图像,或者用现在的术语:音响和电视。多媒体本身有两个方面,和所有现代技术一样它是由硬件和软件,或机器和思想混合组成。可以将多媒体技术和功能在概念上区分为控制系统和信息。多媒体之所以能够实现是依靠数字技术。多媒体代表数字控制和数字媒体的汇合,电脑是数字控制系统,而数字媒体是当今音频和视频最先进的存储和传播形式。事实上有人就简单地认为多媒体是电脑和电视的结合。电脑的能力达到实时处理电视和声音数据流的水平,这时多媒体就诞生了。 二:android多媒体框架演变历史 android 的多媒体框架从android诞生以来,发生了天方腹地的变化,包括引擎的更改,单独处理流媒体的播放器nuplayer的加入,到最新jellybean(android4.1

Streaming Real time Audio

回眸只為那壹抹淺笑 提交于 2019-11-30 14:20:59
I want to have a functionality of real time audio streaming on android device which is capturing audio through the MIC of the device and send it to the server. I know to send a send a audio file after recording but in case of real time I need help. May be it can be done by sending byte array continually to the server. If so how or if any other way, Please share your ideas. Thanks. EDIT- Android Client Code:- public class Main extends Activity { private MediaRecorder recorder; private final String TAG = "AudioTest"; /** Called when the activity is first created. */ @Override public void