Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
on PKG_CONFIG_PATH setting
25 novembre 2016, par KindermannI've installed ffmpeg on Ubuntu 16.04. Each time when I wanted to use
pkg_config_path
in a new terminal, I always had to type the following:export PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
Is there a way where I can permanently set this path?
-
FFmpeg : Images to video, repeat x times
25 novembre 2016, par user2190035I convert a list of images to a video with ffmpeg.
But I want a video which repeat all the images x times without storing copies of the images on the harddrive.
Is there a way to tell ffmpeg to repeat the input images in a video x times?
-
How to get a list of audio devices in dshow and save
25 novembre 2016, par H S TI use
avformat_open_input
in ffmpeg to open the audio device, but the second argument to this function is the audio device name, and may not be the full name. So how do I getavformat_open_input (& pFmtCtx, "video = dummy", iformat, & options);
List of audio device names listed?Or directly use ffmpeg to open the default audio device?Thanks. -
opencv_ffmpeg module crash (IP Camera)
25 novembre 2016, par Suraksha AjithI'm using IP webcam android app(It converts mobile camera into IP web camera).
I'm running below code in Visual Studio 2015 with OpenCV 3.1.VideoCapture cap; Mat img; cap.open("http://192.168.0.101:8080/video?x.mjpeg"); while(waitKey(33)!=27) { try{ cap>>img; //code crashes here if(img.empty()) { cout<<"camera Closed"<code>
Getting below error.cIf the internet connection is slow or if the Wi-Fi is disconnected in my android device the program crashes
Error:Exception thrown at 0x0BF2F6F0 (opencv_ffmpeg310.dll) in test.exe: 0xC0000005: Access violation reading location 0x00000020.
If there is a handler for this exception, the program may be safely continued.
even if the code is wrapped within try catch block, it crashes!
Should I use try {} catch (...) block in source file, if yes, then where should I use this?
I referred this link but did not find the right answer. -
How to generating waveform from video & show it with video
25 novembre 2016, par SalilWe are using Rails as a backend & AngularJS on Front End side in my App where we need to show Video & audio waveform of that video.
We are using 'wavesurfer.js' to show the waveform on Front End side & 'node-pcm' to generate pcm from video file on BackEnd side.
This is working as expected but in some of the videos while creating waveform from pcm data instead of showing small sine waves we get flat line. Also it takes too much time to show the waveform for every page reload.
To overcome this issue we are planning to create waveform image using ffmpeg
ffmpeg -i 'https://s3.amazonaws.com/aadasdsadsadasdas/xyz.mp4' -filter_complex showwavespic -frames:v 1 output.png
This is working fine but it also takes too much time (Ofcourse only once ) to generate the image for remote video (i.e. We are saving videos on S3)
Problem with this i don't get any library to integrate the waveform image with the Video.
Can someone suggest any better approach related to this.