Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (25)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (4234)

  • avformat/flvenc : Avoid unnecessary seek

    16 janvier 2020, par Andreas Rheinhardt
    avformat/flvenc : Avoid unnecessary seek
    

    When shifting the already written data in order to write the keyframe
    index, the flv muxer would first store the pre-shift size, then
    calculate how big the index will be eventually, then perform some seeks
    to update some size fields, then seek back to the end of the file to get
    the new position, followed by a seek to the position where writing will
    really start. Seeking back to the (already known) end position (that is
    actually used to perform this seek) to get the end position is of course
    unnecessary. It has been removed.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/flvenc.c
  • Store a videostream from webcam but as 1s long files that can later be merged together [duplicate]

    17 février 2018, par Jennifer R

    This question is an exact duplicate of :

    I’m trying to store a videostream from a webcam but need it to be 1s long files. I have never worked with storing videofiles so i’m not sure if and how i should use opencv and how those videofiles need to be contained that i can merge them together. I tried the old windows cmd code

    copy /b *.avi combined.avi

    but since avi is sort of a container type i only got as far as the first file. I’m guessing since there’s some container data limiting the first file and i can’t watch it.

    I need help in both questions. How can i store a video stream and how do i merge those videos ? Do i use ffmpeg for the latter and is it possible to edit the container data to the correct length ?

  • ffmpeg hangs when running -i in alpine docker container cron job

    14 mai 2021, par Richard Westby-Nunn

    I'm see strange behaviour in ffmpeg not running the -i option ONLY when running as a cron job. I can run the command fine directly via the shell. The the cronjob command runs, and it even "starts" the ffmpeg "executable", but it then hangs when it gets to the -i option and arguments.

    &#xA;

    I have included a copy of a working output when run from the shell prompt to demonstrate what the output should show.

    &#xA;

    alpine : 3.13.5

    &#xA;

    docker image : alpine:latest (date : 2021-05-14)

    &#xA;

    docker run :

    &#xA;

    docker run -v s:\_docker\_alpine-test:/media/pi --name alpine -it alpine crond -f -l8

    &#xA;

    crontab script :

    &#xA;

    /media/pi/_site/pics-alpine.sh 2>&amp;1 | tee /media/pi/_site/alpine.log

    &#xA;

    /media/pi/_site/pics-alpine.sh script :

    &#xA;

    #!/bin/ash&#xA;&#xA;set -xv&#xA;&#xA;echo "START"&#xA;&#xA;#encode jpgs to mp4&#xA;/usr/bin/ffmpeg -i /media/pi/to-video-back/%04d.jpg  /media/pi/_site/back/back-latest.mp4&#xA;&#xA;echo "END"&#xA;

    &#xA;

    The output of the log file is :

    &#xA;

    echo "START"&#xA;&#x2B; echo START&#xA;START&#xA;&#xA;### encode jpgs to mp4&#xA;/usr/bin/ffmpeg -i /media/pi/to-video-back/%04d.jpg  /media/pi/_site/back/back-latest.mp4&#xA;&#x2B; /usr/bin/ffmpeg -i &#x27;/media/pi/to-video-back/%04d.jpg&#x27; /media/pi/_site/back/back-latest.mp4&#xA;ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 10.2.1 (Alpine 10.2.1_git20210328) 20210328&#xA;  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --enable-vulkan --enable-libsoxr --enable-libwebp --enable-libaom --disable-debug&#xA;

    &#xA;

    Script output when run directly from the shell prompt :

    &#xA;

    /media/pi/_site # ./pics-alpine.sh&#xA;&#xA;echo "START"&#xA;&#x2B; echo START&#xA;START&#xA;&#xA;### encode jpgs to mp4&#xA;/usr/bin/ffmpeg -i /media/pi/to-video-back/%04d.jpg  /media/pi/_site/back/back-latest.mp4&#xA;&#x2B; /usr/bin/ffmpeg -i &#x27;/media/pi/to-video-back/%04d.jpg&#x27; /media/pi/_site/back/back-latest.mp4&#xA;ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 10.2.1 (Alpine 10.2.1_git20210328) 20210328&#xA;  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --enable-vulkan --enable-libsoxr --enable-libwebp --enable-libaom --disable-debug&#xA;  libavutil      56. 70.100 / 56. 70.100&#xA;  libavcodec     58.134.100 / 58.134.100&#xA;  libavformat    58. 76.100 / 58. 76.100&#xA;  libavdevice    58. 13.100 / 58. 13.100&#xA;  libavfilter     7.110.100 /  7.110.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  9.100 /  5.  9.100&#xA;  libswresample   3.  9.100 /  3.  9.100&#xA;  libpostproc    55.  9.100 / 55.  9.100&#xA;Input #0, image2, from &#x27;/media/pi/to-video-back/%04d.jpg&#x27;:&#xA;  Duration: 00:00:00.96, start: 0.000000, bitrate: N/A&#xA;  Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1280x960, 25 fps, 25 tbr, 25 tbn, 25 tbc&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0x7fd9cf099b00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x7fd9cf099b00] profile High, level 3.2, 4:2:0, 8-bit&#xA;[libx264 @ 0x7fd9cf099b00] 264 - core 161 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - 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;/media/pi/_site/back/back-latest.mp4&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.76.100&#xA;  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuvj420p(pc, bt470bg/unknown/unknown, progressive), 1280x960, q=2-31, 25 fps, 12800 tbn&#xA;    Metadata:&#xA;      encoder         : Lavc58.134.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;frame=   24 fps=0.0 q=-1.0 Lsize=      25kB time=00:00:00.84 bitrate= 242.1kbits/s speed=1.56x&#xA;video:24kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.565835%&#xA;[libx264 @ 0x7fd9cf099b00] frame I:2     Avg QP:17.30  size:  3693&#xA;[libx264 @ 0x7fd9cf099b00] frame P:11    Avg QP:20.46  size:   854&#xA;[libx264 @ 0x7fd9cf099b00] frame B:11    Avg QP:22.05  size:   623&#xA;[libx264 @ 0x7fd9cf099b00] consecutive B-frames: 29.2% 25.0% 12.5% 33.3%&#xA;[libx264 @ 0x7fd9cf099b00] mb I  I16..4: 14.6% 83.5%  2.0%&#xA;[libx264 @ 0x7fd9cf099b00] mb P  I16..4:  3.0%  2.2%  0.0%  P16..4:  5.2%  0.1%  0.1%  0.0%  0.0%    skip:89.3%&#xA;[libx264 @ 0x7fd9cf099b00] mb B  I16..4:  0.4%  0.1%  0.0%  B16..8:  6.5%  0.0%  0.0%  direct: 0.1%  skip:92.9%  L0:35.0% L1:64.8% BI: 0.2%&#xA;[libx264 @ 0x7fd9cf099b00] 8x8 transform intra:73.3% inter:94.3%&#xA;[libx264 @ 0x7fd9cf099b00] coded y,uvDC,uvAC intra: 8.5% 12.1% 0.5% inter: 0.7% 3.3% 0.0%&#xA;[libx264 @ 0x7fd9cf099b00] i16 v,h,dc,p: 77% 15%  6%  2%&#xA;[libx264 @ 0x7fd9cf099b00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 71%  6% 20%  1%  1%  0%  1%  0%  0%&#xA;[libx264 @ 0x7fd9cf099b00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 55% 13% 24%  1%  3%  1%  1%  1%  1%&#xA;[libx264 @ 0x7fd9cf099b00] i8c dc,h,v,p: 92%  4%  4%  0%&#xA;[libx264 @ 0x7fd9cf099b00] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 0x7fd9cf099b00] ref P L0: 57.6%  2.5% 30.8%  9.1%&#xA;[libx264 @ 0x7fd9cf099b00] ref B L0: 70.2% 27.6%  2.2%&#xA;[libx264 @ 0x7fd9cf099b00] ref B L1: 98.5%  1.5%&#xA;[libx264 @ 0x7fd9cf099b00] kb/s:196.96&#xA;&#xA;echo "END"&#xA;&#x2B; echo END&#xA;END&#xA;

    &#xA;

    As you can see from the above, when run from the shell prompt it starts ffmpeg and then processes the arguments. But when running as cron, it opens ffmpeg, but ignores, or hangs on the processing of the arguments.

    &#xA;

    Lastly, I have the following show up in ps ax when I do a check to see what is running :

    &#xA;

       58 root      0:00 /bin/ash -c /media/pi/_site/pics-alpine.sh 2>&amp;1 | tee /media/pi/_site/alpine.log&#xA;   59 root      0:00 {pics-alpine.sh} /bin/ash /media/pi/_site/pics-alpine.sh&#xA;   60 root      0:00 tee /media/pi/_site/alpine.log&#xA;   61 root      0:00 /usr/bin/ffmpeg -i /media/pi/to-video-back/%04d.jpg /media/pi/_site/back/back-latest.mp4&#xA;

    &#xA;

    Those are just sitting there as though they are waiting on input, so I suspect the ffmpeg has a bug, or my cron is not passing the arguments correctly.

    &#xA;

    Any thoughts on how to fix this ?

    &#xA;