Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (2)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

Sur d’autres sites (2701)

  • FFmpeg remove background of video with no black outline

    26 février 2024, par Duc Pham The

    Im using this ffmpeg command to overlay a video on video(with remove black background)

    


    ffmpeg -i /home/ducpt/bunny.mp4 -i overlay_video.mp4 -filter_complex "[1:v]colorkey=0x000000:0.1:0.1[ckout];[0:v][ckout]overlay=enable='between(t,0, 4)':format=rgb[out]" -map '[out]' output.mp4


    


    I used filter_complex "colorkey 0x000000:0.1:0.1" to remove background of overlay video but result have a black outline.

    


    This is screenshot of video overlay original
Overlay Original

    


    And this is result

    


    enter image description here

    


    I tried to use unpremultiply=inplace=1 to remove black outline but not working

    


    ffmpeg -i /home/ducpt/bunny.mp4 -i overlay_video.mp4 -filter_complex "[1:v]colorkey=0x000000:0.1:0.1[ckout];[ckout]unpremultiply=inplace=1 [ckout2];[0:v][ckout2]overlay=enable='between(t,0, 4)':format=rgb[out]" -map '[out]' output.mp4


    


    Please help me remove black outline :(

    


    Sorry for my bad English !

    


  • FFMPEG : Overlaying one video on another one, and making black pixels transparent

    26 juillet 2016, par Michael A

    I’m trying to use FFMPEG to create a video with one video overlayed on top another.

    I have 2 MP4s. I need to make all BLACK pixels in the overlay video transparent so that I can see the main video underneath it.

    I found two ways to overlay one video on another :

    First, the following positions the overlay in the center, and therefore, hides that portion of the main video beneath it :

       ffmpeg -i 1.mp4 -vf "movie=2.mp4 [a]; [in][a] overlay=352:0 [b]" combined.mp4 -y

    And, this one, places the overlay video on the left, but it’s opacity is set to 50% so at least other one beneath it is visible :

    ffmpeg -i 1.mp4 -i 2.mp4 -filter_complex "[0:v]setpts=PTS-STARTPTS[top]; [1:v]setpts=PTS-STARTPTS, format=yuva420p,colorchannelmixer=aa=0.5[bottom]; [top][bottom]overlay=shortest=0" -acodec libvo_aacenc -vcodec libx264 out.mp4 -y

    My goal is simply to make all black pixels in the overlay (2.mp4) completely transparent. How can this be done.

  • ffmpeg : Infinite length output when overlaying subtitles onto black image

    18 juillet 2020, par rosuav

    I'm trying to do some analysis of image-based subtitles by outputting them as a sequence of PNGs to a pipe. My command line looks like this :

    


    ffmpeg -y -i $INPUTFILE -f lavfi -i color=c=black:s=1920x1080 -filter_complex "[1:v][0:s:5]overlay[v]" -shortest -map "[v]" -c:v png -f image2pipe - | pike subspng.pike


    


    In theory, -shortest should mean that the stream stops at the shortest input, which would be roughly seven minutes of input file. Instead, my script receives an infinite sequence of black frames after the last frame of subtitles, until I send FFMPEG a SIGINT. Placing -shortest before -filter_complex has the same effect.

    


    Is there a different way to force the filtering to stop at the end of the input file ?

    


    EDIT : Using the shortest=1 flag on the overlay filter also doesn't help, even in combination with -shortest.