Recherche avancée

Médias (91)

Autres articles (48)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (8991)

  • avformat/f_select : add support for more pixel formats for scene change score calculations

    21 juillet 2019, par Limin Wang
    avformat/f_select : add support for more pixel formats for scene change score calculations
    

    This avoids automatic conversions to rgb if scene change score is used in the expression.

    Below is the tested results for the new added pixel format without autoscale to rgb24 :
    1. AV_PIX_FMT_YUVJ420P
    time ./ffprobe -of compact=p=0 -show_entries frame=pkt_pts:frame_tags -bitexact -f lavfi \
    "sws_flags=+accurate_rnd+bitexact ;movie=../fate-suite/svq3/Vertical400kbit.sorenson3.mov,select=gt(scene\,.25)"

    master :
    pkt_pts=1620|tag:lavfi.scene_score=1.000000
    pkt_pts=4140|tag:lavfi.scene_score=0.875036
    pkt_pts=5800|tag:lavfi.scene_score=1.000000
    pkt_pts=6720|tag:lavfi.scene_score=0.461625
    pkt_pts=8160|tag:lavfi.scene_score=1.000000
    pkt_pts=9760|tag:lavfi.scene_score=1.000000
    pkt_pts=14080|tag:lavfi.scene_score=0.838916
    pkt_pts=15700|tag:lavfi.scene_score=1.000000
    pkt_pts=18500|tag:lavfi.scene_score=0.474948
    pkt_pts=20040|tag:lavfi.scene_score=0.379700
    pkt_pts=21760|tag:lavfi.scene_score=1.000000
    ./ffprobe -of compact=p=0 -show_entries frame=pkt_pts:frame_tags -bitexact -f 0.71s user 0.01s system 99% cpu 0.721 total

    patch applied :
    pkt_pts=1620|tag:lavfi.scene_score=1.000000
    pkt_pts=4140|tag:lavfi.scene_score=0.668643
    pkt_pts=5800|tag:lavfi.scene_score=0.996721
    pkt_pts=6720|tag:lavfi.scene_score=0.357390
    pkt_pts=8160|tag:lavfi.scene_score=0.886268
    pkt_pts=9760|tag:lavfi.scene_score=0.926219
    pkt_pts=14080|tag:lavfi.scene_score=0.650033
    pkt_pts=15700|tag:lavfi.scene_score=1.000000
    pkt_pts=18500|tag:lavfi.scene_score=0.316402
    pkt_pts=20040|tag:lavfi.scene_score=0.269509
    pkt_pts=21760|tag:lavfi.scene_score=1.000000
    ./ffprobe -of compact=p=0 -show_entries frame=pkt_pts:frame_tags -bitexact -f 0.19s user 0.01s system 81% cpu 0.240 total

    2. AV_PIX_FMT_YUV420P
    time ./ffprobe -of compact=p=0 -show_entries frame=pkt_pts:frame_tags -bitexact -f lavfi \
    "sws_flags=+accurate_rnd+bitexact ;movie=../Passengers_Breakfast_1080-sdr.mkv,select=gt(scene\,.2)"
    master :
    pkt_pts=3587|tag:lavfi.scene_score=0.462364
    pkt_pts=4838|tag:lavfi.scene_score=0.419519
    pkt_pts=6548|tag:lavfi.scene_score=0.397027
    pkt_pts=9968|tag:lavfi.scene_score=0.419245
    pkt_pts=12471|tag:lavfi.scene_score=0.413084
    pkt_pts=16225|tag:lavfi.scene_score=0.506370
    pkt_pts=19645|tag:lavfi.scene_score=0.507538
    pkt_pts=22314|tag:lavfi.scene_score=0.504319
    pkt_pts=24817|tag:lavfi.scene_score=0.417544
    pkt_pts=25651|tag:lavfi.scene_score=0.413916
    pkt_pts=26652|tag:lavfi.scene_score=0.487707
    18.58s user 0.07s system 99% cpu 18.663 total

    patch applied :
    pkt_pts=3587|tag:lavfi.scene_score=0.272173
    pkt_pts=4838|tag:lavfi.scene_score=0.247841
    pkt_pts=6548|tag:lavfi.scene_score=0.233134
    pkt_pts=9968|tag:lavfi.scene_score=0.247253
    pkt_pts=12471|tag:lavfi.scene_score=0.244129
    pkt_pts=16225|tag:lavfi.scene_score=0.302531
    pkt_pts=19645|tag:lavfi.scene_score=0.303560
    pkt_pts=22314|tag:lavfi.scene_score=0.301861
    pkt_pts=24817|tag:lavfi.scene_score=0.249331
    pkt_pts=25651|tag:lavfi.scene_score=0.247096
    pkt_pts=26652|tag:lavfi.scene_score=0.287728
    10.90s user 0.06s system 99% cpu 10.967 total

    3. AV_PIX_FMT_YUV422P

    time ./ffprobe -of compact=p=0 -show_entries frame=pkt_pts:frame_tags -bitexact -f lavfi \
    "sws_flags=+accurate_rnd+bitexact ;movie=../Passengers_Breakfast_1080-sdr.mkv,format=yuv422p,select=gt(scene\,.2)"
    master :

    patched applied :
    pkt_pts=3587|tag:lavfi.scene_score=0.224017
    pkt_pts=4838|tag:lavfi.scene_score=0.204225
    pkt_pts=9968|tag:lavfi.scene_score=0.204636
    pkt_pts=12471|tag:lavfi.scene_score=0.202772
    pkt_pts=16225|tag:lavfi.scene_score=0.248765
    pkt_pts=19645|tag:lavfi.scene_score=0.250144
    pkt_pts=22314|tag:lavfi.scene_score=0.248802
    pkt_pts=24817|tag:lavfi.scene_score=0.208362
    pkt_pts=25651|tag:lavfi.scene_score=0.205777
    pkt_pts=26652|tag:lavfi.scene_score=0.230742

    4. AV_PIX_FMT_YUV420P10
    time ./ffprobe -of compact=p=0 -show_entries frame=pkt_pts:frame_tags -bitexact -f lavfi \
    "sws_flags=+accurate_rnd+bitexact ;movie=../Passengers_Breakfast_4k.mkv,select=gt(scene\,.2)"

    master :
    pkt_pts=3587|tag:lavfi.scene_score=0.269890
    pkt_pts=4838|tag:lavfi.scene_score=0.248957
    pkt_pts=6548|tag:lavfi.scene_score=0.234619
    pkt_pts=9969|tag:lavfi.scene_score=0.224912
    pkt_pts=12471|tag:lavfi.scene_score=0.225158
    pkt_pts=16225|tag:lavfi.scene_score=0.289809
    pkt_pts=19645|tag:lavfi.scene_score=0.285013
    pkt_pts=22314|tag:lavfi.scene_score=0.280295
    pkt_pts=24817|tag:lavfi.scene_score=0.206486
    pkt_pts=25651|tag:lavfi.scene_score=0.208556
    pkt_pts=26652|tag:lavfi.scene_score=0.249577
    ./ffprobe -of compact=p=0 -show_entries frame=pkt_pts:frame_tags -bitexact -f 76.03s user 0.22s system 99% cpu 1:16.27 total

    patch applied
    pkt_pts=3587|tag:lavfi.scene_score=0.269890
    pkt_pts=4838|tag:lavfi.scene_score=0.248957
    pkt_pts=6548|tag:lavfi.scene_score=0.234619
    pkt_pts=9969|tag:lavfi.scene_score=0.224912
    pkt_pts=12471|tag:lavfi.scene_score=0.225158
    pkt_pts=16225|tag:lavfi.scene_score=0.289809
    pkt_pts=19645|tag:lavfi.scene_score=0.285013
    pkt_pts=22314|tag:lavfi.scene_score=0.280295
    pkt_pts=24817|tag:lavfi.scene_score=0.206486
    pkt_pts=25651|tag:lavfi.scene_score=0.208556
    pkt_pts=26652|tag:lavfi.scene_score=0.249577
    ./ffprobe -of compact=p=0 -show_entries frame=pkt_pts:frame_tags -bitexact -f 50.27s user 0.20s system 99% cpu 50.476 total

    5. AV_PIX_FMT_RGBA, AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA, AV_PIX_FMT_GRAY8
    are tested by format= with the fate sample : Vertical400kbit.sorenson3.mov like below :
    time ./ffprobe -of compact=p=0 -show_entries frame=pkt_pts:frame_tags -bitexact -f lavfi \
    "sws_flags=+accurate_rnd+bitexact ;movie=../fate-suite/svq3/Vertical400kbit.sorenson3.mov,format=rgba,select=gt(scene\,.25)"

    patch applied :
    pkt_pts=1620|tag:lavfi.scene_score=1.000000
    pkt_pts=4140|tag:lavfi.scene_score=0.656277
    pkt_pts=5800|tag:lavfi.scene_score=1.000000
    pkt_pts=6720|tag:lavfi.scene_score=0.346218
    pkt_pts=8160|tag:lavfi.scene_score=0.987686
    pkt_pts=9760|tag:lavfi.scene_score=1.000000
    pkt_pts=14080|tag:lavfi.scene_score=0.629187
    pkt_pts=15700|tag:lavfi.scene_score=1.000000
    pkt_pts=18500|tag:lavfi.scene_score=0.356211
    pkt_pts=20040|tag:lavfi.scene_score=0.284775
    pkt_pts=21760|tag:lavfi.scene_score=1.000000

    6. AV_PIX_FMT_YUVJ422P
    time ./ffprobe -of compact=p=0 -show_entries frame=pkt_pts:frame_tags -bitexact -f lavfi \
    "sws_flags=+accurate_rnd+bitexact ;movie=../fate-suite/svq3/Vertical400kbit.sorenson3.mov,format=yuvj422p,select=gt(scene\,.25)"

    patch applied :
    pkt_pts=1620|tag:lavfi.scene_score=0.838281
    pkt_pts=4140|tag:lavfi.scene_score=0.541382
    pkt_pts=5800|tag:lavfi.scene_score=0.780588
    pkt_pts=6720|tag:lavfi.scene_score=0.298274
    pkt_pts=8160|tag:lavfi.scene_score=0.699106
    pkt_pts=9760|tag:lavfi.scene_score=0.730136
    pkt_pts=14080|tag:lavfi.scene_score=0.537742
    pkt_pts=15700|tag:lavfi.scene_score=0.811946
    pkt_pts=18500|tag:lavfi.scene_score=0.263382
    pkt_pts=21760|tag:lavfi.scene_score=0.880773

    Reviewed-by : Marton Balint <cus@passwd.hu>
    Signed-off-by : Limin Wang <lance.lmwang@gmail.com>

    • [DH] libavfilter/f_select.c
    • [DH] tests/ref/fate/filter-metadata-scenedetect
  • FFMPEG : Using Zoompan drawtext jiggle issue

    18 juillet 2019, par axita.savani

    I have applied the Zoompan effect (only Zoom Out) and Fad In and Fad Out effect to drawtext using FFmpeg but its output is text is Zoom out with jiggle (shaking right and left).
    How i solve this issue ?
    Here is Command :

    ffmpeg -i D:/video/square_630_630_42.mp4 -filter_complex "color=black:320x320,split[text][alpha];[text][alpha]alphamerge,setsar=1,drawtext=textfile="D\\:/video/temp.txt":fontsize=20:fontfile=Consolas.ttf:fontcolor=ff00ff:box=1:boxborderw=1:boxcolor=00000000:shadowcolor=000000:shadowx=1:shadowy=1.5:alpha='if(lt(t,4),0,if(lt(t,7),(t-4)/1,if(lte(t,(10-3)),1,if(lt(t,10),(10-t)/1,0))))':x=(w-text_w)/2:y=(h-text_h)/2,zoompan=z='if(gt(in,(3*25)),if(lt(in,((3+5)*25)),1.5-((in-(3*25))*0.004)))':s=420x420:d=0:x=iw/2-(iw/zoom/2):y=ih/2-(ih/zoom/2):fps=25[txta];[0][txta] overlay=x=(main_w-overlay_w)/2:shortest=1:y=(main_h-overlay_h)/2+210[v1];[v1]format=yuv420p" -c:v libx264 -preset ultrafast finale_Zoom_Text.mp4

    Thank you in advance.

  • Make gif (ffmpeg) using MOST RECENT 7 jpg files in a directory

    16 juillet 2019, par Brad Sullivan

    I have a bash script which runs on a cron, to take screenshots of my cctv 1x per day to do an annual timelapse. It all works, and I get a YTD sofar.gif of the very first screenshot to the very last screenshot — which is now quite long. I wanted to add a line to make last7days.gif so I could get a shorter weekly gif etc.

    I have searched this site and the web and can list the newest 7 files in terminal using : ls -1t | head -n 9 | tail -n 7 (this removes the .gif and .mov which are modified last) but I do not know how to make that vertical list of 7 filenames into a variable to make a gif using those file names

    # runs from a cronjob. saves live screenshot from CCTV to jpg, then updates the year-to-date movie

    if [ $# -ne 1 ]
    then
     echo "Usage: `basename $0` OUTDIR"
     exit 65
    fi

    doexit=0

    start=$(date +%s)
    end=$(date +%s)

    outdir=${1%/}
    mkdir $outdir
    echo "Capturing image..."

    counter=$(date +"%Y_%m_%d_%H-%M-%S");
    file=$outdir/$counter.jpg

    if response=$(curl --silent --write-out %{http_code} --max-time 600 'URL REDACTED' -o $file) ; then
       echo "Captured &amp; saved $file!"
    else
       echo "Failed to capture $file"
    fi

    ffmpeg -hide_banner -loglevel panic -pattern_type glob -i $outdir/'*.jpg' $outdir/sofar.mov -y
    ffmpeg -hide_banner -loglevel panic -pattern_type glob -i $outdir/'*.jpg' $outdir/sofar.gif -y

    exit 1

    Currently, the last lines create a .gif using every image file, this works only because they are saved with the date in the filename.

    I want to add a line to create a .gif using just the most 7 recent images