Recherche avancée

Médias (91)

Autres articles (19)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

Sur d’autres sites (5139)

  • FFmpeg - MP4 file converted from PNG files is not playable [closed]

    2 mai 2024, par StamShamen

    I am attempting to use FFmpeg and JavaScript to convert multiple PNG files to an MP4 video. However, sometimes the output video is not playable (1kb) and no error appears in the output.

    


    This is the command that I run :

    


    ffmpeg -y -r 25 -i "videos-reporter/123/screenshots/%04d.png" -c:v libx264 -preset medium -crf 20 -pix_fmt yuv420p -vf "scale=1200:trunc(ow/a/2)*2,setpts=3.0*PTS" -threads 4 "videos-reporter/123/video.mp4"


    


    Output of playable video :

    


    Input #0, image2, from '/workspace/1/s/videos-reporter/MC4wMDM0NzUwNjg5NTc2NzMwMjI=/a464584b4d03585bd68abc0326e20b9a/screenshots/%04d.png':
  Duration: 00:00:01.44, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgba(pc), 1920x1080, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x53a1000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x53a1000] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x53a1000] 264 - core 157 r2935 545de2f - 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=4 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=10 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 'videos-reporter/MC4wMDM0NzUwNjg5NTc2NzMwMjI=/a464584b4d03585bd68abc0326e20b9a/video.mp4':
  Metadata:
    encoder         : Lavf58.24.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1200x674, q=-1--1, 10 fps, 10240 tbn, 10 tbc
    Metadata:
      encoder         : Lavc58.42.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame=   52 fps=0.0 q=25.0 size=       0kB time=00:00:00.10 bitrate=   3.8kbits/s dup=34 drop=0 speed=0.125x    
video:84kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.457641%
[libx264 @ 0x53a1000] frame I:4     Avg QP: 5.16  size: 14568
[libx264 @ 0x53a1000] frame P:27    Avg QP:15.86  size:   790
[libx264 @ 0x53a1000] frame B:76    Avg QP:12.71  size:    73
[libx264 @ 0x53a1000] consecutive B-frames:  3.7%  1.9%  8.4% 86.0%
[libx264 @ 0x53a1000] mb I  I16..4: 87.8%  4.1%  8.1%
[libx264 @ 0x53a1000] mb P  I16..4:  3.1%  2.0%  0.4%  P16..4:  0.4%  0.1%  0.0%  0.0%  0.0%    skip:93.9%
[libx264 @ 0x53a1000] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  1.3%  0.1%  0.0%  direct: 0.0%  skip:98.6%  L0:42.1% L1:57.7% BI: 0.2%
[libx264 @ 0x53a1000] 8x8 transform intra:12.8% inter:47.1%
[libx264 @ 0x53a1000] coded y,uvDC,uvAC intra: 5.9% 5.8% 5.1% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x53a1000] i16 v,h,dc,p: 81% 18%  1%  0%
[libx264 @ 0x53a1000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 16% 60%  0%  0%  0%  0%  0%  1%
[libx264 @ 0x53a1000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 48% 16%  1%  2%  2%  3%  2%  4%
[libx264 @ 0x53a1000] i8c dc,h,v,p: 90%  7%  2%  0%
[libx264 @ 0x53a1000] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x53a1000] ref P L0: 72.8%  2.5% 14.1% 10.6%
[libx264 @ 0x53a1000] ref B L0: 88.2% 11.0%  0.9%
[libx264 @ 0x53a1000] ref B L1: 99.3%  0.7%
[libx264 @ 0x53a1000] kb/s:63.64


    


    Output of not-playable video :

    


    Input #0, image2, from '/workspace/1/s/videos-reporter/MC4zOTQ2Nzk4NzMwMjU0MTU5Ng==/20ae4ef3d1e642b26d348adc4246965d/screenshots/%04d.png':
  Duration: 00:00:01.60, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgba(pc), 1920x1080, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x5490c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x5490c00] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x5490c00] 264 - core 157 r2935 545de2f - 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=4 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=10 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 'videos-reporter/MC4zOTQ2Nzk4NzMwMjU0MTU5Ng==/20ae4ef3d1e642b26d348adc4246965d/video.mp4':
  Metadata:
    encoder         : Lavf58.24.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1200x674, q=-1--1, 10 fps, 10240 tbn, 10 tbc
    Metadata:
      encoder         : Lavc58.42.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1

stderr: frame=   19 fps=5.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=12 drop=0 speed=   0x    
stderr: frame=   64 fps= 17 q=25.0 size=       0kB time=00:00:01.30 bitrate=   0.3kbits/s dup=42 drop=0 speed=0.343x    
stderr: frame=  119 fps= 25 q=-1.0 Lsize=     153kB time=00:00:11.60 bitrate= 108.2kbits/s dup=79 drop=0 speed=2.46x    
video:151kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.431093%

stderr: [libx264 @ 0x5490c00] frame I:5     Avg QP: 6.42  size: 14533
[libx264 @ 0x5490c00] frame P:32    Avg QP:16.29  size:  2284
[libx264 @ 0x5490c00] frame B:82    Avg QP:14.77  size:   100
[libx264 @ 0x5490c00] consecutive B-frames:  5.9%  1.7% 15.1% 77.3%
[libx264 @ 0x5490c00] mb I  I16..4: 77.0% 14.4%  8.6%

stderr: [libx264 @ 0x5490c00] mb P  I16..4:  9.2%  3.4%  1.3%  P16..4:  2.5%  0.2%  0.1%  0.0%  0.0%    skip:83.3%
[libx264 @ 0x5490c00] mb B  I16..4:  0.1%  0.0%  0.0%  B16..8:  1.8%  0.1%  0.0%  direct: 0.0%  skip:97.9%  L0:42.9% L1:56.4% BI: 0.7%
[libx264 @ 0x5490c00] 8x8 transform intra:19.2% inter:66.1%
[libx264 @ 0x5490c00] coded y,uvDC,uvAC intra: 6.1% 7.5% 5.4% inter: 0.3% 0.4% 0.0%
[libx264 @ 0x5490c00] i16 v,h,dc,p: 61% 38%  1%  0%
[libx264 @ 0x5490c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 15% 37%  0%  0%  0%  0%  0%  0%
[libx264 @ 0x5490c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 46% 14%  1%  2%  2%  3%  2%  3%
[libx264 @ 0x5490c00] i8c dc,h,v,p: 85% 13%  3%  0%
[libx264 @ 0x5490c00] Weighted P-Frames: Y:6.2% UV:6.2%
[libx264 @ 0x5490c00] ref P L0: 75.1%  5.0% 16.0%  3.9%  0.0%
[libx264 @ 0x5490c00] ref B L0: 77.6% 19.7%  2.7%
[libx264 @ 0x5490c00] ref B L1: 97.9%  2.1%
[libx264 @ 0x5490c00] kb/s:103.49


    


    Your help is appreciated since I couldn't find any solution for it.

    


  • How to generate a PDF (1.7) from a MP4 movie (Rich Media annotation) ?

    19 août 2020, par malat

    I am a happy user of img2pdf. This tool does the minimal amount of work to put a series of JPEG 2000/JPEG/PNG images into a PDF "enveloppe". However I am now faced with a new challenge : embed a MP4 file into a PDF "enveloppe".

    


    I see that commercial tool can do it, as seen at :

    


    


    It seems to have been introduced in ISO 32000-1 (PDF 1.7 Extension Level 5)

    


    I am looking for a solution which will use the Rich Media annotation inside the PDF stream.

    


    There are dozen of duplicated questions on superuser/stackoverflow, which all pretty much refer to imagemagick/convert command line tool. But in my case, convert expand the images into a multi-page PDF (which is not my desired behavior) :

    


    $ convert input.mp4 output.pdf
$ pdfinfo output.pdf 
Title:          out
Producer:       https://imagemagick.org
CreationDate:   Wed Aug 19 15:38:01 2020 CEST
ModDate:        Wed Aug 19 15:38:01 2020 CEST
Tagged:         no
UserProperties: no
Suspects:       no
Form:           none
JavaScript:     no
Pages:          1601
Encrypted:      no
Page size:      352 x 288 pts
Page rot:       0
File size:      534407296 bytes
Optimized:      no
PDF version:    1.3


    


    with :

    


    $ convert --version
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib


    


    and

    


    $ file input.mp4 
input.mp4: ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]
$ ffprobe -v quiet -print_format json  -show_streams input.mp4 | grep codec_long_name
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",


    


  • How to solve the incremental delay in ffplay streaming ?

    26 avril 2021, par Nilton Garcia

    Problem : Incremental streaming runtime delay with FFPLAY

    


    Question : Is there a way to clear the delay buffer at run time ?

    


    I'm using FFPLAY to play an RTP stream. In the first few minutes the delay is constant however, after 1h the delay increases by a few milliseconds generating in the end seconds of delayed increases.

    


    I have tested several protocols : SRT, RTP and UDP, RTMP and the behavior is the same with FFPLAY.

    


    Command used to play an RTP audio stream :

    


    ffplay -max_delay 100000 -flags low_delay -probesize 32 -fflags nobuffer+fastseek+flush_packets -analyzeduration 0 -protocol_whitelist file,rtp,udp -i audio.sdp -loglevel info -nodisp


    


    I have tested and made several combinations of flags and so far without success.

    


    Arquivo .SDP

    


    SDP:
v=0
o=- 0 0 IN IP4 10.50.50.14
s=FONTE DE AUDIO
c=IN IP4 10.50.50.14
t=0 0
a=tool:libavformat 58.29.100
m=audio 3029 RTP/AVP 127
b=AS:1536
a=rtpmap:127 L16/32000/2


    


    My version FFPLAY

    


    ffplay version 4.2.2-0york0~18.04 Copyright (c) 2003-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
  configuration: --prefix=/usr --extra-version='0york0~18.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100