Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (43)

Sur d’autres sites (8531)

  • How to add watermark with delay in FFmpeg

    28 décembre 2022, par Мохамед Русланович

    Am trying to put a gif file in all the edges of the video. So am using this command

    


    ffmpeg  -y -i film.mp4 -stream_loop -1 -i gif.gif -filter_complex \ 
"[1]colorchannelmixer=aa=0.8,scale=iw*1:-1[a];[0][a]overlay=
x='if(lt(mod(t\,16)\,8)\,W-w-W*10/200\,W*10/100)':
y='if(lt(mod(t+4\,16)\,8)\,H-h-H*5/200\,H*5/200)':
shortest=1" 
 -acodec copy output_task_3.mp4


    


    But now am required to put the gif file on each edge with delay of 10 minutes

    


    For exmaple :

    


    1- render gif at top left for only 16 seconds.
Then wait 10 minutes

    


    2- render gif at top right for 16 seconds.
Wait 10 minutes

    


    3- rendder gif at right buttom for 16 seconds.
Wait 10 minutes

    


    4- render gif at left buttom for 16 secnods.
Wait 10 minutes

    


    This scenario should be repete till the movie ends.

    


    How can i archive this ?

    


  • Make blurred background faster with ffmpeg

    26 septembre 2022, par Peter Czask

    I have a vertical videos which I'll like to make them horizontal 1920x1080 with blurred background.

    


    I do it with this command :

    


    ffmpeg -i input.mp4 -vf 'split[original][copy];[copy]scale=ih*16/9:-1,crop=h=iw*9/16,gblur=sigma=20[blurred];[blurred][original]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2'  output.mp4 


    


    which that code I'm satisfied with the result, except that it takes very very long time to produce it. Is there any way to speed it up ? I noticed that the blurred part on the background uses half of the overlay video (non blurred), I'll like to blurry just with the edge (or 10 pixels) of the non blurred video (if this makes the encoding faster)...

    


  • Real-Time Buffer Too Full (FFMPEG)

    25 janvier 2018, par Nimble

    So I’ve been having this issue with ffmpeg, it has been a journey getting the hardware and command to actually do what I want, but I still have one problem.

    Sometimes when I’m recording I just start dropping frames like crazy, this can be after an hour of recording or even ten hours in... Everything will be working fine and then suddenly I’ll start dropping frames due to "real-time buffer too full or near too full". This happens regardless of how low I put the bitrate, and the buffer size is high as it will allow, eventually I’ll just start dropping frames. Almost seems like it could be like a power saving feature kicking in but it’s too inconsistent it seems. Like I said sometimes I can go 10 hours without having this issue.

    Any ideas ?

    Here is my block of code :

    ffmpeg -guess_layout_max 0 -y -f dshow -video_size 3440x1440 -rtbufsize 2147.48M -pixel_format nv12 -framerate 200 ^
    -i video="Video (00 Pro Capture HDMI 4K+)":audio="SPDIF/ADAT (1+2) (RME Fireface UC)" -map 0:0,0:1 -map 0:1 ^
    -preset: llhp -codec:v h264_nvenc -pix_fmt nv12 -b:v 250M -maxrate:v 250M -minrate:v 250M -bufsize:v 250M -b:a 320k ^
    -ac 2 -r 100 -async 1 -vsync 1 -segment_time 600 -segment_wrap 9 -f segment C:\Users\djcim\Videos\PC\PC%02d.mp4 ^
    -guess_layout_max 0 -f dshow -rtbufsize 2000M -i audio="Analog (3+4) (RME Fireface UC)" -map 1:0 -b:a 320k -ac 2 ^
    -af "adelay=200|200" -segment_time 600 -segment_wrap 9 -f segment C:\Users\djcim\Videos\PC\Voices\Theirs\TPC%02d.wav ^
    -guess_layout_max 0 -f dshow -rtbufsize 2000M -i audio="Analog (5+6) (RME Fireface UC)" -map 2:0 -b:a 320k -ac 2 ^
    -af "adelay=825|825" -segment_time 600 -segment_wrap 9 -f segment C:\Users\djcim\Videos\PC\Voices\Mine\MPC%02d.wav

    Here is the error, it repeated around 300 times before locking up ffmpeg forcing my to quit before starting the recording again :

    [dshow @ 0000019a596bdcc0] real-time buffer [Video (00 Pro Capture HDMI 4K+)] [video input] too full or near too full (62% of size: 2147480000 [rtbufsize parameter])! frame dropped!