Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
User desktop screen recording in asp.net [on hold]
26 octobre 2013, par Akash Langhanihow to recored user desktop video in c# asp.net application, what type of library sdk or nay command line tools required, can we recored user screen in FFmpeg.
-
Mingw-w64 builded FFmpeg doesn't show any usage information
26 octobre 2013, par user1240328First I wanted to modificate ffplay according to my requirments. Then I noticed that original ffplay from my build can't play some video files, but it didn't write any message to console. Then I noticed that ffmpeg also don't write any usage message when I run it without params. But it works. If I run it from terminal it's like running asynchronously! The terminal just shows next row. I mean it asks for a next command. But the
ffmpeg
process is visible in task manager and it writes the output video file what I had requested!I created following souce file. I have modified the Makefile. So it have built the exe-file works just the same way. I have no idea how it can be.
#include #include "cmdutils.h" const char program_name[] = "hello"; const int program_birth_year = 2013; void show_help_default(const char *opt, const char *arg) { printf("zxcvbnm\n"); } int main(int argc, char **argv) { printf("1234567890\n"); return 0; }
I want to prevent this behavior.
I want to make printf working in traditional manner.
How I build FFmpeg:
PKG_CONFIG_PATH=/home/developer/workspace/MinGW32fs/lib/pkgconfig/ \ SDL_CONFIG=/home/developer/workspace/MinGW32fs/bin/sdl-config \ ./configure \ --prefix=/home/developer/workspace/MinGW32fs \ --extra-ldflags="-L/home/developer/workspace/MinGW32fs/lib" \ --extra-cflags="-I/home/developer/workspace/MinGW32fs/include" \ --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- \ --pkg-config=pkg-config --enable-libtheora --enable-libvorbis --enable-libvpx \ --enable-outdev=sdl --enable-shared --disable-static \ --disable-doc --disable-manpages --disable-podpages make
-
How to set RTSP mode to TCP using Xuggler
26 octobre 2013, par Anurag JoshiI am working with a Sanyo VCC HD2300P IP camera and trying to capture the frame from the live stream on the camera. I have another camera that provides an rtsp stream and the Xuggler code works fantastically on that. However, on the sanyo camera I get the error below
could not open stream: rtsp://admin:admin@192.168.0.3:554/VideoInput/1/h264/1
I use this stream on iSpy and VLC and am able to get the stream. Using the functionality from these 2 programs I am also able to capture a frame from the stream. The URL for the other camera that works well is rtsp://admin:123456@192.168.0.246/mpeg4cif. So on the face of it I don't see a reason why it should not work.
Any help will be highly appreciated.
EDIT: I searched and experimented a lot. Earlier I was using the inbuilt support for Sanyo cameras in iSpy using which the camera stream was visible. However, when I tried to directly provide the URL for the H.264 stream, the stream would not work unless I changed RTSP mode to TCP. This gave me a hint that probably I need to call the IContainer.open method in a manner that uses RTSP over TCP. Googling about it threw some possible solutions like
using rtsp://192.168.0.3:554/VideoInput/1/h264/1?tcp
It says that this would force the stream to open on TCP. However, nothing has changed for me. I still get the same error.
EDIT2: So essentially it boils down to how do I set the RTSP transport mode to TCP? By default the transport mode for RTSP is UDP.
-
How to set up FFmpeg thumbnail generator [on hold]
26 octobre 2013, par Juddy Swafti need set up FFmpeg thumbnail generator that automatically thumbnails apear on videos i have installed on my server FFmpeg service so i need php help. p.s im using php.melody cms
-
Working way to make video from images in C#
26 octobre 2013, par Jim MischelDoes anybody have a known reliable way to create a video from a series of image files? Before you mod me down for not searching for the answer before posting the question, and before you fire off a simple message like "use FFMPEG," read the rest of this message.
I'm trying to create a video, it doesn't matter too much what format as long as it's widely supported, from a series of images (.jpg, .bmp, etc.). My platform is Windows Server 2008, 64-bit. If I can make the video from within my C# program, that's great, but I'm not averse to writing a series of image files to a directory and then firing off an external program to make a video from those images.
The only constraints are: it must work on my Windows Server 2008 system, and be scriptable. That is, no GUI programs that require operator intervention.
I found a number of similar questions on StackOverflow, and have tried several of the solutions, all with varying degrees of frustration and none with anything like success.
FFMPEG looks like a great program. Maybe it is, on Linux. The two Windows builds I downloaded are broken. Given this command line:
ffmpeg -r 1 -f image2 -i jpeg\*.jpg video.avi
One of the builds reads the images and then crashes due to data execution prevention. The other reads the first file and then spits out an error message that says "cannot find suitable codec for file jpeg/image2.jpg". Helpful, that. In any case, FFMPEG looks like a non-starter under Windows.
One answer to a previous posting recommended Splicer . It looks like pretty good code. I compiled the samples and tried to run, but got some cryptic error message about a file not found. It looks like a COM class isn't registered. I suppose I need to install something (DirectShow, maybe, although I thought that was already installed?). Depending on what's required, I might have a difficult time justifying its installation on a server. ("What? Why do you need that on a server?")
Another answer suggested the AviFile library from Code Project. That looks simple enough: a wrapper around the Windows AviFile subsystem. Except that the AVI files the package creates appear to have all of the frames, but only the first frame shows when I play the AVI in Windows Media Player. Well, that and if you try to create a compressed video, the program throws an exception.
So, I'm left wondering if there is a good, reliable way to do what I want: on a Windows system, create an AVI or other common video file format from a series of images, either through a .NET API or using an external program. Any help?