audio

Dump subtitle from AVSubtitle in the file

扶醉桌前 提交于 2021-01-29 05:15:59
问题 In FFMPEG sofftware, AVPicture is used to store image data using data pointer and linesizes.It means all subtitles are stored in the form of picture inside ffmpeg. Now I have DVB subtitle and I want to dump picture of subtitles stored in AVPicture in a buffer. I know these images subtitles can be dump using for, fopen and sprintf. But do not know how to dump Subtitle.I have to dump subtitles in .ppm file format. Can anyone help me to dump picture of subtitles in buffer from AVSubtitle . 回答1:

libswresample: swr_convert() not producing enough samples

瘦欲@ 提交于 2021-01-28 22:28:35
问题 I'm trying to use ffmpeg/libswresample to resample streaming audio in my c++ application. Changing the sample width works well and the result sounds as one would expect; however, when changing the sample rate the result is somewhat crackly. I am unsure if it is due to incorrect usage of the libswresample library, or if I'm misunderstanding the resampling theory. Here is my resampling process, simplified for demonstration's sake: //Externally supplied data const uint8_t* in_samples //contains

Using AudioRender device as Input for AudioGraph UWP

烈酒焚心 提交于 2021-01-28 20:24:31
问题 I have a fully functional AudioGraph system in place for a realtime voice chat. You can select the AudioCapture and AudioRender devices before and during the chat however I'd also like to be able to use Audio from the AudioRender devices for input on the AudioCapture graphs. How can I go about that? I currently have tried just selecting the device with the device Id however it gives the error: "DeviceNotAvailable" . for CreateAudioDeviceInputNodeResult result = await ingraph

Remove Audio in ReCaptcha?

自闭症网瘾萝莉.ら 提交于 2021-01-28 19:51:43
问题 Haven't been able to do this yet! Anyone know a way to disable the audio feature in ReCaptcha? Thanks! 回答1: You can use CSS to hide the button: #recaptcha_switch_audio { display: none; } 来源: https://stackoverflow.com/questions/6604844/remove-audio-in-recaptcha

AVPlayer status AVPlayerStatusFailed not working Properly

痴心易碎 提交于 2021-01-28 17:35:25
问题 I am implementing AVPlayer (not AVAudioPlayer) and trying to play audio from URL. It is working fine. But as we know that sometimes we can have invalid URL (URL that does not have Audio byte). When I play audio from any URL AVPlayer status shows always AVPlayerStatusReadyToPlay which is wrong. For example : In URL part if give invalid URL like : http://soundx.mp3slash.net/indian/jhankar_beats/1%28mp3pk.com%29.mp3 (it does not works even in your browser) and even if you give https:/

Playing audio sound sequencely with javascript audio

醉酒当歌 提交于 2021-01-28 12:19:58
问题 I'm creating a queue system based on web, and i find it difficult on the audio part, i want audio playing sequencely, for example var sounds = [ new Audio("/audios/ding.wav"), new Audio("/audios/nomor_antrian.wav") ]; for (var i=0; i<sounds.length; i++) { sounds[i].play(); # If sounds[i] is stoped play sounds[i+1] <- what function in here } 回答1: Simply hold the current index of the audio you're playing, and increment it in HTMLAudio's ended event : var url = "https://dl.dropboxusercontent.com

opensmile cComponentManager error

爱⌒轻易说出口 提交于 2021-01-28 11:57:27
问题 I am trying to use opensmile-2.3.0. When I run the following command (I moved all files in the vad folder to config folder): ./SMILExtract -I example-audio/media-interpretation.wav -C config/vad_opensource.conf -csvoutput vad.csv I got the error: (ERROR) [1] in cComponentManager : cannot add component (instname='lstmVAD' type='cRnnProcessor'): unknown component type!! (ERROR) [1] in cComponentManager : error during addComponent (returnVal=-1)! terminate called after throwing an instance of

I need to convert audio file from μ-law to PCM

会有一股神秘感。 提交于 2021-01-28 10:21:51
问题 I need to convert wav file from FORMAT 1 to FORMAT 2 Format 1 : μ-law, 8000Hz, 64 kbps, mono FORMAT 2 : Container WAV Encoding PCM Rate 16K Sample Format 16 bit Channels Mono Following is the Code snippet : File file = new File("audio_before_conversion.wav"); AudioFormat audioFormat = new AudioFormat(16000, 16, 1, true , true); AudioInputStream audioInputStream1 = new AudioInputStream( new FileInputStream(file), audioFormat, numFrames); AudioSystem.write(audioInputStream1, Type.WAVE, new File

I need to convert audio file from μ-law to PCM

守給你的承諾、 提交于 2021-01-28 10:20:32
问题 I need to convert wav file from FORMAT 1 to FORMAT 2 Format 1 : μ-law, 8000Hz, 64 kbps, mono FORMAT 2 : Container WAV Encoding PCM Rate 16K Sample Format 16 bit Channels Mono Following is the Code snippet : File file = new File("audio_before_conversion.wav"); AudioFormat audioFormat = new AudioFormat(16000, 16, 1, true , true); AudioInputStream audioInputStream1 = new AudioInputStream( new FileInputStream(file), audioFormat, numFrames); AudioSystem.write(audioInputStream1, Type.WAVE, new File

I need to convert audio file from μ-law to PCM

痴心易碎 提交于 2021-01-28 10:18:27
问题 I need to convert wav file from FORMAT 1 to FORMAT 2 Format 1 : μ-law, 8000Hz, 64 kbps, mono FORMAT 2 : Container WAV Encoding PCM Rate 16K Sample Format 16 bit Channels Mono Following is the Code snippet : File file = new File("audio_before_conversion.wav"); AudioFormat audioFormat = new AudioFormat(16000, 16, 1, true , true); AudioInputStream audioInputStream1 = new AudioInputStream( new FileInputStream(file), audioFormat, numFrames); AudioSystem.write(audioInputStream1, Type.WAVE, new File