Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • FFmpeg and bash, Transcode multiple files to another drive with save path

    18 juillet 2016, par Виктор Гусев

    I have folder that contain files in many different path, for example: folder1/subfolder1/file.mov folder1/subfolder2/file.mov

    i need to convert and copy all files to another format, and save all paths after folder 1, for example: folder2/subfolder1/file.mp4 folder2/subfolder2/file.mp4

    I have this script, but it save transcoded files in original location.

    #!/bin/bash
    MOVIES=/Volumes/drive/
    find "$MOVIES" -name '*.MP4' -exec sh -c 'ffmpeg -i "$0" -map 0 -c copy "${0%%.MP4}.mov"' {} \; exit;
    

    Please help Thank you!

  • OpenCV not finding libavcodec installed in centos

    18 juillet 2016, par Ras

    ffmpeg is installed in /usr/local as shared libraries in Cent OS 6.8, but while compiling opencv 2.4.10, it couldn't find these libraries, configuration output is

    -- Looking for linux/videodev.h
    -- Looking for linux/videodev.h - found
    -- Looking for linux/videodev2.h
    -- Looking for linux/videodev2.h - found
    -- Looking for sys/videoio.h
    -- Looking for sys/videoio.h - not found
    -- checking for module 'libavcodec'
    --   package 'libavcodec' not found
    -- checking for module 'libavformat'
    --   package 'libavformat' not found
    -- checking for module 'libavutil'
    --   package 'libavutil' not found
    -- checking for module 'libswscale'
    --   package 'libswscale' not found
    -- Looking for libavformat/avformat.h
    -- Looking for libavformat/avformat.h - found
    -- Looking for ffmpeg/avformat.h
    -- Looking for ffmpeg/avformat.h - not found
    

    To run ffmpeg, I added /usr/local/lib to /etc/ld.so.conf file, should I need to add each library separately into directory /etc/ld.so.conf.d/ instead?

  • Can't hear the audio rtp streaming

    18 juillet 2016, par starter

    i am trying to get the streaming audio from my computer's mic to my tablet so i used the ffmpeg to create the stream :

    ffmpeg -f alsa -i hw:0  -acodec libmp3lame -f rtp rtp://224.1.2.4:7001/test.ffm
    

    The streaming is working perfectly between 2 computers in the same lanso i tried this code to get the audio streaming working on tablet but i hear nothing coming out from the tablet . note that 192.168.1.120 is my tablet's ip .

     try {
                        audioGroup = new AudioGroup();
                        audioGroup.setMode(AudioGroup.MODE_NORMAL);
                        audioStream = new AudioStream(InetAddress.getByAddress(new byte[] {(byte)192, (byte)168, (byte)1, (byte)120 }));
                        audioStream.setCodec(AudioCodec.PCMU);
                        audioStream.setMode(RtpStream.MODE_NORMAL);
                        audioStream.associate(InetAddress.getByAddress(new byte[] {(byte)224, (byte)1, (byte)2, (byte)4 }), 7001);
                       audioStream.join(audioGroup);
                       AudioManager Audio =  (AudioManager) getSystemService(Context.AUDIO_SERVICE);
                        Audio.setMode(AudioManager.MODE_IN_COMMUNICATION);
                    }
                    catch (SocketException e) { e.printStackTrace();}
                    catch (UnknownHostException e) { e.printStackTrace();}
                    catch (Exception ex) { ex.printStackTrace();}}
    

    Please i need to know what's the problem and how to fix it .

  • on-the-fly transcode and stream with VP9 and MPEG-DASH

    18 juillet 2016, par Calvin W.

    In the VOD system, I want to add a unique watermark to the video with FFmpeg, so I need a on-the-fly transcoding and streaming method.

    In this article, it describe how to create non-muxed and chunked WebM files for live streaming. And I tried replacing input with my MP4 file and it can generate chunks of video/audio files.

    Is there any way to generate a VOD-oriented MPD file, which contains video duration, rather than a live stream one? Thanks.

  • ffmpeg scale input image

    18 juillet 2016, par gabber

    I use ffmpeg for overlay one image to another.
    Now I'm using cmd:

     ffmpeg -i bg.jpeg -i banana.png -filter_complex overlay=5:H-h-5 -shortest out.png
    

    it looks like this : enter image description here

    I need to scaling top image without scaling background image, like this :

    enter image description here

    How I can do it?