Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Android ffmpeg simple JNI wrapper

    12 octobre 2012, par user1504495

    I've been trying to use an ffmpeg binary with command line access for a while now and getting nowhere (Using runtime.exec) It looks like the only way I'll be able to get it to work is using a wrapper in C to access the built ffmpeg libraries using JNI... Main problem: I haven't coded C for more than one and a half decades now and wouldn't know where to begin...

    I just need 3 operations, I need to add audio to a video file, I need to concatenate two video files and if possible I need to rotate a clip by 90 degrees (but I could do without this)...

    Does anyone have any example code that could work for me, or some good places to start (I've already exhausted much of the first pages of various google results to no avail)...

    Any help would be greatly appreciated!

  • PHP stops after exactly 46 seconds

    12 octobre 2012, par Lisa

    I have seen many topics with a similar question, but not a similar situation, because the php settings do not seem to be the problem.

    The current php.ini settings are:

    max_execution_time = 600
    max_input_time = 600
    memory_limit = 512M
    post_max_size = 192M
    upload_max_filesize = 192M
    

    These settings cannot be overwritten by the local .htaccess

    The script The script is PHP and does the following:

    User uploads a movie file (using uploadify). Once the upload is finished a script uses ffmpeg to convert it in to a lower quality 480p flv file.

    The problem This script has always worked and since the upgrade from php 5.3.9 to 5.3.17 it has stopped working. The upload part works fine. I have tried it with 1Mb to 190mb files. Once uploaded the conversion starts and the script always stops at exactly 46 seconds. I have no clue why, but it is always 46 seconds.

    The server The server is a xeon quad-core 16Gb ram and a load average of 0.62 (8 = 100% cpu usage)

    I truly have no idea what the problem seems to be. The script worked fine and has not changed. So it must be something to do with the new PHP or perhaps Apache, but I have no clue.

    Does anyone have a suggestion regarding what the problem could be?

  • slow ffmpeg's images per second when creating video from images

    12 octobre 2012, par apoorv020

    I have a series of screenshots from a demo that I want to put in a video. I am using ffmpeg for this purpose. The command is ffmpeg -f image2 -i screenshot_%5d.png -vcodec mpeg4 demo.avi. However, the video length is shorter than what I want, and it moves very fast. How do I specify how many images per second I want? I tried the -r argument but that did not work.

  • decoding AAC in ffmpeg android

    12 octobre 2012, par synthcat

    I am attempting to decode an M4A file on an Android device using AAC.

    I use the following code to initialize the codec.

    codec = avcodec_find_decoder(CODEC_ID_AAC);
    c= avcodec_alloc_context();
    avcodec_open(c, codec);
    

    However, when I later attempt to decode a frame using:

    len = avcodec_decode_audio3(c, (short *)mOutbuf, &out_size, &avpkt);
    

    I get -1 (indicating an error) and the following on the log.

    10-11 16:30:01.115: INFO/M4ADecoder(5260): channel element 0.0 is not allocated

    10-11 16:30:02.195: INFO/M4ADecoder(5260): channel element 2.0 is not allocated

    10-11 16:30:03.295: INFO/M4ADecoder(5260): channel element 0.6 is not allocated

    10-11 16:30:07.645: INFO/M4ADecoder(5260): Sample rate index in program config element does not match the sample rate index configured by the container. 10-11 16:30:07.655: INFO/M4ADecoder(5260): Number of bands (3) exceeds limit (2).

    Are there any other steps I need to do when setting up the codec? Do I need to preparse the file before sending data to the AAC decoder?

    The same file works fine with the latest ffmpeg code on Mac OSX (i.e., ffmpeg -i filename.m4a").

    Thanks in advance for any help you can provide.

  • Get flv source from stream with php for ffmpeg

    12 octobre 2012, par Stephan

    I'm trying to automatically create thumbnails from different video sites like vimeo on server side with php and ffmpeg. I got the flv url with video-download-helper and created the thumbnails successfully with ffmpeg.

    However, I fail at getting the flv url from my first curl response. VideoDonwloadHelper creates the url only after I clicked on the video from the "Content-Type: video/mp4" response - but how do I fetch it automatically on server-side without the DownloadHelper?