Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (48)

  • 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 (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

Sur d’autres sites (5957)

  • How to concate videos which some have audio and some haven't audio in FFMPEG [duplicate]

    21 juin 2019, par Nikunj Paradva

    What i am doing :->

    I am currently concat videos using FFMPEG. while selecting input videos I don’t know videos have audio stream or not. then i concate that videos with this command which is written below,

    I got this error because of one input have no sound stream

    What i have to do :->

    • how to check that input video have audio or not ?
    • how to concate this video inputs ?(one with audio another with no audio)
    • if possible all this thing in single command ?

    FFMPEG Command :-

    [-y,
      -i, /storage/emulated/0/Received/MP4_20190220_114210.mp4,
      -i, /storage/emulated/0/Received/VID-20190404-WA0010.mp4,
      -strict, experimental,
      -filter_complex, [0:v]scale=iw*min(854/iw\,480/ih):ih*min(854/iw\,480/ih), pad=854:480:(854-iw*min(854/iw\,480/ih))/2:(480-ih*min(854/iw\,480/ih))/2,setsar=1:1[v0];
                       [1:v]scale=iw*min(854/iw\,480/ih):ih*min(854/iw\,480/ih), pad=854:480:(854-iw*min(854/iw\,480/ih))/2:(480-ih*min(854/iw\,480/ih))/2,setsar=1:1[v1];
                       [v0][0:a][v1][1:a] concat=n=2:v=1:a=1,
      -preset, ultrafast,
      /storage/emulated/0/Video/Video_1561115811161.mp4]

    I got this Error While Executing.

    ffmpeg version n4.0-39-gda39990 Copyright (c) 2000-2018 the FFmpeg developers
         built with gcc 4.9.x (GCC) 20150123 (prerelease)
         configuration: --target-os=linux --cross-prefix=/root/bravobit/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/root/bravobit/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-ffprobe --enable-libopus --enable-libvorbis --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-libvpx --enable-libass --enable-yasm --enable-pthreads --disable-debug --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-linux-perf --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --enable-nonfree --enable-network --enable-avresample --enable-avformat --enable-avcodec --enable-indev=lavfi --enable-hwaccels --enable-ffmpeg --enable-zlib --enable-gpl --enable-small --enable-nonfree --pkg-config=pkg-config --pkg-config-flags=--static --prefix=/root/bravobit/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/root/bravobit/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/root/bravobit/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-cxxflags=
         libavutil      56. 14.100 / 56. 14.100
         libavcodec     58. 18.100 / 58. 18.100
         libavformat    58. 12.100 / 58. 12.100
         libavdevice    58.  3.100 / 58.  3.100
         libavfilter     7. 16.100 /  7. 16.100
         libavresample   4.  0.  0 /  4.  0.  0
         libswscale      5.  1.100 /  5.  1.100
         libswresample   3.  1.100 /  3.  1.100
         libpostproc    55.  1.100 / 55.  1.100
       Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Received/MP4_20190220_114210.mp4':
         Metadata:
           major_brand     : iso6
           minor_version   : 1
           compatible_brands: mp42iso6avc1isom
           creation_time   : 2019-02-20T06:12:15.000000Z
         Duration: 00:00:23.46, start: 0.000000, bitrate: 309 kb/s
           Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 426x426, 243 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
           Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 32000 Hz, stereo, fltp, 64 kb/s (default)
       Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Received/VID-20190404-WA0010.mp4':
         Metadata:
           major_brand     : mp42
           minor_version   : 1
           compatible_brands: mp41mp42isom
           creation_time   : 2018-11-24T20:20:48.000000Z
         Duration: 00:00:59.51, start: 0.066667, bitrate: 649 kb/s
           Stream #1:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 640x640, 646 kb/s, 29.98 fps, 30 tbr, 15360 tbn, 60 tbc (default)
           Metadata:
             creation_time   : 2018-11-24T20:20:48.000000Z
             handler_name    : Core Media Video
       Stream specifier ':a' in filtergraph description [0:v]scale=iw*min(854/iw\,480/ih):ih*min(854/iw\,480/ih), pad=854:480:(854-iw*min(854/iw\,480/ih))/2:(480-ih*min(854/iw\,480/ih))/2,setsar=1:1[v0];[1:v]scale=iw*min(854/iw\,480/ih):ih*min(854/iw\,480/ih), pad=854:480:(854-iw*min(854/iw\,480/ih))/2:(480-ih*min(854/iw\,480/ih))/2,setsar=1:1[v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1 matches no streams.

    Your help would be appreciated.

  • Bash script : Cycle script until ffmpeg command restarts successfully

    13 août 2023, par Bellacoda

    I have a IP Camera and the recordings are saved with ffmpeg RTSP into a raspberry pi.

    


    Sometimes, when the electricity shuts off and comes back on, the raspberry boots faster than the IP Camera and the ffmpeg command (saved on a crontab to run every reboot) fails to execute because it can't reach the IP Camera (that is still turning on).

    


    I tried to put a sleep command before the command but that doesn't work either.

    


    It also happened that when the IP Camera reboots, the raspberry closes the command, but when the camera comes back online, I have to manually lauch the command.

    


    Is there a way to make a script that waits to run the ffmpeg command until the camera is fully online (I assume with the $ ? variable for command exit status), and to wait to restart the ffmpeg command when the camera reboots ?

    


    The setup I have now is a crontab :
SHELL=/bin/bash
@reboot sleep 120s ; sudo ffmpeg ...

    


  • I want to generate frames from a CCTV video using FFMPEG and save the frames as the time that they represent

    6 décembre 2014, par Jason Harris

    I am using mac os x terminal.

    So far I have mananaged the following code :

    ffmpeg -i cctvfootage.flv -f image2 -vf fps=fps=1 frames/frame_04d.png    

    The above code creates a frame for every second of the video, but names each frame as frame_0001.png, frame_0002.png, and so on. Although this is helpful, it is not the correct naming structure that I want.

    The date and time that the video footage starts from is 20th November 2014 at 13:46:12.

    The output name I want will be something like frames_20112014_134612.png (frames_DDMMYYYY_HHMMSS) for the first, frames_20112014_134613.png for the second, ect.

    This will then identify each frame as the day and time that the image is taken from.