Recherche avancée

Médias (91)

Autres articles (96)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (6996)

  • Facing libavfilter error while doing cmake for NVIDIA-DALI library on ubuntu version

    27 avril 2019, par vamsi

    — Installed OpenCV 3.4.4 which NVIDIA DALI recommended.
    — below link for NVIDIA DALI reference.
    https://docs.nvidia.com/deeplearning/sdk/dali-developer guide/docs/quickstart.html
    — below link for OpenCV installation :
    https://www.pyimagesearch.com/2018/05/28/ubuntu-18-04-how-to-install-opencv/

    —NVIDIA DALI using below versions :
    -DALI version : 0.10.0dev
    -Found PythonInterp : /usr/bin/python (found version "2.7.15")
    -Found CUDA : /usr (found suitable version "9.1", minimum required is "8.0")
    -Found OpenCV : /usr/local/include ;/usr/local/include/opencv (found suitable version "3.4.4", minimum required is "2.0")

    ---This is the error(No package ’libavfilter’ found) i am getting.

    • Found CUDA : /usr (found suitable version "9.1", minimum required is "8.0")
      - Building WITHOUT nvJPEG
      - Building WITHOUT JpegTurbo
      - Found OpenCV : /usr/local/include ;/usr/local/include/opencv (found suitable version "3.4.4", minimum required is "2.0")
      OpenCV libraries :
      opencv_core ;opencv_imgproc ;opencv_imgcodecs
    • Found PythonLibs : /usr/lib/x86_64-linux-gnu/libpython2.7.so
      - pybind11 v2.2.4
      - Found Protobuf : /usr/lib/x86_64-linux-gnu/libprotobuf.a ;-lpthread (found suitable version "3.0.0", minimum required is "2.0")

    • Enabling TensorFlow TFRecord file format support

    • Found PkgConfig : /usr/bin/pkg-config (found version "0.29.1")
    • Checking for module ’libavformat’
    • Found libavformat, version 58.20.100
      - Checking for module ’libavcodec’
    • Found libavcodec, version 58.35.100
      - Checking for module ’libavfilter’
      No package ’libavfilter’ found

    CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message) :
    A required package was not found
    Call Stack (most recent call first) :
    /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
    cmake/Dependencies.cmake:176 (pkg_check_modules)
    CMakeLists.txt:45 (include)
    - Configuring incomplete, errors occurred !
    See also

  • ffmpeg add long text in multiline automatically

    30 juillet 2016, par Pranoy C

    I am using ffmpeg to add text to a video. Currently this command works for me :

    ffmpeg -y -i cut.mp4 -vf drawtext="fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: text='Stack Overflow': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=(w-text_w)/2: y=main_h-(text_h*3)" -codec:a copy output.mp4
    1. If I have a very long text "Stack Overflow is awesome and this is a test of long text", is there a way to automatically make it wrap without me having to insert new line characters in the text ?

    Currently such a text just goes off the screen if I don’t have newline characters.

    1. Is there a way to specify maximum width & height for the text ?
  • Why does ffmpeg return "No such file or directory"

    4 juillet 2020, par JackNewman

    I'm trying to split a video file into 2 second increments and then merge the video back together.

    


    source_vid_path = r"C:\SplitAndMergeVids\Before\before.mp4"
ffcat_path = r'C:\SplitAndMergeVids\Chunk\video.ffcat'
chunks_path = r'C:\SplitAndMergeVids\Chunk\chunk-%03d.mp4'
segments_time = '2'
cmd_input = rf'ffmpeg -fflags +genpts -i {source_vid_path} -map 0 -c copy -f segment -segment_format mp4 -segment_time {segments_time} -segment_list {ffcat_path} -reset_timestamps 1 -v error {chunks_path}'
output = str(subprocess.run(cmd_input, shell=True, capture_output=True))
print(output)

output_path = r'C:\SplitAndMergeVids\Output\output.mp4'
second_input = rf'ffmpeg -y -v error -i {ffcat_path} -map 0 -c copy {output_path}'
output = str(subprocess.run(second_input, shell=True, capture_output=True))
print(output)


    


    First subprocess runs perfectly although the second outputs returns

    


    "Impossible to open 'chunk-000.mp4'\r\nC:\\SplitAndMergeVids\\Chunk\\video.ffcat: No such file or directory".


    


    Full output looks like

    


    CompletedProcess(args='ffmpeg -fflags +genpts -i C:\\SplitAndMergeVids\\Before\\before.mp4 -map 0 -c copy -f segment -segment_format mp4 -segment_time 2 -segment_list C:\\SplitAndMergeVids\\Chunk\\video.ffcat -reset_timestamps 1 -v error C:\\SplitAndMergeVids\\Chunk\\chunk-%03d.mp4', returncode=0, stdout=b'', stderr=b'')
CompletedProcess(args='ffmpeg -y -v error -i C:\\SplitAndMergeVids\\Chunk\\video.ffcat -map 0 -c copy C:\\SplitAndMergeVids\\Output\\output.mp4', returncode=1, stdout=b'', stderr=b"[concat @ 0000028691a6c6c0] Impossible to open 'chunk-000.mp4'\r\nC:\\SplitAndMergeVids\\Chunk\\video.ffcat: No such file or directory\r\n")


    


    When I run cmd_input and second_input manually in cmd, everything functions perfectly. I don't understand how in the first command I am making a file at "ffcat_path", then in the second command I'm using the same "ffcat_path" and it returns "No such file or directory" when it certainly does exist.