Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (42)

Sur d’autres sites (7783)

  • How can I synchronize audio and video in real-time transcoding using ffmpeg API ?

    25 mai 2023, par qwer

    I was using ffmpeg api for realtime tanscoding, but somethimes when the system resources (memory) become limited , audio and video is out of syn, as i was tanscoding and pushing rtmp stream so it involves both decoding and and encoding , do i need some sync method to solve the problem, on whatside should i do the synchronizton, during the demux decode time or the encode push stream time,thanks in advance.

    


    i was experencing the problem,and i don't konw how to solve the problem , i was trying to sync the pts in the demux period , read the avpacket and sync the time based on current system time,but no luck.

    


  • ffmpeg command to insert the Static frames in a video, if the video has the gaps inside of it ?

    1er septembre 2020, par geo-freak

    I have a 10 min video file(.ts file), it has the gaps(empty video) from 4th min to 7th min. I want to insert the static frames from start of the gaps to end of the gap.

    


    I have a command to create the static video with null(silent) audio.

    


    ffmpeg -loop 1 -i img002.jpg -f lavfi -i anullsrc=channel_layout=5.1:sample_rate=48000 -c:v libx264 -t 10 -pix_fmt yuv420p -vf scale=480:320 -y output.ts


    


    I want to add this static video with silent audio in a a recording from specific period.

    


    How can I achieve it ?

    


    Thanks in advance.

    


  • FFMPEG delay mutliple overlay videos (with different delays)

    28 avril 2019, par Bamba675

    I’m trying to overlay a video (for example a report) with different other videos or images, like hints to the facebook page or a hint to the website. These other videos or images are smaller than the original and sometimes transparent (rgba).

    I already tried to overlay multiple videos, which works pretty well :

    ffmpeg -i 30fps_fhd.mp4 -i sample.mp4 -i timer.webm -i logo.jpg -filter_complex "overlay = x=100:y=1000, overlay = x=30:y=66:eof_action=pass, overlay = x=0:y=0" -acodec copy -t 70 out.mp4

    But now, I want to start some videos or images not at the beginning of the video, instead after a period of time.
    I found flags like ’itsoffset’ or ’setpts’, but I dont know how to apply them on this ’multiple video / image overlay command’.

    LG Bamba