ffmpeg

How to capture audio streaming with ffmpeg

一世执手 提交于 2021-02-08 04:57:07
问题 I'd like to capture audio streaming from a live radio on internet using ffmpeg. If you have some examples or documentation it will be very appreciated. 回答1: Assuming the protocol is HTTP and audio format is MP3 it can be as simple as: ffmpeg -i http://server:port -c copy output.mp3 See: FFmpeg Protocols Documentation ffmpeg Documentation: Stream copy 来源: https://stackoverflow.com/questions/45239954/how-to-capture-audio-streaming-with-ffmpeg

creating video from selected images using FFMPEG through command Line Android

*爱你&永不变心* 提交于 2021-02-08 04:52:12
问题 i am trying to make a video from selected images from command line using ffmpeg in android using this project as my source i m trying to make video this is the command i m trying to create video String[] ffmpegCommand = {ffmpegBin, "-y", "-qscale", "1", "-r", "" + frameRate, "-i", image1.getAbsolutePath(), "-t", "" + (((4) * 30) + 4), //"-s",heightwidth, "-i", image2.getAbsolutePath(), "-t", "" + (((4) * 30) + 4), //"-s",heightwidth, "-i", image3.getAbsolutePath(), "-t", "" + (((4) * 30) + 4)

How to use ffmpeg in a python function

≯℡__Kan透↙ 提交于 2021-02-08 03:34:10
问题 I have tried to use a ffmpeg to extract an audio from a video file and this is my code import io import os import subprocess def extract_audio(video,output): command = "ffmpeg -i '{video}' -ac 1 -f flac -vn '{output}'" subprocess.call(command,shell=True) extract_audio('dm.MOV','dm-new.flac') And I got no error after compiled. By doing this I should get a new file which is 'dm-new.flac'. But there is no such a flac file created after I compile the script. I think there are something wrong with

How to use ffmpeg in a python function

半腔热情 提交于 2021-02-08 03:34:08
问题 I have tried to use a ffmpeg to extract an audio from a video file and this is my code import io import os import subprocess def extract_audio(video,output): command = "ffmpeg -i '{video}' -ac 1 -f flac -vn '{output}'" subprocess.call(command,shell=True) extract_audio('dm.MOV','dm-new.flac') And I got no error after compiled. By doing this I should get a new file which is 'dm-new.flac'. But there is no such a flac file created after I compile the script. I think there are something wrong with

ffmpeg decoding slow calling without avformat_find_stream_info

江枫思渺然 提交于 2021-02-08 00:24:05
问题 I am decoding h264 rtp stream with ffmpeg on android. I found a strange problem: if I don't call avformat_find_stream_info ,decoding P frame takes tens of micro seconds, by contrast, calling avformat_find_stream_info before decoding will reduce P frame decoding time to less than 1 ms on average. However, avformat_find_stream_info itself is time consuming on network streams. Are there anything I can do to make decoding fast without calling avformat_find_stream_info ? 回答1: When avformat_find

ffmpeg decoding slow calling without avformat_find_stream_info

China☆狼群 提交于 2021-02-08 00:22:27
问题 I am decoding h264 rtp stream with ffmpeg on android. I found a strange problem: if I don't call avformat_find_stream_info ,decoding P frame takes tens of micro seconds, by contrast, calling avformat_find_stream_info before decoding will reduce P frame decoding time to less than 1 ms on average. However, avformat_find_stream_info itself is time consuming on network streams. Are there anything I can do to make decoding fast without calling avformat_find_stream_info ? 回答1: When avformat_find

ffmpeg decoding slow calling without avformat_find_stream_info

拥有回忆 提交于 2021-02-08 00:20:27
问题 I am decoding h264 rtp stream with ffmpeg on android. I found a strange problem: if I don't call avformat_find_stream_info ,decoding P frame takes tens of micro seconds, by contrast, calling avformat_find_stream_info before decoding will reduce P frame decoding time to less than 1 ms on average. However, avformat_find_stream_info itself is time consuming on network streams. Are there anything I can do to make decoding fast without calling avformat_find_stream_info ? 回答1: When avformat_find

ffmpeg decoding slow calling without avformat_find_stream_info

蹲街弑〆低调 提交于 2021-02-08 00:19:43
问题 I am decoding h264 rtp stream with ffmpeg on android. I found a strange problem: if I don't call avformat_find_stream_info ,decoding P frame takes tens of micro seconds, by contrast, calling avformat_find_stream_info before decoding will reduce P frame decoding time to less than 1 ms on average. However, avformat_find_stream_info itself is time consuming on network streams. Are there anything I can do to make decoding fast without calling avformat_find_stream_info ? 回答1: When avformat_find

Split audio file into several files, each below a size threshold

时光总嘲笑我的痴心妄想 提交于 2021-02-07 20:45:59
问题 I have a FLAC file which I need to split into several distinct FLAC files, each of which must be below 100 MB in size. Are there any UNIX tools which can do this for me? Can I implement this logic myself? Side-note: since FLAC is compressed, I figure that the easiest solution will require first converting the file to WAV. 回答1: There are two parts to your question. Convert existing FLAC audio file to some other format like wav Split converted wav file into chunk of specific size. Obviously,

Split audio file into several files, each below a size threshold

喜夏-厌秋 提交于 2021-02-07 20:45:25
问题 I have a FLAC file which I need to split into several distinct FLAC files, each of which must be below 100 MB in size. Are there any UNIX tools which can do this for me? Can I implement this logic myself? Side-note: since FLAC is compressed, I figure that the easiest solution will require first converting the file to WAV. 回答1: There are two parts to your question. Convert existing FLAC audio file to some other format like wav Split converted wav file into chunk of specific size. Obviously,