Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (75)

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

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (9807)

  • FFmpeg uses too much memory when repeating split, select, overlay

    13 novembre 2020, par finefoot

    I'm running

    


    ffmpeg -i input.mp4 -filter_complex_script script.txt output.mp4


    


    with the following minimal example script :

    


    split[tmp],
select='between(t,1,2)',
select='between(n,0,1)',
[tmp]overlay=enable='between(t,1,2)':eof_action=repeat,
split[tmp],
select='between(t,3,4)',
select='between(n,0,1)',
[tmp]overlay=enable='between(t,3,4)':eof_action=repeat


    


    What I want to do is to take 1 frame at a certain position and repeat it for a certain duration, basically "pausing" the video, while overwriting to keep the same output length. In the example, I'm doing this twice : I'm using split[tmp] to get a second input stream to work on, select the time at position 00:01 with select='between(t,1,2)', select the first frame from that position with select='between(n,0,1)' and finally overlay that frame over the input. This repeats for a second time at position 00:03. I have tested this and it does exactly what I'm looking for.

    


    However, in my real script, I'm repeating this about 1000 times for different positions in the stream (and for shorter durations than 1 second) which results in running out of memory. What am I doing wrong ? What can I do to optimize ?

    


  • avcodec/vc2enc : Simplify writing dirac golomb codes

    8 mars, par Andreas Rheinhardt
    avcodec/vc2enc : Simplify writing dirac golomb codes
    

    The earlier code used a loop to determine the number of bits used
    and called ff_log2() on a power of two (and it would be easy to
    keep track of the exponent of said power-of-two) ; neither GCC nor
    Clang optimized the loop away or avoided the ff_log2().
    This patch replaces the loop and the log2 with a single av_log2().

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

    • [DH] libavcodec/vc2enc.c
  • Youtube-dl cannot read various set on batch script

    18 novembre 2019, par Al UrbaseR Blongtous

    I created an batch-script that positioned with youtube-dl and ffmpeg. I set several set to put URL and Video/Audio ID. Here my script that I simplified

    @echo off
    cd /d %root%\YT
    color 0a
    title Youtube Downloader
    setlocal enableDelayedExpansion
    set q=^"
    color 0a

    :submenu
    echo Please enter URL.
    set /p f1="URL: "
    echo Checking ID...
    youtube-dl -F %f1%
    ping localhost -n 2 >nul
    goto menu

    :menu
    echo.
    echo Script created by UrbaseR
    echo ___________________________________________________________
    echo.
    echo                          MENU
    echo ___________________________________________________________
    echo OS Windows - %ComputerName%
    echo.
    echo M E N U
    echo Press 1 to Download Best version
    echo Press 2 to Download Custom version + convert
    echo Press 3 to Exit

    set /p you=">"
    if %you%==1 goto 1
    if %you%==2 goto 2
    if %you%==3 goto 3

    cls
    echo *********************************
    echo Sorry invalid number!
    echo *********************************
    ping localhost -n 2 >nul
    goto menu

    :1
    echo Downloading...
    youtube-dl -f best %f1%
    echo.
    echo Done
    ping localhost -n 2 >nul
    cls
    goto submenu

    :2
    set /p id1="Insert Video ID: "
    set /p id2="Insert Audio ID: "
    echo Downloading Video..
    youtube-dl -f %id1% -ciw -o "vid.%(ext)s" -v --write-sub %f1%
    echo.
    echo Video Done
    ping localhost -n 2 >nul
    echo Downloading Audio..
    youtube-dl -f %id2% -ciw -o "aud.%(ext)s" -v %f1%
    echo.
    echo Audio Done
    ping localhost -n 2 >nul
    echo Converting Video
    ffmpeg -i "vid.%(ext)s" -i "aud.%(ext)s" -c:v copy -c:a aac -strict experimental "input.mkv"
    echo Converting Done
    ping localhost -n 4 >nul
    cls
    goto submenu

    :3
    exit

    First and third option execute successfully. Second option will appear the message like this :

    Usage : youtube-dl [OPTIONS] URL [URL...]
    youtube-dl : error : You must provide at least one URL.

    Type youtube-dl —help to see a list of all options.

    Note : Since I stuck on first and second stage of youtube-dl, ffmpeg may not work (I have not tested it yet).

    Can you help me ?