Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • FFmpeg GIF dump & video slideshow errors

    27 avril 2017, par Techie Android

    I'm running Windows 10 and have the latest static 64bit nightly FFmpeg version. Here are my scripts, I've been trying to get them fixed but I can't seem to get either to work.

    I have a GIF file named gif.gif that I need the frames dumped out of and named in this order: img000.png img001.png img002.png and so forth.

    ffmpeg -i "gif.gif" "%img%%03d.png"
    

    It's error message is:

    [NULL @ 052857c0] Unable to find a suitable output format for 'C:\Users\username' C:\Users\username: Invalid argument

    This is where I need the individual frames to be encoded into a video file and get it to duplicate the frames necessary to make it a slideshow. It should copy each frame 150 times so that they will last for 5s each at 30fps. The filename is video maker.bat

    ffmpeg -i %img%%03d.png -framerate 1/5 -c:v libx264 -r 30 -pix_fmt yuv420p "output.mp4"
    

    It's error message is:

    imgC:\myfilesdirectoryhere\video maker.bat3d.png: Protocol not found

  • How to http stream video from a frequently updated image

    27 avril 2017, par alez

    How can I obtain an HTTP video stream from a single image file that is frequently updated (every 50ms)?

    The file is on a Windows 7 machine, I can use C# but I can also send a potential stream to a linux machine.

    I would try whith vlc and the fake module, but it seems not more supported. I've tried also with a pipe from ffmpeg (also over an udp localhost stream) but it doesn't work.

  • Add Filters to Video like Instagram or Snapchat via FFmpeg

    27 avril 2017, par Karandeep Atwal

    I am using FFmpeg in my android app. I have implemented following filters/effects successfully on video-

    1. Invert Color
    2. Black and white
    3. Sepia
    4. Vignette
    5. Gamma effect

    I followed FFmpeg Video Filter docs.

    There are similar questions asked but without any proper answer.

    I want to apply some Good Filters like on Instagram or Snapchat via FFmpeg . Below are few example filters taken from this link.

    Can these filters be achieved via ffmpeg ?

    Toaster Filter

    Amaro Filter

  • FFmpeg - calculate the remaining conversion time

    27 avril 2017, par MPM Уеб Дизайн

    I use ffmpeg to convert a clip video.mp4 to video.mp3 for example. Is there a way to calculate the remaining conversion time ?

  • Stream opus audio rtp to android device

    27 avril 2017, par Yuriy Aizenberg

    I want to stream audio (opus codec) with ffmpeg directly to android device.

    On PC i start stream:

      ./ffmpeg -re -stream_loop -1 -i akgld-c8mxm.opus -acodec libopus -ac 1 -ab 96k -vn -f rtp rtp://192.168.0.100:6000
    

    Where 192.168.0.100 - local wifi address of my phone.

    On Android device i tried to play stream:

     public void tryPlayStream() {
            String ip = Utils.wifiIpAddress(this);
            StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitNetwork().build();
            StrictMode.setThreadPolicy(policy);
            AudioManager audio = (AudioManager) getSystemService(AUDIO_SERVICE);
            audio.setMode(AudioManager.MODE_IN_COMMUNICATION);
            audioGroup = new AudioGroup();
            audioGroup.setMode(AudioGroup.MODE_ECHO_SUPPRESSION);
            InetAddress inetAddress;
            try {
                inetAddress = InetAddress.getByName(ip);
                audioStream = new AudioStream(inetAddress);
                audioStream.setCodec(AudioCodec.PCMA);
                audioStream.setMode(RtpStream.MODE_RECEIVE_ONLY);
                InetAddress inetAddressRemote = InetAddress.getByName(ip);
                audioStream.associate(inetAddressRemote, 6000);
                audioStream.join(audioGroup);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    

    In logcat i see next lines:

    E/AudioRecord: AudioFlinger could not create record track, status: -1
     E/AudioGroup: cannot initialize audio device
    

    What im doing wrong? Thanks for any help