Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Merge several mp4 video using ffmpeg and php [on hold]

    8 novembre 2013, par user2969041

    I would like to merge several videos using ffmpeg and php. I want to retrieve the names of the videos dynamically but I can't merge all the videos together I only get i-1 merged videos

    (I can't post the code, each time i would post it occures an error and then i can't post it)

  • Urgent : Merge several mp4 video using ffmpeg and php

    8 novembre 2013, par user2969041

    I would like to merge several videos using ffmpeg and php. I want to retrieve the names of the videos dynamically but I can't merge all the videos together I only get i-1 merged videos

    Can anyone help me??

    (I can't post the code, each time i would post it occures an error and then i can't post it)

  • Restreaming rtmpsuck saved file

    8 novembre 2013, par xester

    i want to use rtmpsuck to save one file and stream that file to my house network.

    due to the duration of that file its in the file using ffmpeg to do it will go down after the duration time even if with -re.

    Theres anyway someone knows that im able to do it?

  • about ffmpeg drawtext contains chinses

    8 novembre 2013, par user2968187

    When i use below command (ffmpeg drawtext filter), the result window display messy code □□.

    How to solve the problem ?

       ffplay -f lavfi -i color=c=white -vf drawtext=fontfile=arial.ttf:text=中文
    

    thanks very much

  • What the correct args for ffmpeg conversion

    8 novembre 2013, par Andrew Simpson

    I have a C# app. I am using ffmpge to convert jpgs to an OGG file. I use the process class to write to a stream buffer within my app using piping without having to write the ogg file to a disk. I then upload these bytes to my server where it is written to the hard drive.

    On the server side I want to convert it to say an mp4 format. Again, I want to pipe it out to a stream buffer and allow my User to download the file.

    This is my code:

    Process _serverBuild = null;

    public byte[] EncodeAndUploadImages(string _args1)
    {
        byte[] _data = null;
        try
        {
            _args1 = "ffmpeg.exe -i \"c:\\Cloud\\Zipped\\000EC902F17F\\f3e45e44-b61c-472b-8dc1-a8e9b9511497_00007.ogg\" avi -";
            _serverBuild = new Process();
    
            _serverBuild.StartInfo.WorkingDirectory = Environment.CurrentDirectory;
            _serverBuild.StartInfo.Arguments = _args1;
            _serverBuild.StartInfo.FileName =  @"C:\inetpub\wwwroot\bin\ffmpeg.exe";
            _serverBuild.StartInfo.UseShellExecute = false;
            _serverBuild.StartInfo.RedirectStandardOutput = true;
            _serverBuild.StartInfo.RedirectStandardError = true;
            _serverBuild.StartInfo.RedirectStandardInput = true;
            _serverBuild.StartInfo.CreateNoWindow = true;
            _serverBuild.StartInfo.LoadUserProfile = false;
            _serverBuild.ErrorDataReceived += _server_ErrorDataReceived;
            _serverBuild.OutputDataReceived += _server_OutputDataReceived;
            _serverBuild.Exited += new EventHandler(_server_Exited);
            _serverBuild.EnableRaisingEvents = true;
            _serverProcessHasFinished = false;
            _serverBuild.Start();
    
            mStandardOutput = _serverBuild.StandardOutput.BaseStream;
            mStandardOutput.BeginRead(mReadBuffer, 0, mReadBuffer.Length, StandardOutputReadCallback, null);            
            _serverBuild.WaitForExit();
    
    
    
    
        }
        catch (Exception _ex)
        {
    
        }
        finally
        {
            _serverBuild.ErrorDataReceived -= _server_ErrorDataReceived;
            _serverBuild.OutputDataReceived -= _server_OutputDataReceived;
            _serverBuild.Dispose();
        }
        return _data;
    }
    
    byte[] mReadBuffer = new byte[4096];
    MemoryStream mStandardOutputMs = new MemoryStream();
    Stream mStandardOutput;
    
    private void StandardOutputReadCallback(IAsyncResult ar)
    {
        try
        {
            int numberOfBytesRead = mStandardOutput.EndRead(ar);
            {
                mStandardOutputMs.Write(mReadBuffer, 0, numberOfBytesRead);
                mStandardOutput.BeginRead(mReadBuffer, 0, mReadBuffer.Length, StandardOutputReadCallback, null);
            }
        }
        catch (Exception _ex)
        {
    
        }
    }
    

    The error I get (when I test with a bat file and run within a DOS prompt) is:

    enter image description here

    Obviously my parameters are at fault. I want to keep it simple as I may want to use other formats apart from MP4.

    Thanks