Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (111)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • 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

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

Sur d’autres sites (14776)

  • Batch Script + FFmpeg — Use FOR loop to pipe AND concat all files found except last file

    11 octobre 2020, par slyfox1186

    Im trying to convert all '.mp4' files in a folder into '.ts' files so I can use FFmpeg.exe to combine them all into one long '.mp4' video.

    


    I have to use the concat command to combine the .ts files when using ffmpeg.

    


    Below is a working line of code to do this the long way.... I want to use a for loop in case I have way more than just 3 files to combine.

    


    ffmpeg.exe -hide_banner -y -i concat:"a.ts|b.ts|c.ts" -c copy -bsf:a aac_adtstoasc "COMBINED.mp4"


    


    I can make this loop work by using the below for command but the last file found can not have a pipe after it | like c.ts" above didn't.

    


        FOR /F "USEBACKQ TOKENS=* DELIMS= ,|" %%I IN ('%%~dpnG.ts') DO (
    SET FNAME=%%~dpnI
    ECHO.
    ECHO !FNAME!
    PAUSE>NUL
    EXIT
)


    


    Does anyone know if it's even possible (maybe with tokens) to do this in a batch file ? If not any suggestions ? PowerShell ?

    


    In response to Compo's question here is my working script :

    


    @ECHO OFF
SETLOCAL
COLOR 0A
TITLE CONCAT MULTIPLE MP4 FILES

PUSHD "%~dp0"

SET FF="C:\MAB\local64\bin-video\ffmpeg.exe"

:: SET VIDEO NAME WITHOUT EXTENSION (.MP4)
SET IN01=a
SET IN02=b
SET IN03=c
SET COMBINED=FULL

:: CREATE TEMP .TS VIDEOS OF THE FILES YOU WANT TO COMBINE
%FF% -hide_banner -y -i "%IN01%.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts "%IN01%.ts"
%FF% -hide_banner -y -i "%IN02%.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts "%IN02%.ts"
%FF% -hide_banner -y -i "%IN03%.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts "%IN03%.ts"

:: COMBINE TEMP .TS FILES INTO COMBINED .MP4
%FF% -hide_banner -y -i concat:"%IN01%.ts|%IN02%.ts|%IN03%.ts" -c copy -bsf:a aac_adtstoasc "%COMBINED%.mp4"

ECHO.
PAUSE
EXIT


    


  • Live streaming HLS encoding - FFMPEG av_interleaved_write_frame broken pipe

    10 octobre 2020, par tidpe

    i'm running ffmpeg to encode live streaming.
Sometimes (not always) while encoding I got this error : "av_interleaved_write_frame broken pipe"

    


    My FFMPEG code is something like that :

    


    ffmpeg -re -i rtmp://localhost:587/live/test -rw_timeout 500 -http_persistent 1 -method PUT -f hls -hls_list_size 5 -hls_flags discont_start+omit_endlist -async 1 -vf "scale=640:trunc(ow/a/2)*2" -movflags +faststart -c:a libfdk_aac -ar 48000 -c:v h264 -profile:v main -crf 24 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -preset veryfast -b:v 350k -maxrate 800k -bufsize 1100k  -b:a 96k -vcodec libx264 -hls_segment_filename http://serverwherepulish.com/url/var1/ts/var1_%03d.ts http://serverwherepulish.com/url/var1/1.m3u8 \
-http_persistent 1 -f hls -hls_list_size 5 -hls_flags discont_start+omit_endlist -async 1 -vf "scale=842:trunc(ow/a/2)*2" -movflags +faststart -c:a libfdk_aac -ar 48000 -c:v h264 -profile:v main -crf 24 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -preset veryfast -b:v 800k -maxrate 1200k -bufsize 1700k  -b:a 128k -vcodec libx264 -hls_segment_filename http://serverwherepublish.com/url/var2/ts/var2_%03d.ts  http://serverwherepublish.com/url/var2/2.m3u8 \
-http_persistent 1 -f hls -hls_list_size 5 -hls_flags discont_start+omit_endlist -async 1 -vf "scale=1280:trunc(ow/a/2)*2" -movflags +faststart -c:a libfdk_aac -ar 48000 -c:v h264 -profile:v main -crf 24 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -preset veryfast -b:v 1200k  -maxrate 1900k -bufsize 2400k -b:a 128k -vcodec libx264 -hls_segment_filename http://serverwherepublish.com/url/var3/ts/var3_%03d.ts  http://serverwherepublish.com/url/var3/3.m3u8 


    


    I can't figure out, tried to change few parameters but nothing solve the problem.
Some suggestion ?

    


    Thank you !

    


  • FFmpeg pipe input for concat

    14 octobre 2020, par bluejayke

    I am trying to make a real time video recorder with ffmpeg (not screen recorder, unity player recorder of Specific dimensions)

    


    I am able to get the ARGB data, and so far I have been writing it to a bunch of bmps and then running ffmpegs concat command like

    


    ffmpeg -i files.txt -i pictures/pic%06d.bmp output.mp4

    


    With different codecs etc, and my files.txt is essentially (pseudo)

    


    ffconcat version 1.0 file pic000000.bmp duration 0.016 #etc, basically the durations were generated from time stamps

    


    Anyways that all works believe it or not, but writing the files to disk as bmp (or even encoding them as a compressed format then writing that to disk) takes up a lot of extra time and I would prefer to pipe the data directly to ffmpeg

    


    I know in some cases you can input a file by using the - operator then in whatever programming language the prices was started from pass on the byte data though stdin I am pretty sure, although the problem :

    


    I have only been able to find out how to do this with a set framerate, but not with the concat, and I (think ?) I need to use concat here because it's very important that the images have an exact time stamp on the body to line up with audio, as there will be a slight delay when capturing the frames, and so far I have been calculatabling each frames duration based on their timestamps (and the last one has no duration), in order to line them up perfectly with the audio, but as far as I can find the concat feature seems to require the files to already be written to the disk and then specified in a text file..

    


    So is there any way to get a custom frame rate for each frame without writing the frames to disk first, and just piping them in ? Does concat in any way support - ? Is there another way I can line up the frames with audio ? Do other video recording softwares face similar issues ?