Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (50)

Sur d’autres sites (8992)

  • ffmpeg masks more than one overlay, how can I mask only one ?

    6 juin 2020, par Jonathan Winger-Lang

    I am trying to use an alpha mask to mask the corners of a video, it works. But then I try to add another image on top of them and it is also masked.

    



    How can I mask only the one video, not subsequent layers ?

    



    alpha

    



    Here you can see that the phone frame is also masked, since it does not goo beyond the (x-axis) edges of the phone.

    



    My script :

    



    ffmpeg -i input.mp4 \
   -loop 1 -i mask.png \
   -i background.png \
   -loop 1 -i frame2.png \
-filter_complex \
   "[0][1]             alphamerge                                         [masked_video];    \
    [masked_video][3]  overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2  [phone];           \
    [phone]            scale=(iw*0.5):(ih*0.5)                            [scaled_phone];    \
    [2][scaled_phone]  overlay=100:100" \
-shortest out.mp4


    



    Thank you

    


  • what is audio PCM's frame sync word to identify the beginning position

    12 décembre 2019, par chang jc

    As title ; for some compressed format such as EAC3, AC3 frame starts as a sync word.

    So what’s PCM (raw audio)’s sync word ? How to identify the beginning of a PCM frame ?

    I met a problem where audio is concatenated by several audio segments and each of them has different frame size. I need to identify the start position.

    Thanks in advance.

  • avformat/dtsdec : Extend DTS core sync word

    28 avril 2015, par foo86
    avformat/dtsdec : Extend DTS core sync word
    

    Check extended sync word for 16-bit LE and BE core streams to reduce
    probability of alias sync detection. Previously sync word extension was
    checked only for 14-bit streams.

    This follows up the similar change in avcodec/dca_parser.

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/dtsdec.c