Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • Create Video Thumbnail of All Files in a Directory via FFmpeg and PHP

    2 février 2012, par Hashid Hameed

    I have searched all over the Google and StackOverFlow, but still did not find a solution for this.

    I want to generate video thumbnail of all mp4 video files in a directory and name the thumbnails as "filename.mp4".jpg

    I have ffmpeg and ffmpeg-php installed on my server. I also succeeded in creating thumbnails of one file at a time.

    So this is the situation, I have a directory named uploads which has lots of mp4 videos. Now, when I run the script, thumbnail of size 100x100 shoud be created automatically and placed in another folder "skrin". Eg: xxx.mp4 should have xxx.mp4.jpg has the thumb name.

    IMPORTANT: My filenames have spaces, single quotes, brackets etc in their file names. So the script should be able to handle this.

    Could some one help me ? I use the following shell command in php using exec to generate thumb of an individual video.

    exec("/usr/local/bin/ffmpeg -itsoffset -105 -i 'xxx haha.mp4' -vcodec mjpeg -vframes 1 -an -f rawvideo -s 100x100 'xxx haha.mp4.jpg'");
    
  • FFMpeg used in a C# MVC 3 app

    2 février 2012, par Chris

    I'm slowly going mad here and I'll apologise now as this question is going to be vague but I'm really struggling with getting video converting working reliably with FFMpeg. I've tried a few different wrappers but they all seem to go the same way.

    What I mean by that is unreliable converting (told you it would be vague), one time it will convert a video fine with no problems then the next it will just create a empty file. One solution I have tried is http://jasonjano.wordpress.com/2010/02/09/a-simple-c-wrapper-for-ffmpeg/ with unreliable results. I've currently even tried to get a trial version of a paid solution working (Media Handler by http://www.mediasoftpro.com/) with no joy either. I've worked on this for nearly the whole week and I've still go no closer to a reliable solution. Anyone with any help about anything really would be appreciated as I'm slowly going insane.

  • Android, Share library dependency

    2 février 2012, par NadavRub
    1. I am Implementing an application that is using LibAv/ffmpeg on Android
    2. I am using JNI to interact with the Native code
    3. my 'Shared Lib' is using libswscale.so, libavutil.so, libavformat.so, libavdevice.so, libavcore.so and libavcodec.so.
    4. All the 'Shared Libs' are verified to be packed to the same directory on the APK file
    5. I am debugging on the device ( no emulator )
    6. Runtime.loadLibrary($MY_LIB_NAME) trigger an UnsatisfiedLinkError exception
    7. Directly running 'System.loadLibrary("swscale")' also cause an UnsatisfiedLinkError exception

    My guess is that libav*.so is dependent on additional libs that should be added to the APK, however, I am not sure how to detect these. Is there any tool to detect dependent Shared libraries? ( Window ddepends equivalent ) ?

    Any help will be appreciated.

    ~Nadav

  • split the video in several part using ffmpeg

    2 février 2012, par Himiko

    I want to write a small program with help of ffmpeg. I want to process a video by cut the video into several parts, left part, right part...etc. How can I do it using ffmpeg? By the way, are there any documentation explain the API of the ffmpeg?

  • Centos Video Optimizer

    2 février 2012, par Arjun Neras

    I have a lot of MP4 files on my server. And my aim is to get them to stream on android mobiles.

    The resolution of the videos are at 480×272 and this is not a problem because I tested it and most androids are able to stream it. But the problem is the size of the video. The streaming is slow and it buffers a lot because of its size.

    I need a converter that can decrease the size to around 50-60MB. With only a little decrease in quality. If possible, the output file should overwrite the input file.

    Can you think of any way I can do this work in minimum time? My server is CENTOS and I have FFMPEG, MP4Box installed.