media

Slowing down the playback of an audio file without changing its pitch?

你说的曾经没有我的故事 提交于 2019-12-19 05:22:19
问题 I am working on an application for college music majors. A feature i am considering is slowing down music playback without changing its pitch. I have seen this done in commercial software, but cannot find any libraries or open source apps that do anything like this. Are there libraries out there? How could this be done from scratch from various file formats? Note: I am working in java but am not oppossed to changing languages. 回答1: Timestretching is quite hard. The more you slow down or speed

How to disable JavaScript in media query

戏子无情 提交于 2019-12-19 04:13:16
问题 I want to dissable javascripts in media query. @media only screen (max-device-width : 568px) { .sidebar { display: none; } #navmenu { margin-top:0px; width:auto; padding:10px; margin-left:15%;} .content {width:auto; height:auto; margin-left:0; margin-top:3%;} .contentsing{position:relative; width:100%; height:auto; margin-left:0%; margin-top:-150px;} } That is mu code, now i want to add something that will disable scripts. 回答1: You could wrap your script in an if statement that checks how

How to create a IDirect3DSurface from an IBuffer or byte array in UWP

依然范特西╮ 提交于 2019-12-19 04:04:10
问题 I want to create a video from a few RenderTargetBitmap s in UWP. I am doing that by using MediaClips . From RenderTargetBitmap i can get an IBuffer or byte array of pixels. To create a MediaClip I need either an image file or an IDirect3DSurface . Creating an image just to create a clip is very expensive, so I thought of using IDirect3DSurface . How can I do this? I have tried this: RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap(); await renderTargetBitmap.RenderAsync

How to create a IDirect3DSurface from an IBuffer or byte array in UWP

霸气de小男生 提交于 2019-12-19 04:04:05
问题 I want to create a video from a few RenderTargetBitmap s in UWP. I am doing that by using MediaClips . From RenderTargetBitmap i can get an IBuffer or byte array of pixels. To create a MediaClip I need either an image file or an IDirect3DSurface . Creating an image just to create a clip is very expensive, so I thought of using IDirect3DSurface . How can I do this? I have tried this: RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap(); await renderTargetBitmap.RenderAsync

node (socket) live audio stream / broadcast

六月ゝ 毕业季﹏ 提交于 2019-12-18 10:17:09
问题 Please, is there any easy way to stream (broadcast) media file (ogg, mp3, spx..) from server to client (browser) via NODE.js and possibly SOCKET.IO? I have to record audio input on the server side and then be able to play it realtime for many clients. I've been messing with binary.js or socket.io streams but wasnt able to get it right. I've tried to encode audio input with speex, vorbis or lame and then load it by FS to client but I havent been successful. Or do i have to capture PCM and then

Reverse video playback in iOS

元气小坏坏 提交于 2019-12-18 04:03:19
问题 I want to play video backward in AVPlayer. I have tried with changing rates property to -1.0, and although it did work it was not smooth. Is there any way through which I can smoothly play videos backward? 回答1: As stated in the comments, the problem is with keyframes and the fact that most codecs are not designed to play backwards. There are 2 options for re-encoding the video that doesn't require you to actually reverse the video in editing. Make every frame a keyframe. I've seen this work

Reverse video playback in iOS

混江龙づ霸主 提交于 2019-12-18 04:03:11
问题 I want to play video backward in AVPlayer. I have tried with changing rates property to -1.0, and although it did work it was not smooth. Is there any way through which I can smoothly play videos backward? 回答1: As stated in the comments, the problem is with keyframes and the fact that most codecs are not designed to play backwards. There are 2 options for re-encoding the video that doesn't require you to actually reverse the video in editing. Make every frame a keyframe. I've seen this work

Given an Android music playlist name, how can one find the songs in the playlist?

耗尽温柔 提交于 2019-12-17 09:49:34
问题 The playlist names can be found by a query on MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI and then look at the MediaStore.Audio.PlaylistsColumns.NAME column. There is a data column too, MediaStore.Audio.PlaylistsColumns._DATA, but it is returning null. The list of songs ( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI/id ) do not seem to show any playlist affiliation. 回答1: Here is a bit from my program: The gist is that you need the id for the playlist to grab the songs. Basically you can

Embedding Windows Media Player for all browsers

拥有回忆 提交于 2019-12-17 08:54:42
问题 We are using WMV videos on an internal site, and we are embedding them into web sites. This works quite well on Internet Explorer, but not on Firefox. I've found ways to make it work in Firefox, but then it stops working in Internet Explorer. We do not want to use Silverlight just yet, especially since we cannot be sure that all clients will be running Windows XP with Windows Media Player installed. Is there some sort of Universal Code that embeds WMP into both Internet Explorer and Firefox,

How do you get/set media volume (not ringtone volume) in Android?

让人想犯罪 __ 提交于 2019-12-17 08:29:41
问题 Is there a way to get/set media volume? I have tried the following: AudioManager audio = (AudioManager) getSystemService(Context.AUDIO_SERVICE); int currentVolume = audio.getStreamVolume(AudioManager.STREAM_RING); but it returns the ringtone volume. 回答1: Instead of AudioManager.STREAM_RING you shoul use AudioManager.STREAM_MUSIC This question has already discussed here. 回答2: private AudioManager audio; Inside onCreate: audio = (AudioManager) getSystemService(Context.AUDIO_SERVICE); Override