Recherche avancée

Médias (91)

Autres articles (56)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (5513)

  • Bash : displaying selected output, do not print unnecessary output

    2 juillet 2014, par Guillaume

    I don’t know if it’s possible :
    I’m using ffmpeg and I would like to reduce the output of a command. I have this result :

    ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
     built on Jun 17 2014 11:08:12 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
     configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-libvidstab --enable-libx265
     libavutil      52. 89.100 / 52. 89.100
     libavcodec     55. 67.100 / 55. 67.100
     libavformat    55. 43.100 / 55. 43.100
     libavdevice    55. 13.101 / 55. 13.101
     libavfilter     4.  8.100 /  4.  8.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 19.100 /  0. 19.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, hls,applehttp, from 'http://ftvodhdsecz-f.akamaihd.net/i/streaming-adaptatif_france-dom-tom/2014/S26/J7/104904507-20140629-,398,632,934,k.mp4.csmil/index_2_av.m3u8?null=':
     Duration: 00:51:05.07, start: 0.100667, bitrate: 0 kb/s
     Program 0
       Metadata:
         variant_bitrate : 0
       Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 704x396 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 67 kb/s
       Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
    File '/media/path/video.mkv' already exists. Overwrite ? [y/N] y
    [matroska @ 0x2958840] Error parsing AAC extradata, unable to determine samplerate.
    Output #0, matroska, to '/media/path/video.mkv':
     Metadata:
       encoder         : Lavf55.43.100
       Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 704x396 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 1k tbn, 90k tbc
       Stream #0:1: Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, 67 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [hls,applehttp @ 0x2864c20] Failed to open segment of playlist 0ate= 844.6kbits/s    
    frame= 3000 fps=174 q=-1.0 Lsize=   12325kB time=00:02:00.00 bitrate= 841.4kbits/s

    I just would like to have this 4 informations :

    1) Duration: 00:51:05.07, start: 0.100667, bitrate: 0 kb/s
    2)  File '/media/path/video.mkv' already exists. Overwrite ? [y/N] y
    3)  Output #0, matroska, to '/media/path/video.mkv':
    4)  frame= 3000 fps=174 q=-1.0 Lsize=   12325kB time=00:02:00.00 bitrate= 841.4kbits/s

    I’ve tried the -v option, but the output is either -v info (this long output), or -v warning, or -v error. There’s not what I would like to have.
    I’ve seen this question but the output is totally clear. Can I put an exception for specially string ?
    Thanks all

    Edit : my line in my script is like that :

    ffmpeg -i "${M3U2}" -vcodec copy -acodec copy "${Directory}/${PROG}_${ID}.mkv"
  • Extract Video Meta Data from First Few MB on S3

    22 août 2016, par David Williams

    I have a large collection of video files on S3. I also have application servers running in AWS running a Java webapp. From those application servers, I would like to be able to extract metadata from each video file such as is provided by the Quicktime movie inspector :

    Source: /home/me/foo.mov
    Format: H.264, 1920x1080
    FPS: 29.97
    Data Size: 16.8 MB
    Data Rate: 6.70 Mbit/s

    Now, I can clearly get this information from ffmpeg :

    $ ffmpeg -i /home/me/foo.mov

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/me/foo.mov':
     Metadata:
       major_brand     : isom
       minor_version   : 1
       compatible_brands: isomavc1mp42
       creation_time   : 2014-06-30 22:40:08
     Duration: 00:00:20.02, start: 0.000000, bitrate: 6698 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 6696 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
       Metadata:
         creation_time   : 2014-06-30 22:39:09
         handler_name    : GPAC ISO Video Handler

    I could easily parse out the equivalent fields to the Quicktime output ! But, this would require I have the file locally. Is it possible to do this from the first few MB (or some other mechanism) of a file hosted on S3 without downloading the whole thing locally ? The goal here is to extract the same fields as the quicktime inspector from a file on S3. Any ideas ?

  • ffmpeg drops all frames after 6 seconds

    25 juin 2014, par user2099107

    New to FFMPEG, I’m trying to create a video from a set of png.

    I have 96 png and I’m looking to 4 FPS (24 seconds of video)

    I use the following command :

    /Applications/ffmpeg -y -r 4 -pattern_type glob -i './images/*.png' -c:v libx264 -pix_fmt yuv420p out.mp4

    my out.mp4 always commes out as roughly 6 seconds with 24 frames, the last 70 frames being dropped.

    here is the full output :

       ffmpeg version 2.2.3-tessus Copyright (c) 2000-2014 the FFmpeg developers
     built on Jun  4 2014 21:31:51 with clang version 3.3 (tags/RELEASE_33/final)
     configuration: --cc=/opt/local/bin/clang-mp-3.3 --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-libmodplug --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --disable-indev=qtkit --enable-runtime-cpudetect
     libavutil      52. 66.100 / 52. 66.100
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 33.100 / 55. 33.100
     libavdevice    55. 10.100 / 55. 10.100
     libavfilter     4.  2.100 /  4.  2.100
     libswscale      2.  5.102 /  2.  5.102
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, image2, from './images/*.png':
     Duration: 00:00:03.84, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgba, 1280x1024, 25 fps, 25 tbr, 25 tbn, 25 tbc
    [libx264 @ 0x103000600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x103000600] profile High, level 3.2
    [libx264 @ 0x103000600] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=4 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
    Output #0, mp4, to '/Users/adrien/code/encoding/out.mp4':
     Metadata:
       encoder         : Lavf55.33.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x1024, q=-1--1, 16384 tbn, 4 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (png -> libx264)
    Press [q] to stop, [?] for help
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgba to size:1280x1024 fmt:rgb24
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgb24 to size:1280x1024 fmt:rgba
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgba to size:1280x1024 fmt:rgb24
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgb24 to size:1280x1024 fmt:rgba
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgba to size:1280x1024 fmt:rgb24
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgb24 to size:1280x1024 fmt:rgba
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgba to size:1280x1024 fmt:rgb24
    frame=   26 fps= 21 q=-1.0 Lsize=     165kB time=00:00:06.00 bitrate= 224.9kbits/s dup=0 drop=70    
    video:164kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.661924%
    [libx264 @ 0x103000600] frame I:1     Avg QP: 9.66  size:100467
    [libx264 @ 0x103000600] frame P:8     Avg QP:14.08  size:  7610
    [libx264 @ 0x103000600] frame B:17    Avg QP:18.26  size:   322
    [libx264 @ 0x103000600] consecutive B-frames: 11.5%  0.0% 11.5% 76.9%
    [libx264 @ 0x103000600] mb I  I16..4: 23.4% 49.5% 27.1%
    [libx264 @ 0x103000600] mb P  I16..4:  3.6%  3.7%  1.3%  P16..4:  1.0%  0.1%  0.2%  0.0%  0.0%    skip:90.1%
    [libx264 @ 0x103000600] mb B  I16..4:  0.1%  0.0%  0.1%  B16..8:  1.3%  0.0%  0.0%  direct: 0.0%  skip:98.4%  L0:46.1% L1:53.9% BI: 0.0%
    [libx264 @ 0x103000600] 8x8 transform intra:45.8% inter:25.7%
    [libx264 @ 0x103000600] coded y,uvDC,uvAC intra: 46.0% 62.8% 42.9% inter: 0.1% 0.2% 0.1%
    [libx264 @ 0x103000600] i16 v,h,dc,p: 58% 25% 15%  2%
    [libx264 @ 0x103000600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 22% 24%  3%  1%  1%  3%  1%  1%
    [libx264 @ 0x103000600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 48% 20% 12%  3%  3%  4%  3%  3%  3%
    [libx264 @ 0x103000600] i8c dc,h,v,p: 49% 20% 28%  3%
    [libx264 @ 0x103000600] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x103000600] ref P L0: 86.0%  5.3%  7.2%  1.5%
    [libx264 @ 0x103000600] ref B L0: 61.7% 35.8%  2.5%
    [libx264 @ 0x103000600] ref B L1: 95.8%  4.2%
    [libx264 @ 0x103000600] kb/s:205.33