Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • MPG & MPEG Options for FFMPEG ?

    12 octobre 2011, par Latox

    We are currently using the following (we haven't included what we're using for audio birtate and video bitrate as this can be changed by the end user):

    MPG:

    -vcodec mpeg2video -s 320x240 -ar 22050 -b 500 
    

    MPEG:

    -vcodec mpeg2video -s 352x240 -r 29.97 -acodec mp2 -ac 2 -ar 44100
    

    I found the above options while searching on Google, but I am struggling to find the best settings to use for these 2 formats, can anybody please suggest what to change / add / remove to make the MPEG & MPG conversion go more smoothly and output the highest quality.

    As I said, video and audio birate is chosen by the end user, so this will greatly increase quality, I am more concerned about the following parameters posted above.

    With the options used above, we are finding that the converted file is very, very lagged...

    What don't I need? What am I missing? What can be improved? What am I doing wrong?

    I need some advice for each format, MPG & MPEG.

  • ffmpeg : How do I loop audio when encoding video ? [closed]

    11 octobre 2011, par Glstunna

    I'm trying to encode a video with an mp3 and have that audio stream loop while the video stream is still running. The video steam is priority.

    I haven't seen commands in ffmpeg that allow this specifically. Does anyone have an idea?

  • Sending input to a command line program from PHP

    11 octobre 2011, par Karl Jóhann

    I'd like to be able to stop FFMPEG from PHP (on Windows).

    What I'm doing now is starting it as so:

    pclose(popen("start ffmpeg -i rtmp://livestream -o a_file.mp4", "r"));

    But as soon as I've done that I've lost all connection to the program (right?).

    I would like to send a 'q' to the process to stop it. Is there any way to do this?

    EDIT: I should probably explain that I use pclose because I need the PHP script to keep running and thus close the file pointer. Maybe the question should be: How can I keep the script running and the file pointer open?

  • Howto Merge .WAV files - with a repeating shorter wav file ?

    11 octobre 2011, par SeanNieuwoudt

    I need to take two WAV files (mysound.wav[10 seconds] and watermark.wav[1 second]) and merge the two together.

    The problem is that the new generated file needs to have watermark.wav repeating for the duration of mysound.wav.

    How do I do this via the CLI or script? I know about SoX and FFmpeg, but have not been successful at getting this work.

    Thanks in advance :)

  • FFMPEG in android

    11 octobre 2011, par Krishnendu

    Ii am trying to reduce the video size capture by default camera (it's generating high resolution video) in Android. Does FFMPEG have a property to encode a video with given resolution? I try to Google, but all examples are using command line mode for FFMPEG.

    My questions are:

    1. Can we use ffmpeg command line in Android?
    2. If not then how we will achieve it?
    3. Can we able record a video directly using ffmpeg in Android?
    4. Is there any other solution for this?