Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Use FFMPEG on Android

    20 septembre 2012, par huppyuy

    Does somebody know how to use FFMPEG on Android to convert YUV420 frame to H.264?

    I have ported FFMPEG work on Android with NDK, I just don't know how to use it. A source code is appreciated.

  • Want to convert my 16:9 size MKV video to 4:3 size AVI video file

    19 septembre 2012, par Bimal Rekhadiya

    I have a video in MKV format and it's size is 720x304 (16:9 ratio) size video.

    I want to convert it to AVi format (using xvid video codec). The output file size should be 480x360 (4:3 ratio) and also want to keep the original (16:9) ratio so it should be cinemascope (black areas at top and bottom).

    I am on Ubuntu linux OS so I can use mencoder, avconv(ffmpeg) or any tool that work on Linux.

    I am trying this command:

    avconv -i sample.mkv -vcodec libxvid -r 25 -b 1200 -aspect 4:3 -q 1 t.avi
    

    But the problem is that the video is stretched to 4:3 and I want to keep original video's ratio and want to add black boxes at top and bottom so it will look cinemascope.

    Please provide me command to do this.

  • ffmpeg set duration when converting [closed]

    19 septembre 2012, par Michael Samteladze

    I'm converting video with ffmpeg and after conversation duration is shown as 00:00:00.00. here is my passing arguments

    "-i " + FileName + " -ar 22050 -b 500k -f flv -t " + Duration + " " + outputfile
    

    Which is rendered by my code to

    -i 1.mov -ar 22050 -b 500k -f flv -t 00:03:34.99 1.flv
    

    what am I missing?


    filargs = "flvtool2 -UP " + outputfile;
                proc = new Process();
                proc.StartInfo.FileName = spath + "flvtool2.exe";
                proc.StartInfo.Arguments = filargs;
                proc.StartInfo.UseShellExecute = false;
                proc.StartInfo.CreateNoWindow = false;
                proc.StartInfo.RedirectStandardOutput = false;
    
                proc.Start();
    
                proc.WaitForExit();
                proc.Close();
    

    I've tried this, no effect, duration is still 0. where "outputfile" is my converted file who has no duration

  • Why encoding G723 sound clicks ?

    19 septembre 2012, par Stanislav Litvinenko

    I need to encode G723_1 To do this, I want to use avcodec. But when listening to the encoded file only sound clicks. To use an example to test api-example.c

    Example encoded file: test.g723

    Why this can happen? And how it can be solved?

  • Streaming avi to a red5 server

    19 septembre 2012, par user1197115

    I have a problem with Red5 Media Server. I installed it on Windows machine and I'm trying to stream *avi file to the server using ffmeg:

    ffmpeg -i testfile.avi -re -acodec libfaac -ar 22050 -vcodec libx264 -f flv rtmp://localhost/oflaDemo/test

    According to the console ffmpeg is streaming to a server.

    So I opened Publisher application to see if is it working or not. http://localhost:5080/demos/publisher.html

    I clicked connect, and i got this NetConnection.Connect.Success

    next I chenged stream name to test and pressed play NetStream.Play.Start

    but it didn't work.
    I will be really greatful if someone can help me.

    Kind Regards Babel