Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (76)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (5297)

  • avformat/tee : Use ff_stream_encode_params_copy()

    4 juillet 2016, par Jan Sebechlebsky
    avformat/tee : Use ff_stream_encode_params_copy()
    

    Use ff_stream_encode_params_copy() to copy encoding-related
    fields (parameters) of stream.

    Reviewed-by : Nicolas George <george@nsup.org>
    Signed-off-by : Jan Sebechlebsky <sebechlebskyjan@gmail.com>
    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavformat/tee.c
  • Using ffprobe/ffmpeg to extract individual frames and types in playback sequence

    24 janvier 2018, par Hélder

    I am able to extract keyframes using ffmpeg. Something like this that I have been using :

    ffmpeg -i input.mp4 -vf "select='eq(pict_type\,I)" -vsync vfr -qscale:v 2 I-thumbnails-%02d.png -vf "select='eq(pict_type\,B)" -vsync vfr -qscale:v 2 B-thumbnails-%02d.png -vf "select='eq(pict_type\,P)" -vsync vfr -qscale:v 2 P-thumbnails-%02d.png

    Now the issue is, I would like these extracted frames to be in playback sequence, if possible, the way they are extracted should have a timestamp or any way to know that they start in a certain sequence, example, from start to end :

    IBBBIPPB......BI

    but in a way that I can sort the frames in the playback sequence.

    I want to use this to load in python to extract motion vectors but they should all follow certain playback sequence. Any help ?

  • Crop individual frames of a video and then concat for output

    27 juin 2024, par Ashish Padave

    I want to Crop individual frames of a video and then concat for output. This works with 2 ffmpeg commands. The first one extracts each frame and the second concats them.&#xA;I want to get it done without the intermediate frames.

    &#xA;

    Tried with the following

    &#xA;

    ffmpeg  -y -i input.mp4 -filter_complex "[0:v]split=890[v0][v1][v2][v3][v4][v5];[v0]select=&#x27;eq(n\,0)&#x27;,setpts=PTS-STARTPTS,crop=404:720:225:0[v0]; [v1]select=&#x27;eq(n\,1)&#x27;,setpts=PTS-STARTPTS,crop=404:720:225:0[v1]; [v2]select=&#x27;eq(n\,2)&#x27;,setpts=PTS-STARTPTS,crop=404:720:225:0[v2]; [v3]select=&#x27;eq(n\,3)&#x27;,setpts=PTS-STARTPTS,crop=404:720:225:0[v3]; [v4]select=&#x27;eq(n\,4)&#x27;,setpts=PTS-STARTPTS,crop=404:720:225:0[v4]; [v5]select=&#x27;eq(n\,5)&#x27;,setpts=PTS-STARTPTS,crop=404:720:225:0[v5];[v0][v1][v2][v3][v4][v5]concat=n=6:v=1:a=0[outv]" -map "[outv]" -map 0:a? -c:a copy -vsync 2 output.mp4&#xA;

    &#xA;

    The above is an abridged version of the command. The video I am working with has 890 frames and a frame rate of 25.

    &#xA;

    The output log with 890 frames is

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf59.5.100&#xA;  Duration: 00:00:35.61, start: 0.000000, bitrate: 3380 kb/s&#xA;    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 3246 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;Stream mapping:&#xA;  Stream #0:0 (h264) -> split&#xA;  concat -> Stream #0:0 (libx264)&#xA;  Stream #0:1 -> #0:1 (copy)&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0x55963ad4b700] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512&#xA;[libx264 @ 0x55963ad4b700] profile High, level 3.0&#xA;[libx264 @ 0x55963ad4b700] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;Output #0, mp4, to &#x27;output.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.29.100&#xA;    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 404x720, q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.54.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;frame=    3 fps=0.6 q=-1.0 Lsize=     586kB time=00:00:35.59 bitrate= 134.9kbits/s dup=0 drop=887 speed=6.73x&#xA;video:21kB audio:558kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.278277%&#xA;[libx264 @ 0x55963ad4b700] frame I:1     Avg QP:23.09  size: 17546&#xA;[libx264 @ 0x55963ad4b700] frame P:1     Avg QP:25.73  size:  2069&#xA;[libx264 @ 0x55963ad4b700] frame B:1     Avg QP:26.34  size:   845&#xA;[libx264 @ 0x55963ad4b700] consecutive B-frames: 33.3% 66.7%  0.0%  0.0%&#xA;[libx264 @ 0x55963ad4b700] mb I  I16..4:  8.4% 68.9% 22.7%&#xA;[libx264 @ 0x55963ad4b700] mb P  I16..4:  0.1%  0.6%  0.3%  P16..4: 28.5%  5.0%  3.9%  0.0%  0.0%    skip:61.6%&#xA;[libx264 @ 0x55963ad4b700] mb B  I16..4:  0.0%  0.1%  0.0%  B16..8: 29.6%  3.4%  0.3%  direct: 0.2%  skip:66.4%  L0:59.3% L1:35.6% BI: 5.1%&#xA;[libx264 @ 0x55963ad4b700] 8x8 transform intra:68.8% inter:73.3%&#xA;[libx264 @ 0x55963ad4b700] coded y,uvDC,uvAC intra: 73.0% 80.1% 36.4% inter: 3.9% 7.0% 0.7%&#xA;[libx264 @ 0x55963ad4b700] i16 v,h,dc,p:  2% 74%  6% 18%&#xA;[libx264 @ 0x55963ad4b700] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 36% 20%  8%  4%  2%  6%  4%  8%&#xA;[libx264 @ 0x55963ad4b700] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 41% 10%  4%  7%  4%  5%  3%  5%&#xA;[libx264 @ 0x55963ad4b700] i8c dc,h,v,p: 44% 37% 14%  6%&#xA;[libx264 @ 0x55963ad4b700] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 0x55963ad4b700] kb/s:1364.00&#xA;

    &#xA;

    So it is basically dropping 887 frames. The output file has the full audio but no video.&#xA;Is this even possible ?

    &#xA;