Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (86)

  • 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 ;

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (14148)

  • FFMPEG hangs (sometimes) when trying to take a photo from USB camera ?

    13 mai 2022, par dezman

    I am attempting to write a script that takes a photo every 3 seconds from camera source "1", the -pix_fmt I think is unique to my USB camera.

    


    Here is the script :

    


    #!/bin/bash

set -e

while :
do
  nice_num=$(date +%s)
  
  ffmpeg -ss 00:00:00 -f avfoundation -pix_fmt yuyv422 -r 30.000030 -i "1" -t 1 -frames:v 1 -q:v 2 "image_$nice_num_%03d.jpg"
  
  wait

  sleep 3
done


    


    The issue is half the time it successfully takes the photo, and half the time it just hangs forever echoing this (not useful) :

    


    ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with Apple clang version 13.1.6 (clang-1316.0.21.2)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/5.0.1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100


    


    Then I CTRL-C 3 times and get :

    


    ^C^C^CReceived > 3 system signals, hard exiting


    


    Other methods of "taking a photo every n seconds from bash" are also appreciated.

    


  • lavfi/dnn : Remove DNN native backend

    27 avril 2023, par Ting Fu
    lavfi/dnn : Remove DNN native backend
    

    According to discussion in
    https://etherpad.mit.edu/p/FF_dev_meeting_20221202 and the proposal in
    http://ffmpeg.org/pipermail/ffmpeg-devel/2022-December/304534.html,
    the DNN native backend should be removed at first step.
    All the DNN native backend related codes are deleted.

    Signed-off-by : Ting Fu <ting.fu@intel.com>

    • [DH] libavfilter/Makefile
    • [DH] libavfilter/dnn/Makefile
    • [DH] libavfilter/dnn/dnn_backend_native.c
    • [DH] libavfilter/dnn/dnn_backend_native.h
    • [DH] libavfilter/dnn/dnn_backend_native_layer_avgpool.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_avgpool.h
    • [DH] libavfilter/dnn/dnn_backend_native_layer_conv2d.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_conv2d.h
    • [DH] libavfilter/dnn/dnn_backend_native_layer_dense.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_dense.h
    • [DH] libavfilter/dnn/dnn_backend_native_layer_depth2space.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_depth2space.h
    • [DH] libavfilter/dnn/dnn_backend_native_layer_mathbinary.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_mathbinary.h
    • [DH] libavfilter/dnn/dnn_backend_native_layer_mathunary.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_mathunary.h
    • [DH] libavfilter/dnn/dnn_backend_native_layer_maximum.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_maximum.h
    • [DH] libavfilter/dnn/dnn_backend_native_layer_pad.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_pad.h
    • [DH] libavfilter/dnn/dnn_backend_native_layers.c
    • [DH] libavfilter/dnn/dnn_backend_native_layers.h
    • [DH] libavfilter/dnn/dnn_backend_tf.c
    • [DH] libavfilter/dnn_interface.h
    • [DH] libavfilter/tests/dnn-layer-avgpool.c
    • [DH] libavfilter/tests/dnn-layer-conv2d.c
    • [DH] libavfilter/tests/dnn-layer-dense.c
    • [DH] libavfilter/tests/dnn-layer-depth2space.c
    • [DH] libavfilter/tests/dnn-layer-mathbinary.c
    • [DH] libavfilter/tests/dnn-layer-mathunary.c
    • [DH] libavfilter/tests/dnn-layer-maximum.c
    • [DH] libavfilter/tests/dnn-layer-pad.c
    • [DH] libavfilter/vf_derain.c
    • [DH] libavfilter/vf_dnn_processing.c
    • [DH] libavfilter/vf_sr.c
    • [DH] tests/Makefile
    • [DH] tests/fate/dnn.mak
  • Dockerized ffmpeg stops for no reason

    2 mai 2023, par Arthur Attout

    I'm trying to fire up a container that reads a video stream via ffmpeg and saves the stream as 30 seconds segments.

    &#xA;

    When I run the container, it stops after 20-ish seconds and returns with no error.

    &#xA;

    Here is my Dockerfile

    &#xA;

    FROM linuxserver/ffmpeg&#xA;ENTRYPOINT ffmpeg -i rtsp://192.168.1.85:8554/camera -f v4l2 -c copy -reset_timestamps 1 -map 0 -f segment -segment_time 30 -segment_format mp4 "output/out%03d.mp4" -loglevel debug&#xA;

    &#xA;

    Here is the output when I run sudo docker run -it --rm -v /data/camera:/output --name camera_recorder camera_recorder:latest

    &#xA;

    [&#x2B;] Building 1.8s (5/5) FINISHED&#xA; => [internal] load build definition from Dockerfile                                                                                                                                                                                                                      0.3s&#xA; => => transferring dockerfile: 777B                                                                                                                                                                                                                                      0.0s&#xA; => [internal] load .dockerignore                                                                                                                                                                                                                                         0.5s&#xA; => => transferring context: 2B                                                                                                                                                                                                                                           0.0s&#xA; => [internal] load metadata for docker.io/linuxserver/ffmpeg:latest                                                                                                                                                                                                      1.2s&#xA; => CACHED [1/1] FROM docker.io/linuxserver/ffmpeg@sha256:823c611e0af82b864608c21d96bf363403310d92f154e238f6d51fe3d783e53b                                                                                                                                                0.0s&#xA; => exporting to image                                                                                                                                                                                                                                                    0.1s&#xA; => => exporting layers                                                                                                                                                                                                                                                   0.0s&#xA; => => writing image sha256:f0509ccf0b07ff53d4aafa0d3b80fd50ed53e96db906c9a1e0e8c44e163dce94                                                                                                                                                                              0.1s&#xA; => => naming to docker.io/library/camera_recorder                                                                                                                                                                                                                        0.0s&#xA;ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with gcc 11 (Ubuntu 11.3.0-1ubuntu1~22.04)&#xA;  configuration: --disable-debug --disable-doc --disable-ffplay --enable-ffprobe --enable-cuvid --enable-gpl --enable-libaom --enable-libass --enable-libfdk_aac --enable-libfreetype --enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libxml2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-nonfree --enable-nvdec --enable-nvenc --enable-opencl --enable-openssl --enable-small --enable-stripping --enable-vaapi --enable-vdpau --enable-version3&#xA;  libavutil      57. 28.100 / 57. 28.100&#xA;  libavcodec     59. 37.100 / 59. 37.100&#xA;  libavformat    59. 27.100 / 59. 27.100&#xA;  libavdevice    59.  7.100 / 59.  7.100&#xA;  libavfilter     8. 44.100 /  8. 44.100&#xA;  libswscale      6.  7.100 /  6.  7.100&#xA;  libswresample   4.  7.100 /  4.  7.100&#xA;  libpostproc    56.  6.100 / 56.  6.100&#xA;Splitting the commandline.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;rtsp://192.168.1.85:8554/camera&#x27;.&#xA;Reading option &#x27;-f&#x27; ... matched as option &#x27;f&#x27; (force format) with argument &#x27;v4l2&#x27;.&#xA;Reading option &#x27;-c&#x27; ... matched as option &#x27;c&#x27; (codec name) with argument &#x27;copy&#x27;.&#xA;Reading option &#x27;-reset_timestamps&#x27; ... matched as AVOption &#x27;reset_timestamps&#x27; with argument &#x27;1&#x27;.&#xA;Reading option &#x27;-map&#x27; ... matched as option &#x27;map&#x27; (set input stream mapping) with argument &#x27;0&#x27;.&#xA;Reading option &#x27;-f&#x27; ... matched as option &#x27;f&#x27; (force format) with argument &#x27;segment&#x27;.&#xA;Reading option &#x27;-segment_time&#x27; ... matched as AVOption &#x27;segment_time&#x27; with argument &#x27;30&#x27;.&#xA;Reading option &#x27;-segment_format&#x27; ... matched as AVOption &#x27;segment_format&#x27; with argument &#x27;mp4&#x27;.&#xA;Reading option &#x27;output/out%03d.mp4&#x27; ... matched as output url.&#xA;Reading option &#x27;-loglevel&#x27; ... matched as option &#x27;loglevel&#x27; (set logging level) with argument &#x27;debug&#x27;.&#xA;Finished splitting the commandline.&#xA;Parsing a group of options: global .&#xA;Applying option loglevel (set logging level) with argument debug.&#xA;Successfully parsed a group of options.&#xA;Parsing a group of options: input url rtsp://192.168.1.85:8554/camera.&#xA;Successfully parsed a group of options.&#xA;Opening an input file: rtsp://192.168.1.85:8554/camera.&#xA;[tcp @ 0x55c15e3eb040] No default whitelist set&#xA;[tcp @ 0x55c15e3eb040] Original list of addresses:&#xA;[tcp @ 0x55c15e3eb040] Address 192.168.1.85 port 8554&#xA;[tcp @ 0x55c15e3eb040] Interleaved list of addresses:&#xA;[tcp @ 0x55c15e3eb040] Address 192.168.1.85 port 8554&#xA;[tcp @ 0x55c15e3eb040] Starting connection attempt to 192.168.1.85 port 8554&#xA;[tcp @ 0x55c15e3eb040] Successfully connected to 192.168.1.85 port 8554&#xA;[rtsp @ 0x55c15e3e8300] SDP:&#xA;v=0&#xA;o=- 0 0 IN IP4 127.0.0.1&#xA;s=Stream&#xA;c=IN IP4 0.0.0.0&#xA;t=0 0&#xA;m=video 0 RTP/AVP 96&#xA;a=control:rtsp://192.168.1.85:8554/camera/trackID=0&#xA;a=rtpmap:96 MP4V-ES/90000&#xA;a=fmtp:96 config=000001B001000001B58913000001000000012000C48D88002D3C04871443000001B24C61766335392E33372E313030; profile-level-id=1&#xA;&#xA;[rtsp @ 0x55c15e3e8300] video codec set to: mpeg4&#xA;[rtp @ 0x55c15e3ef600] No default whitelist set&#xA;[udp @ 0x55c15e3f0200] No default whitelist set&#xA;[udp @ 0x55c15e3f0200] end receive buffer size reported is 425984&#xA;[udp @ 0x55c15e3eff40] No default whitelist set&#xA;[udp @ 0x55c15e3eff40] end receive buffer size reported is 425984&#xA;[rtsp @ 0x55c15e3e8300] setting jitter buffer size to 500&#xA;[rtsp @ 0x55c15e3e8300] hello state=0&#xA;[rtsp @ 0x55c15e3e8300] Could not find codec parameters for stream 0 (Video: mpeg4, 1 reference frame, none(left), 1920x1080 [SAR 1:1 DAR 16:9], 1/5): unspecified pixel format&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;Input #0, rtsp, from &#x27;rtsp://192.168.1.85:8554/camera&#x27;:&#xA;  Metadata:&#xA;    title           : Stream&#xA;  Duration: N/A, bitrate: N/A&#xA;  Stream #0:0, 0, 1/90000: Video: mpeg4, 1 reference frame, none(left), 1920x1080 [SAR 1:1 DAR 16:9], 0/1, 5 tbr, 90k tbn&#xA;Successfully opened the file.&#xA;Parsing a group of options: output url output/out%03d.mp4.&#xA;Applying option f (force format) with argument v4l2.&#xA;Applying option c (codec name) with argument copy.&#xA;Applying option map (set input stream mapping) with argument 0.&#xA;Applying option f (force format) with argument segment.&#xA;Successfully parsed a group of options.&#xA;Opening an output file: output/out%03d.mp4.&#xA;Successfully opened the file.&#xA;[segment @ 0x55c15e415a80] Selected stream id:0 type:video&#xA;[segment @ 0x55c15e415a80] Opening &#x27;output/out000.mp4&#x27; for writing&#xA;[file @ 0x55c15e42d840] Setting default whitelist &#x27;file,crypto,data&#x27;&#xA;Output #0, segment, to &#x27;output/out%03d.mp4&#x27;:&#xA;  Metadata:&#xA;    title           : Stream&#xA;    encoder         : Lavf59.27.100&#xA;  Stream #0:0, 0, 1/10240: Video: mpeg4, 1 reference frame, none(left), 1920x1080 (0x0) [SAR 1:1 DAR 16:9], 0/1, q=2-31, 5 tbr, 10240 tbn&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (copy)&#xA;Press [q] to stop, [?] for help&#xA;cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;No more output streams to write to, finishing.:00.00 bitrate=N/A speed=   0x&#xA;[segment @ 0x55c15e415a80] segment:&#x27;output/out000.mp4&#x27; count:0 ended&#xA;[AVIOContext @ 0x55c15e42d8c0] Statistics: 292 bytes written, 2 seeks, 3 writeouts&#xA;frame=    0 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=   0x&#xA;video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;Input file #0 (rtsp://192.168.1.85:8554/camera):&#xA;  Input stream #0:0 (video): 0 packets read (0 bytes);&#xA;  Total: 0 packets (0 bytes) demuxed&#xA;Output file #0 (output/out%03d.mp4):&#xA;  Output stream #0:0 (video): 0 packets muxed (0 bytes);&#xA;  Total: 0 packets (0 bytes) muxed&#xA;0 frames successfully decoded, 0 decoding errors&#xA;

    &#xA;

    Additional info :

    &#xA;

      &#xA;
    • The stream is up and running. ffplay rtsp://192.168.1.85:8554/camera opens normally
    • &#xA;

    • The exact command (from ENTRYPOINT) on the host, works perfectly fine (it generates files for every 30 seconds).
    • &#xA;

    • From inside the container, I can ping 192.168.1.85 (it is actually localhost)
    • &#xA;

    • Setting -analyzeduration 1000 does not fix the issue
    • &#xA;

    &#xA;

    Why is the container stopping for no reason ?

    &#xA;