Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Compiling FFMPEG for Kali Linux 2
1er janvier 2017, par NeMesiSI'm trying to install FFMPEG to Kali Linux 2.0 So far I've been trying to use the following commands:
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg cd ffmpeg ./configure make make install
However when I try and make it I get the following errors:
libavcodec/x86/imdct36.asm:393: error: operation size not specified library.mak:30: recipe for target 'libavcodec/x86/imdct36.o' failed make: *** [libavcodec/x86/imdct36.o] Error 1
I'm really stumped as how to resolve this as my skill are only moderate...
-
c# pipe using youtube-dl to ffmpeg
1er janvier 2017, par lilscarecrowI am trying to pipe the audio stream from youtube-dl into ffmpeg for a program using discord.NET. I am not sure exactly how to achieve this in c#, though. Currently, I can play ffmpeg with a url or path from this code on the docs for discord.NET:
var process = Process.Start(new ProcessStartInfo { FileName = "ffmpeg", Arguments = $"-i {outLine.Data}" + " -f s16le -ar 48000 -ac 2 pipe:1", UseShellExecute = false, RedirectStandardOutput = true }); Thread.Sleep(2000); int blockSize = 3840; byte[] buffer = new byte[blockSize]; int byteCount; while (!playing) { byteCount = process.StandardOutput.BaseStream .Read(buffer, 0, blockSize); if (byteCount == 0) break; _vClient.Send(buffer, 0, byteCount); } _vClient.Wait();
So, I am trying to pipe the youtube-dl audio to this I assume. I just have no idea how to achieve piping in this format and for the file while it is downloading. Also, the program works on async if that helps.
-
How to pass input (Feeds) from camera to ffmpeg for live streaming
1er janvier 2017, par A SahraI want to stream video live that's captured via getUserMedia and pass it to ffmpeg as an Input or feed to make it live for other users on my website.
How would i get the Video as video4linux2 here?
$ffmpeg -f video4linux2 -i /dev/video0
I am getting video via getUserMedia from camera and in BackEnd it's PHP codeigniter.
-
Youtube-dl convert to MP3 multi cores [on hold]
1er janvier 2017, par Top Games a-ZDo you know how to tell to youtube-dl to use all cpu cores when convert music (using ffmpeg) to mp3? Because it downloads the song but when it has to convert it uses just one core. Thank you.
-
FFmpeg api : combine Camera Stream and Screen Capture or Video File stream to one stream (C/C++)
31 décembre 2016, par lostin2010I have one big question which spent me 2 total days to solve , but fail .
I want to combine Camera Stream with another stream (.flv,.mpg) to one stream . Just like the picture below. camera is a part of the Live , background is another stream.
My camera device is
[dshow @ 000373e0] "TTQ HD Camera" [dshow @ 000373e0] Alternative name "@device_pnp_\\?\usb#vid_114d&pid_8455&mi_00#6&1e9bcf33&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
I decode my Camera Stream , its format is
YUYV422
, and decode another flv file its format is 'YUV420p'. I use each decoder of oneself to build its own avfilter , camera is in0, flv file is in1 . and use this filter_speccolor=c=black@1:s=1920x1080[x0];[in0]null[ine0];[ine0]scale=w=960:h=540[inn0];[x0][inn0]overlay=1920*0/2:1080*0/2[x1];[in1]null[ine1];[ine1]scale=w=1160:h=740[inn1];[x1][inn1]overlay=1920*1/2:1080*0/2[x2];[x2]null[out]
i build a filter_graph.then I read packet out separately and add_frame to filter.
for (i = 0; i < video_num; i++)//i=0 camera packet , i=1 flv file packet { while ((read_frame_done = av_read_frame(ifmt_ctx[i], &packet)) >= 0) { ret = av_buffersrc_add_frame(filter_ctx[stream_index].buffersrc_ctx[i], frame[i]); } }
then i get frame out into picref
while (1) { ret = av_buffersink_get_frame_flags(filter_ctx[stream_index].buffersink_ctx, picref, 0); }
I encode picref or display it with SDL , I find there is only the flv stream , no camera stream on showing. i don't know why. but if I change the source stream from camera stream to another flv file, means two flv file as source streams, then it is correct like demo picture above. this confuses me a lot . who can help me, I will really thank you.