Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (103)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (14507)

  • How to setup ffmpeg in docker container

    15 novembre 2022, par TorR

    I want to compress the video from project directory using ffmpeg in python

    


    the video is saved from cv2.VideoCapture(rtsp_url)

    


    Normally it run without problem in my local machine, but when I dockerize my app it seems docker container can't recognize ffmpeg or I missed something.

    


    def compress(name):
    with open(name) as f:
        output = name[0:-4] + "-f"+ ".mp4"
        input = name
        subprocess.run('ffmpeg -i ' + input + ' -vcodec libx264 ' + output)

video = cv2.VideoCapture(rtsp_url) # This is where the video comming from
fileName = saveToProjDir(video) # Save the video to project directory and return the name
compress(fileName) # Compress the video



    


    It throws exception

    


    
Exception in thread Thread-8 (compress):
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/app/main.py", line 59, in compress
    subprocess.run('ffmpeg -i ' + input + ' -vcodec libx264 ' + output)
  File "/usr/local/lib/python3.11/subprocess.py", line 546, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/subprocess.py", line 1022, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.11/subprocess.py", line 1899, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg -i cam1_2022-11-15125845.avi -vcodec libx264 cam1_2022-11-15125845-f.mp4'



    


    This is how I docker my python app.

    


    
FROM python:3.11.0

WORKDIR /app/

ENV VIRTUAL_ENV = /env
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

COPY requirements.txt .

RUN pip install -r requirements.txt
RUN apt-get -y update
RUN apt-get install ffmpeg libsm6 libxext6  -y

ADD main.py .
CMD ["python","/app/main.py"]



    


  • Errors when transcoding H264 into FLV container using libav

    12 mars 2019, par Jacko

    I have a program that encodes video and audio using H264 and AAC.
    I am adding a layer that feeds the encoded packets to libav in FLV
    container, and then sends to fflplay as receiver.

    Audio is working, but video triggers these warnings ;

    [NULL @ 0x7f460c01e380] missing picture in access unit with size 1673
    [h264 @ 0x7f460c01e380] Invalid NAL unit 0, skipping.
    [h264 @ 0x7f460c01e380] no frame!
    [h264 @ 0x7f460c01e380] missing picture in access unit with size 3286
    [h264 @ 0x7f460c01e380] Invalid NAL unit 22, skipping.
    [h264 @ 0x7f460c01e380] No start code is found.
    [h264 @ 0x7f460c01e380] Error splitting the input into NAL units.
    [h264 @ 0x7f460c01e380] sps_id 24 out of range0KB sq=    0B f=0/0  
    [h264 @ 0x7f460c01e380] missing picture in access unit with size 3369
    [h264 @ 0x7f460c01e380] Invalid NAL unit 22, skipping.
    [h264 @ 0x7f460c01e380] No start code is found.
    [h264 @ 0x7f460c01e380] Error splitting the input into NAL units.
    [h264 @ 0x7f460c01e380] missing picture in access unit with size 3196
    [h264 @ 0x7f460c01e380] Invalid NAL unit 22, skipping.
    [h264 @ 0x7f460c01e380] No start code is found.
    [h264 @ 0x7f460c01e380] Error splitting the input into NAL units.
    [h264 @ 0x7f460c01e380] missing picture in access unit with size 3084
    [h264 @ 0x7f460c01e380] Invalid NAL unit 22, skipping.
    [h264 @ 0x7f460c01e380] No start code is found.
    [h264 @ 0x7f460c01e380] Error splitting the input into NAL units.
    [h264 @ 0x7f460c01e380] missing picture in access unit with size 3491
    [h264 @ 0x7f460c01e380] Invalid NAL unit 22, skipping.
    [h264 @ 0x7f460c01e380] no frame!

    Not sure how to troubleshoot this - hoping it is just a setting mismatch between libx264 and libav.

  • tests/fate/matroska : Add container cropping test

    16 mai, par Andreas Rheinhardt
    tests/fate/matroska : Add container cropping test
    

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] tests/fate/matroska.mak
    • [DH] tests/ref/fate/matroska-crop