Recherche avancée

Médias (91)

Autres articles (33)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (4487)

  • Python threading module on windows after session logout

    1er décembre 2013, par e271p314

    I wrote a code which starts to record screen capture from the second it identifies mouse movement until it identifies the mouse didn't move for a predefined time (10 seconds).
    In python, on windows, how to wait until mouse moves ?
    If, I'm logged in to the session the code works fine, i.e. it starts and stops on time and records the screen capture. But, if I logout, I expect the script to identify that the mouse doesn't move and stop recording. Instead, the code doesn't stop and when I login again (long after the 10 seconds passed), the screen capture (from the previous session) keeps running, yelling the rt buffer is full and it keeps running until I close the cmd console even I expect it to work for 10 seconds (at least when I'm logged in). Any idea what is the issue ? I feel like it is something between the threading module and the session logout but I could be completely wrong about this.

  • How do you merge an audio mp4 and video mp4 with ffmpeg in python 3 ?

    29 septembre 2020, par myth0s

    I'm creating a script in python, that at one point needs to take two files, an audio mp4 file and video mp4 file, and merge them together. They are both of the same length, and the video file matches with the audio file. However, I can't seem to get them to merge.

    


    I first tried :

    


    input_video = ffmpeg.input(onlyVidPath + "/" + inputVidTitle + ".mp4")
input_audio = ffmpeg.input(audioPath + "/" + inputAudTitle + ".mp4")
fullOut = ffmpeg.output(input_video, input_audio, vidPath, f='mp4', vcodec='copy', acodec='aac', strict='experimental')
fullOut.run()


    


    Which gave a long Traceback error, that seemed to go through the ffmpeg library, and finally gave the error "FileNotFoundError : [WinError 2] The system cannot find the file specified"

    


    That didn't work.
Next I commented that out (except for input_video and input_audio), and tried this :

    


    ffmpeg.concat(input_video, input_audio, v=1, a=1).output(vidPath, f='mp4', vcodec='copy').run()


    


    This went through the same error, ending with "FileNotFoundError : [WinError 2] The system cannot find the file specified".

    


    Am I using this correctly ? How do I merge two files, one video only, one audio only, in python with ffmpeg ?

    


  • I can't configure OpenCV to use FFMPEG in python docker image

    2 avril 2024, par Jrneliodias

    I am attempting to create a Python Docker image to utilize OpenCV for processing video frame by frame, but I am encountering difficulties with the codec. Gives this erro :

    


    [ERROR:0@38.410] global cap_ffmpeg_impl.hpp:3130 open Could not find encoder for codec_id=27, error: Encoder not found [ERROR:0@38.410] global cap_ffmpeg_impl.hpp:3208 open VIDEOIO/FFMPEG: Failed to initialize VideoWriter

    


    my docker file :

    


    # Use a base image with the necessary dependencies
FROM python:3.9-slim

# Install ffmpeg and other dependencies
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6  -y


# Set the working directory inside the container
WORKDIR /app/ai_model

# Copy the requirements file to the working directory
COPY requirements.txt .


RUN apt-get update && apt-get install -y postgresql-server-dev-all

# Install the required dependencies
RUN pip install --upgrade pip && \
    grep -v -e opencv requirements.txt | pip install --no-cache-dir -r /dev/stdin && \
    pip install  --no-cache-dir onnxruntime-gpu==1.14.0 && \
    pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application code to the working directory
COPY . .

# Expose the port on which the app will run
EXPOSE 8080

# Define the command to run the app
CMD ["python", "app.py"]


    


    `

    


    I am aware that OpenCV does not inherently support the h264 codec, yet I require video support for HTML player integration. I have found that when running on Windows, utilizing the 'av1' codec with 'openh263-1.8.0-win64.dll' from Cisco resolves the issue.Cisco

    


    Consequently, I have endeavored to incorporate the same codec into the Python Docker image, but to no avail. The container reports an error indicating that it cannot locate the codec.

    


    Thanks for your time.