Recherche avancée

Médias (5)

Mot : - Tags -/open film making

Autres articles (77)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (7990)

  • Fallback input for ffmpeg

    22 septembre 2018, par Daniel Cantarin

    I’m doing some transcoding from a third-party remote input stream that I do not control.

    This input stream has errors from time to time, that I would like to mitigate before sending the stream to my transcoding pipeline, avoiding this way some possible problems in the output.

    I have several ideas regarding different problems. But the most basic scenario I would like to set up is as follows : when the stream is down, or it somehow loses some frames, I want to fill that video gap with a secondary input (like a blank screen, for example).

    For this simple task, I would like to use ffmpeg. I know it can mix, let’s say, an input stream with a fullscreen black square static image. However, I have to deal with this other condition : ffmpeg would run in the same infraestructure for the actual transcoding pipeline. That infraestructure must use its computing power for rendering the output. So, whatever ffmpeg command I end up using should use the minimum possible computing power.

    My actual problem : if I use -vcodec copy, in order to use minimum CPU, I can’t alter the original stream. But if I alter the original stream (by mixing it with some other stream), the operation uses CPU.

    My question : Is there a way to use -vcodec copy, but with a fallback input (instead of a mixed one) for when there are video gaps in the primary stream ?

    Thanks in advance.

  • Optimize script commands FFMPEG with Limit CPU usage

    30 novembre 2019, par Arsal Imam

    I am working on a audio/video uploading and streaming project.

    Process :

    I have 2 audio files and a video file which I am processing with FFMPEG. I need to process these audio and video files in the below mentioned way :

    1. Generating thumbnail from the video file.

    2. Merging audio files with each other.

    3. then, merging the mixed audio file with the video file.

    4. after that, adding watermark over the video file.

    5. at last, splits video file into small chunks for streaming

    ISSUE :

    Everything is working fine but the issue is that all this process consuming very high CPU and TIME to complete. Is there anyway to optimize the FFMPEG commands to run in fastly. Right now, it is very slow !!

    CODE :

    I have created a bat file to complete the above mentioned process. Below is the source of the batch file which is executing over nodejs server.

    @echo off

    echo "########################################### Uploading Video #############################################"

    :GETOPTS
    if /I %~1 == --app-path set APP_PATH=%2& shift
    if /I %~1 == --video-name set VIDEO_NAME=%2& shift
    if /I %~1 == --do-merge set IS_DO_MERGE=%2& shift
    if /I %~1 == --audio-name set AUDIO_NAME=%2& shift
    if /I %~1 == --bg-beat-name set BEAT_NAME=%2& shift
    shift
    if not (%1)==() goto GETOPTS

    set USER_DIR=%APP_PATH%data\content\userContent\
    set BEAT_FILE_URI=%APP_PATH%data\content\beats\%BEAT_NAME%
    set FFMPEG=%APP_PATH%data\cmd\ffmpeg\bin\ffmpeg.exe
    set VIDEO_PATH=%USER_DIR%%VIDEO_NAME%
    set MERGED_AUDIO_PATH=%VIDEO_PATH%_mix_audio.aac
    set RESULTANT_PATH=%VIDEO_PATH%_finalized.mp4
    set WATER_MARKED_PATH=%VIDEO_PATH%_finalized_watermark.mp4

    echo "Taking screenshot - %VIDEO_PATH%"
    %FFMPEG% -threads 3 -loglevel panic -y -ss 00:00:01 -i %VIDEO_PATH% -vframes 1 -filter:v scale="500:-1" %VIDEO_PATH%_screenshot.jpg
    if "%IS_DO_MERGE%" == "true" (

     echo "Combining audio with music file"
     echo "OUTPUT: %MERGED_AUDIO_PATH%"
     %FFMPEG% -threads 3 -loglevel panic -y -i %USER_DIR%%AUDIO_NAME% -i %BEAT_FILE_URI% -filter_complex amix=inputs=2:duration=shortest:dropout_transition=3 -shortest %MERGED_AUDIO_PATH%

     echo "Merging Audio & video"
     %FFMPEG% -threads 3 -loglevel panic -y -i %VIDEO_PATH% -i %MERGED_AUDIO_PATH% -c:v libx264 -preset ultrafast -crf 22 -tune zerolatency -c:a aac -strict experimental -map 0:v:0 -map 1:a:0 -shortest %RESULTANT_PATH%

     echo "Adding watermark"
     %FFMPEG% -threads 3 -loglevel panic -y -i %RESULTANT_PATH% -i %APP_PATH%data\assets\watermark.png -filter_complex "overlay=x=(main_w-overlay_w)/2:y=30" -movflags +faststart %WATER_MARKED_PATH%

     #ffmpeg -i input.mp4 -profile:v baseline -level 3.0 -s 640x360 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls index.m3u8

     #%FFMPEG% -threads 3 -loglevel panic -y -i %WATER_MARKED_PATH% -i %APP_PATH%data\assets\watermark.png -filter_complex "overlay=x=(main_w-overlay_w)/2:y=30" %WATER_MARKED_PATH%

     echo "--------------------------------- process completed with no errors ----------------------------------"

    ) else (
     echo "No need to merge as --do-merge is false"

     echo "Adding watermark"
     %FFMPEG% -threads 3 -loglevel panic -y -i %VIDEO_PATH% -i %APP_PATH%data\assets\watermark.png -filter_complex "overlay=x=(main_w-overlay_w)/2:y=30" %WATER_MARKED_PATH%
    )
    echo "######################################  Uploading Video Ended  ##########################################"
  • Separate stereo audio file into 3 files containing Left, Center, and Right with FFMPEG

    11 mai 2022, par user319249

    I'm not looking to separate a stereo track into L/R. Most rock is mixed LCR and some applications have the ability to isolate vocals this way since vocals tend to be mixed in the Center.

    


    Can FFMPEG separate a stereo audio file into three files containing hard right, hard left, and center ?