Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Skipping Frames while adding overlay in FFMPEG

    17 juin 2017, par Muhammad Umar

    I am using following command to add watermark over a video. If file size is 5mb its taking 10-15 seconds.

    String[] command = {"-y", "-i", videoFileName, "-i", tempFile.getAbsolutePath(), "-filter_complex",
                        "[0:v]overlay=0:0", editedFile.getAbsolutePath(),
                        "-preset" , "ultrafast"
                };
    

    Is there any way i can skip the "overlay frames" not skip the video frames and make process even more faster?

  • ffmpeg - add background music for every sec to a audio file [on hold]

    17 juin 2017, par priya

    My requirement is I have two audio files that as the background music file of 1sec duration has to be added to a audio file of 1min duartion for every 10sec of this file the background music audio is to be played.I am using ffmpeg python package and am newbie.Please help me

  • How to reduce the bitrate loss from video processing via FFMPEG ?

    17 juin 2017, par Neo Herakles

    so I use this code to add an intro, outro and watermark to a video but the final result has a loss in bitrate from 2108 bps to 705 bps, how can I keep the bitrate in the 2000 bps range?

    for %%I in ("C:\Users\Administrator\Desktop\work\*.mp4") do ffmpeg.exe
    -y -i "%%I" -i white.png -i out1.ts -filter_complex "[1:v][0:v]scale2ref=iw/6:ih/18[logo][0v];[0v][logo]overlay=W-w-3:H-h-1,scale=hd720,setsar=1[vl];[2:v][2:a][vl][0:a][2:v][2:a]concat=n=3:v=1:a=1[v][a]"
    -map "[v]" -map "[a]" -r 20 -c:v libx264 -ar 48000 "C:\Users\Administrator\Desktop\Complete-videos\%%~nI.mp4"
    
    pause
    

    Thank you for your help.

  • Best way of playing mkv video that is being recorded with ffmpeg in web browser

    17 juin 2017, par martin49

    I'm looking for a way to play a video that is being recorded with ffmpeg in a web browser preferably using HTML5 video tag.

    I have this code in my page, the URL is pointing to a video file (example.mkv) that is being recorded by ffmpeg.

    
    

    Google Chrome/Chromium can play mkv video in HTML5, but only plays the part that was loaded when page was loaded. Is it possible to continue to load the video while it is being recorded?

  • ffmpeg Unrecognized option 'hls_enc'

    16 juin 2017, par riubin

    Does anyone have a ffmpeg problem that Unrecognized option 'hls_enc'?

    when I use ffmpeg to convert videos to hls with option 'hls_enc',followed the document: https://www.ffmpeg.org/ffmpeg-formats.html#Options-5 but throw error:Unrecognized option 'hls_enc'

    Is it missing any configure options?

    configuration: --enable-gpl --enable-nonfree --yasmexe=/data/ffmpeg.src/_release/bin/yasm --prefix=/data/ffmpeg.src/_release --cc= --enable-static --disable-shared --enable-debug --extra-cflags='-I/data/ffmpeg.src/_release/include' --extra-ldflags='-L/data/ffmpeg.src/_release/lib -lm -ldl' --enable-postproc --enable-bzlib --enable-zlib --enable-parsers --enable-pthreads --enable-libx264 --enable-libmp3lame --enable-libfdk_aac --enable-libspeex --extra-libs=-lpthread --enable-encoders --enable-decoders --enable-avfilter --enable-muxers --enable-demuxers