Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (111)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

Sur d’autres sites (10896)

  • FFmpeg drops last frame with filter fps/framerate

    27 juin 2019, par Dzmitry

    When I convert the same mp4 video (mime:video/mp4, fps:25) with video filter fps with value 25 ffmpeg drops one (last ?) frame everytime.
    This is log :

    [h264 @ 0x7fc89ceb3cc0] Reinit context to 960x544, pix_fmt: yuv420p
    [h264 @ 0x7fc89cfb59c0] Reinit context to 960x544, pix_fmt: yuv420p
    [libx264 @ 0x7fc89cf932c0] using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX
    [libx264 @ 0x7fc89cf932c0] profile Constrained Baseline, level 5.1
    [libx264 @ 0x7fc89cf932c0] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=8 sliced_threads=1 slices=8 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=12 keyint_min=1 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=1.00 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    [in @ 0x7fc89eeeda40] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
    [in @ 0x7fc89eeeda40] TB:0.000021 FRAME_RATE:nan SAMPLE_RATE:48000.000000
    [Parsed_aresample_1 @ 0x7fc89eeee9c0] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz
    [Parsed_asetnsamples_2 @ 0x7fc89eeede40] tb:0.000021 sample_rate:48000.000000 nb_channels:2.000000
    [Parsed_volume_3 @ 0x7fc89ef049c0] n:nan t:nan pts:nan precision:float volume:1.071519 volume_dB:0.600000
    [in @ 0x7fc89ef05d00] w:960 h:540 pixfmt:yuv420p tb:1/12800 fr:0/1 sar:0/1 sws_param:
    [Parsed_fps_0 @ 0x7fc89ef06a00] fps=25/1
    [Parsed_scale_2 @ 0x7fc89ef07780] w:960 h:540 flags:'bilinear' interl:0
    [Parsed_setsar_1 @ 0x7fc89ef06cc0] w:960 h:540 sar:0/1 dar:16/9 -> sar:1/1 dar:16/9
    [Parsed_scale_2 @ 0x7fc89ef07780] w:960 h:540 fmt:yuv420p sar:1/1 -> w:960 h:540 fmt:yuv420p sar:1/1 flags:0x2
    [h264 @ 0x7fc89d164c40] Reinit context to 960x544, pix_fmt: yuv420p
    [Parsed_fps_0 @ 0x7fc89ef06a00] Set first pts to 0

    [Parsed_fps_0 @ 0x7fc89ef06a00] 609 frames in, 608 frames out; 1 frames dropped, 0 frames duplicated.
    [libx264 @ 0x7fc89cf932c0] frame I:61    Avg QP:18.67  size: 44710
    [libx264 @ 0x7fc89cf932c0] frame P:547   Avg QP:21.44  size: 19455
    [libx264 @ 0x7fc89cf932c0] mb I  I16..4:  4.6%  0.0% 95.4%
    [libx264 @ 0x7fc89cf932c0] mb P  I16..4:  3.9%  0.0%  7.9%  P16..4: 43.2% 27.9% 12.9%  0.0%  0.0%    skip: 4.3%
    [libx264 @ 0x7fc89cf932c0] coded y,uvDC,uvAC intra: 77.9% 90.3% 36.3% inter: 36.2% 46.0% 2.6%
    [libx264 @ 0x7fc89cf932c0] i16 v,h,dc,p: 23% 35% 28% 14%
    [libx264 @ 0x7fc89cf932c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 23% 17%  6%  7%  6%  7%  5%  5%
    [libx264 @ 0x7fc89cf932c0] i8c dc,h,v,p: 53% 20% 19%  8%
    [libx264 @ 0x7fc89cf932c0] kb/s:4397.76
    [aac @ 0x7fc89edc6c00] Qavg: 642.230

    I’ve already tried to modify filter with parameters round=up/near/down:eof_action=pass/round

    ffmpeg -i input.mp4 -c:v libx264 -filter:v fps=fps=25 output.mp4

    I expect to get converted videos without dropped frames.

  • Use ffmpeg to encode raw bayer_rggb8 frames as video

    5 décembre 2019, par DekiChan

    I have some industrial camera that records and outputs frames in raw bayer_rggb8 format. Frames are 1920x1080 in size, shot at 90fps. I wan’t to create video from it (format doesn’t matter much, but preferably mp4 with x264 encoding). My frames are saved on the filesystem as frame-00001.raw, frame-00002.raw etc. Every now and then there’s empty file.

    I can convert single image to say PNG with the following command :

    ffmpeg -f image2 -c:v rawvideo -pix_fmt bayer_rggb8 -s:v 1920x1080 -i frame-00400.raw output.png

    But when I try to encode it as video with the following command :

    ffmpeg -f image2 -c:v rawvideo -pix_fmt bayer_rggb8 -s:v 1920x1080 -r 90 -i frame-%05d.raw -c:v libx264 output.mp4

    I get this console output :

    Input #0, image2, from 'frame-%05d.raw':
     Duration: 00:00:05.26, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: rawvideo ([186]RG[8] / 0x84752BA), bayer_rggb8, 1920x1080, 90 tbr, 90 tbn, 90 tbc
    File 'output.mp4' already exists. Overwrite ? [y/N] y
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 0x7fe5c400a200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x7fe5c400a200] profile High 4:4:4 Predictive, level 5.1, 4:4:4 8-bit
    [libx264 @ 0x7fe5c400a200] 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=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 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
    Output #0, mp4, to 'output.mp4':
     Metadata:
       encoder         : Lavf58.29.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 1920x1080, q=-1--1, 90 fps, 11520 tbn, 90 tbc
       Metadata:
         encoder         : Lavc58.54.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
    video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

    The file is 262bytes big, cat output.mp4 returns this :

    ftypisomisomiso2avc1mp4fremdat�moovlmvhd�@budtaZmeta!hdlrmdirappl-ilst%�toodataLavf58.29.100%

    I can’t really spot the problem. It happens both on MacOS Catalina and Ubuntu 16.04.

  • ffmpeg segmentation filter don't works with strftime filename template

    24 juillet 2020, par Ksnadr Renderon

    I try to run ffmpeg with segment filter and timestamp filename template :

    &#xA;

     ffmpeg -f v4l2 -framerate 30 -video_size 960x720 -i /dev/video0  -f segment  -segment_time 5  -reset_timestamps 1 -segment_format mp4 -strftime 1 out%Y-%m-%d_%H-%M-%S.mp4&#xA;

    &#xA;

    and i got error :

    &#xA;

    Invalid segment filename template &#x27;out%Y-%m-%d_%H-%M-%S.mp4&#x27;&#xA;

    &#xA;

    I have read a lot of posts and questions in the internet with the same arguments (after input, which is specific) and people says that this works. What wrong with my command ?

    &#xA;

    UPD : add full ffmpeg log

    &#xA;

    root@nanopiair:~# ffmpeg -f v4l2 -framerate 30 -video_size 960x720 -i /dev/video0  -f segment  -segment_time 5  -reset_timestamps 1 -segment_format mp4 -strftime 1 out%Y-%m-%d_%H-%M-%S.mp4&#xA;ffmpeg version git-2015-01-22-f86a076 Copyright (c) 2000-2014 the FFmpeg developers&#xA;  built on Jul 22 2020 12:02:39 with gcc 8 (Debian 8.3.0-6)&#xA;  configuration: --prefix=/usr --enable-nonfree --enable-gpl --enable-vdpau --enable-libx264 --enable-libv4l2 --enable-libfreetype --enable-libfontconfig --enable-libfribidi&#xA;  libavutil      54.  6.100 / 54.  6.100&#xA;  libavcodec     56.  0.101 / 56.  0.101&#xA;  libavformat    56.  2.100 / 56.  2.100&#xA;  libavdevice    56.  0.100 / 56.  0.100&#xA;  libavfilter     5.  0.102 /  5.  0.102&#xA;  libswscale      3.  0.100 /  3.  0.100&#xA;  libswresample   1.  1.100 /  1.  1.100&#xA;  libpostproc    53.  0.100 / 53.  0.100&#xA;Input #0, video4linux2,v4l2, from &#x27;/dev/video0&#x27;:&#xA;  Duration: N/A, start: 2548.007454, bitrate: 248832 kb/s&#xA;    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 960x720, 248832 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc&#xA;[libx264 @ 0x201bec0] using cpu capabilities: ARMv6 NEON&#xA;[libx264 @ 0x201bec0] profile High, level 3.1&#xA;[libx264 @ 0x201bec0] 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=6 lookahead_threads=1 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;[mp4 @ 0x2507bd0] Invalid segment filename template &#x27;out%Y-%m-%d_%H-%M-%S.mp4&#x27;&#xA;Output #0, segment, to &#x27;out%Y-%m-%d_%H-%M-%S.mp4&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf56.2.100&#xA;    Stream #0:0: Video: h264 (libx264), yuv420p, 960x720, q=-1--1, 30 fps, 30 tbn, 30 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc56.0.101 libx264&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))&#xA;Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument&#xA;

    &#xA;