Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Raw audio stream of Android device mic to libgsm_ms file

    2 septembre 2011, par MANN

    I'm capturing audio stream from the android device mic, which I want to convert into libgsm_ms encoded file but without saving it into a file or converting it into some xyz format (time and cpu utilization issue) and then reconvert it into libgsm_ms standard. Please let me know how to achieve this? Is it possible to feed this stream directly to ffmpeg?

  • pyffmpeg segmentation fault on osx

    1er septembre 2011, par gok

    I am having trouble installing and using pyffmpeg in OSX. (Snow Leopard)

    I tried different versions. Only configuration that seems to install is Python2.6, Cython 0.13 and pyffmpeg 2.0. (Python, ffmpeg and cython is installed with MacPorts and pyffmpeg with setup.py)

    But with that when I try to open a file

    stream=pyffmpeg.VideoStream()
    stream.open(filepath)
    

    it gives this error:

    Traceback (most recent call last):
      File "test.py", line 24, in test
        stream.open(filepath)
      File "pyffmpeg.pyx", line 2467, in pyffmpeg.VideoStream.open (pyffmpeg.c:16607)
      File "pyffmpeg.pyx", line 1920, in pyffmpeg.FFMpegReader.open (pyffmpeg.c:11361)
    IOError: Unable to open file test.mp4 (url_fopen)
    Segmentation fault
    

    Any idea what's wrong?

  • How to do make a loading screen for ffmpeg using c# asp.net

    1er septembre 2011, par anthonypliu

    I have this function and where the Debug.WriteLine commands are is where I output the values. How would I get this data to print into a webpage so I can mimic a loading screen? I am calling this function externally through a *.ashx web service file.

    private string ConvertToFLV(string phyicalFilePath)
            {
                if (Path.GetExtension(phyicalFilePath).Equals(".flv")) return phyicalFilePath;
    
                var argument = string.Format(@"-i ""{0}"" -vcodec flv -f flv -r 29.97 -s 320x240 -aspect 4:3 -b 300k -g 160 -cmp dct  -subcmp dct  -mbd 2 -flags +aic+cbp+mv0+mv4 -trellis 1 -ac 1 -ar 22050 -ab 56k ""{1}""", phyicalFilePath, Path.ChangeExtension(phyicalFilePath, "flv"));
                libfaac -ar 48000 -ab 128k -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0 {1}", phyicalFilePath, Path.ChangeExtension(phyicalFilePath, "mp4"));
                File.Delete(Path.ChangeExtension(phyicalFilePath, "flv"));
    
                ProcessStartInfo process = new ProcessStartInfo(ffmpegPhysicalPath, argument);
                Process proc = new Process();
                float duration = 0.00F, current = 0.00F;
                proc.StartInfo = process;
                proc.EnableRaisingEvents = false;
                proc.StartInfo.UseShellExecute = false;
                proc.StartInfo.CreateNoWindow = true;
                proc.StartInfo.RedirectStandardOutput = true;
                proc.StartInfo.RedirectStandardError = true;
    
                proc.Start();
    
                StreamReader d = proc.StandardError;
    
                do
                {
                    string s = d.ReadLine();
                    if (s.Contains("Duration: "))
                    {
                        Debug.WriteLine("DURATION: " + s);
    
                    }
                    else
                    {
                        if (s.Contains("frame="))
                        {
                            Debug.WriteLine("FRAME: " + s);
    
                        }
                    }
                } while (!d.EndOfStream);
    
    
                proc.WaitForExit();
    
                return Path.ChangeExtension(phyicalFilePath, "flv");
    
  • how can I play ffmpeg codecs not supported by MedicaPlayer ? [closed]

    1er septembre 2011, par Jun

    Currently, I'm using MediaPlayer to play mp4, 3gp videos and it works as it should do but now I need to play ffmpeg codecs too.

    In this case, do I have to develop my video player or is there any players from 3rd parties?

    Thanks in advance.

  • Convert RTP/UDP Stream to HTTP with ffmpeg

    31 août 2011, par inversus

    As you may know, Android uses a strange implementation of RTP - It can only play low bitrate RTP streams. On the other hand, it can play Full HD HTTP stream flawlessly.

    I'm trying a workaround for this problem: As stated in the title, using ffmpeg to convert the RTP/UDP stream to HTTP.

    I've already compile ffmpeg for android, but I'm having difficulties configuring the ffserver.conf.

    1. Is it possible to achieve what I want with ffmpeg?
    2. I dont need any transcoding, will it use lots of the processor/memory?
    3. Can you help me with these configurations?

    I receive a udp/rtp multicast stream:

    • udp://@239.192.1.31:1234 or rtp://@239.192.1.31:1234 - TV channels

    I want to output to HTTP:

    Thank you in advance
    inversus