Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Converting avi to mp4 with ffmpeg
27 octobre 2013, par Juddy SwaftI use php code:
$ffmpeg_command ="ffmpeg -i ".$new_name." -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 ".$anew_name; $convert_avi = true;
i know that the problem is in here:
-s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5
EDIT2: My ffmpeg info with installed libx264:
http://www.part.lt/img/6459c908d41d2c4ce7a9294db1f134df613.PNG
EDIT 3: OK this is confusing becose i have just tried convert via putty i used:
ffmpeg -i movie.avi -acodec libmp3lame -vcodec libx264 -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 goodmovie.mp4
and it converted well just weights 6mb original one was 1.8mb, so i uploaded to my ftp via upload script and it worked now im sure that problem is not in the server anymore is in my php code but i dont know how to fix it:/
-
Converting avi to mp4 ffmpeg
26 octobre 2013, par Dirk SwarzI use php code:
$ffmpeg_command ="ffmpeg -i ".$new_name." -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 ".$anew_name;
$convert_avi = true;
i know that the problem is in here:
-s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5
Idea is when video is converted i can watch it via flash player and now flash player is saying that video is not found or bad syntax so obviuos its bad syntax but i dont know how to fix it
-
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.