Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • How to make ffmpeg automatically fill frames ?

    8 mai 2018, par Chen Yang

    I want to use ffmpeg to convert a sequence of images to a video, the images are got in realtime, the interval of getting image is changeable, maybe i get next image in 1 second or even 1 millisecond. I want the target video in a special fps(like 100), now my implement is creating a loop, which fade ffmpeg last image then sleep(like 10ms).

    Do you guys know some options could let ffmpeg fill frames automatically?

    If that option do exist, i wonder is that possible to make video real fps is half of it is claimed.

    My ffmpeg command likes follow:

    ffmpeg -f image2pipe -r 100 -i pipe:0 -f flv -r 100 pipe:1
    
  • Command line tool to get mediainfo on Android [on hold]

    8 mai 2018, par darth_coder

    I am looking for a command line tool to get media information on Android. I have tried compiling ffmpeg for Android but have not got much success to build the same from source for Android. Also the output of ffmpeg is not as simple and lucid as tool like mediainfo which is present on Ubuntu.

    It would be helpful if someone could suggest a simple command line tool to get relevant media information on Android.

  • FFmpeg On iOS can’t find delogo

    8 mai 2018, par Y.Y.Doe

    I integrated FFmpeg on iOS,and use “delogo” to clean watermark,but it does not work. And it logs:

    No such filter:delogo

    I don’t know why,and I need help

    it's my iOS code to use FFmpeg

    dispatch_async(dispatch_get_global_queue(0, 0), ^{
        char *outPic = (char *)[DocumentPath(@"delogo.mp4") UTF8String];
        char *movie = (char *)[BundlePath(@"logo.mp4") UTF8String];
        char *a[] = {
            "ffmpeg",
            "-i",
            movie,
            "-vf",
            "delogo=x=10:y=10:w=250:h=120:show=1",
            outPic
        };
        ffmpeg_main(sizeof(a)/sizeof(*a),a);
    });
    

    my total log

    ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers built with Apple LLVM version 7.3.0 (clang-703.0.31) configuration: --target-os=darwin --arch=arm64 --cc='xcrun -sdk iphoneos clang' --enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic --extra-cflags='-arch arm64 -mios-version-min=6.0 -fembed-bitcode' --extra-ldflags='-arch arm64 -mios-version-min=6.0 -fembed-bitcode' --prefix=/Users/lxh/Desktop/FFmpeg-iOS-build-script-master/thin/arm64 WARNING: library configuration mismatch avutil configuration: --target-os=darwin --arch=x86_64 --cc='xcrun -sdk iphonesimulator clang' --enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic --extra-cflags='-arch x86_64 -mios-simulator-version-min=6.0' --extra-ldflags='-arch x86_64 -mios-simulator-version-min=6.0' --prefix=/Users/lxh/Desktop/FFmpeg-iOS-build-script-master/thin/x86_64 avcodec configuration: --target-os=darwin --arch=x86_64 --cc='xcrun -sdk iphonesimulator clang' --enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic --extra-cflags='-arch x86_64 -mios-simulator-version-min=6.0' --extra-ldflags='-arch x86_64 -mios-simulator-version-min=6.0' --prefix=/Users/lxh/Desktop/FFmpeg-iOS-build-script-master/thin/x86_64 avformat configuration: --target-os=darwin --arch=x86_64 --cc='xcrun -sdk iphonesimulator clang' --enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic --extra-cflags='-arch x86_64 -mios-simulator-version-min=6.0' --extra-ldflags='-arch x86_64 -mios-simulator-version-min=6.0' --prefix=/Users/lxh/Desktop/FFmpeg-iOS-build-script-master/thin/x86_64 avdevice configuration: --target-os=darwin --arch=x86_64 --cc='xcrun -sdk iphonesimulator clang' --enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic --extra-cflags='-arch x86_64 -mios-simulator-version-min=6.0' --extra-ldflags='-arch x86_64 -mios-simulator-version-min=6.0' --prefix=/Users/lxh/Desktop/FFmpeg-iOS-build-script-master/thin/x86_64 avfilter configuration: --target-os=darwin --arch=x86_64 --cc='xcrun -sdk iphonesimulator clang' --enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic --extra-cflags='-arch x86_64 -mios-simulator-version-min=6.0' --extra-ldflags='-arch x86_64 -mios-simulator-version-min=6.0' --prefix=/Users/lxh/Desktop/FFmpeg-iOS-build-script-master/thin/x86_64 swscale configuration: --target-os=darwin --arch=x86_64 --cc='xcrun -sdk iphonesimulator clang' --enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic --extra-cflags='-arch x86_64 -mios-simulator-version-min=6.0' --extra-ldflags='-arch x86_64 -mios-simulator-version-min=6.0' --prefix=/Users/lxh/Desktop/FFmpeg-iOS-build-script-master/thin/x86_64 swresample configuration: --target-os=darwin --arch=x86_64 --cc='xcrun -sdk iphonesimulator clang' --enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic --extra-cflags='-arch x86_64 -mios-simulator-version-min=6.0' --extra-ldflags='-arch x86_64 -mios-simulator-version-min=6.0' --prefix=/Users/lxh/Desktop/FFmpeg-iOS-build-script-master/thin/x86_64 libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/daiyangyang/Library/Developer/CoreSimulator/Devices/02A8BC3F-5E46-453A-A3B4-A42563C518EA/data/Containers/Bundle/Application/4E0BB47F-5D3E-42A3-BC76-2D7D03657870/去水印.app/logo.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf57.25.100 Duration: 00:02:31.37, start: 0.023220, bitrate: 472 kb/s Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x352 [SAR 1:1 DAR 20:11], 338 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default) Metadata: handler_name : SoundHandler [AVFilterGraph @ 0x7fbabb519e00] No such filter: 'delogo' Error opening filters!

    I integrated FFmpeg by "FFmpeg-iOS-build-script"(https://github.com/kewlbear/FFmpeg-iOS-build-script)

  • How to have low buffer when capturing sound with FFmpeg

    8 mai 2018, par gagz

    I'm capturing sound from the jack input of a computer and sending that to a Icecast server, using FFmpeg.

    See the line :

    /usr/bin/ffmpeg -f alsa -i plughw:1 -c:a libmp3lame -b:a 96k -ar 32000 -content_type audio/mpeg -f mp3 icecast://source:password@myserver.net:8000/live
    

    On the Icecast side, I use default settings, and play the stream with mplayer.

    But the bandwidth on both sides is quite low (3G connections), thus after a while, the delay goes up to a few minutes, so I have to restart ffmpeg.

    I'm quiet sure now that ffmpeg keeps collecting data when frames are dropped by the network, but it keeps them until the connection comes back and then sends them to icecast.

    How can I tell FFmpeg to stay synchronised with the sound card? Or have a maximum of 5 seconds delay ?

    Thank you!

  • Merging 2 audios files with a video in ffmpeg

    7 mai 2018, par Mousa Alfhaily

    I'm trying to merge 2 audio file .WAV with 1 video file .MP4 to produce the output in .MP4 extension using CMD in Windows.

    This is what i have tried :

    ffmpeg -i V.MP4 -i A1.WAV -i A2.WAV -map 0:v -map 1:a -map 2:a -c:v copy -vcodec copy Output.MP4
    

    The CMD output for that is :

    enter image description here

    This command will output the Output.MP4 file but it will merge the video with only 1 of the audio files which is A2.WAV and ignores the other audio file A1.WAV

    Now i want to merge without re-encoding without any offset, just merge the 3 files like they are in a file .MP4 file.

    I checked some topics here in stackoverflow like this and this but they didn't help.