Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (66)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

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

  • pipe youtube-dl to ffmpeg within a script

    28 février 2016, par user556068

    This is an expansion to an earlier question I asked which you can find here. I have been piping youtube-dl into a script via youtube-dl -iga /path/to/myFile.txt | myscript.sh which reads a text file of urls and extracts another set of urls to the actual video content being downloaded. Everything works great but there is much room for improvement.

    Instead of piping youtube-dl into the script I would like to include the youtube-dl command within the script itself. Here is the full script I have up to this point.

    #!/bin/bash  

    inArgs='-i'                
    outArgs='-c copy -y'        
    dir="$HOME/Movies/fftest/"
    outFile="fftest_${count}"      
    ext='.mp4'        

    #### not sure about following 2 lines

    youtube-dl -iga /path/to/myFile.txt > /path/to/myFile2.txt
    exec 0to/myFile2.txt

    count=0
    if [ ! -d "${dir}" ];
    then
    mkdir -p "${dir}"
    fi      
    cd || "${HOME}"

    while read lineIn
    do
    {
    (( count ++ ))
    echo ffmpeg $inArgs $lineIn $outArgs "$dir$outFile$count$ext" &
    sleep 1
    }  
    done  

    After playing around with it a little I added the following lines. Code has been edited to reflect these changes.

    youtube-dl -iga /path/to/myFile.txt > /path/to/myFile2.txt
    exec 0to/myFile2.txt

    This does work but it’s also throwing up some new error from ffmpeg that I haven’t yet encountered until now. I test by placing echo before the ffmpeg command. Everything looks fine doing that so I’m not really sure what the issue is at this point.

    So there are a couple things i would like to accomplish that I haven’t been able to figure out.

    • Have I properly redirected the input and do I need to do anything later in the script to put things back as they were before the script was called or will that occur naturally on its own when exiting the script ?

    • As it currently is, the script will overwrite any files previously created every time it is called. This is fine for testing purposes but not ideal beyond that. What I am looking for is a way to start writing the next file in the number sequence based on the last file in the directory. So if one time it creates 8 files named fftest_1.mpr - fftest_8.mp4 the second time when it is called to create 14 new files, it will know to start writing a file labeled fftest_9.mp4 - fftest_22.mp4. This is however beyond my abilities at the moment. Is there a way to do this ?

    • Another issue I’ve had is when trying kill the script as it runs in the background. Ctrl C doesn’t have any effect as far as I can tell. Is there an alternative kill command or key press I can use to ensure an immediate exit if necessary. Or a way to assign such within the script itself ?

    • Also any critiques, suggestions, alternatives or additions to any part of this script are very much welcomed and appreciated. This is all very new for me and I’m trying to learn more everyday. If any part of what I said didn’t make sense I will be happy to clarify.

  • Streaming a WebPage to YouTube using FFMpeg

    30 mars 2020, par Pedro Lobito

    I’m trying to stream a webpage to YouTube using phantomjs and ffmpeg.
    Long question short :

    This works. The video is saved to test.flv :

    phantomjs runner.js|ffmpeg -y -f image2pipe -r 10 -s 1280x720 -i - -deinterlace -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -r 10 -g 20 -vb 400k -maxrate 400k -minrate 400k -bufsize 800k -threads 6 -q:v 0 -t 10 -f flv test.flv

    This doesn’t. Despite no errors, nothing is streamed to YouTube.

    phantomjs runner.js|ffmpeg -f image2pipe -r 10 -s 1280x720 -i - -deinterlace -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -r 10 -g 2 -vb 400k -maxrate 400k -minrate 400k -bufsize 800k -threads 6 -q:v 0 -f flv rtmp://a.rtmp.youtube.com/live2/xxxxxxx

    Remarks :

    1. I’m aware phantomjs isn’t actively developed anymore, but this doesn’t seem
      relevant since the phantomjs script works as intended ;
    2. phantomjs script : runner.js ;
    3. I’ve tried different ffmpeg settings, like frame-rates, bit-rates and bufsize to no avail.
    4. Both commands are similar, but the 1st outputs to local-file test.flv while 2nd to YouTube ;
    5. I’ve used the YouTube streaming key on OBS Studio and it works normally ;
    6. ffmpeg output while streaming to YouTube :

    frame=   13 fps=0.0 q=42.0 size=      94kB time=00:00:00.50 bitrate=1531.0kbits/                                                                   frame=   18 fps= 16 q=40.0 size=     130kB time=00:00:01.00 bitrate=1063.6kbits/                                                                   frame=   23 fps= 14 q=44.0 size=     149kB time=00:00:01.50 bitrate= 810.8kbits/

    1. ffmpeg version 4.2.1-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers running on Ubuntu-1804

    Any idea of what can be wrong ?

  • ffmpeg won't livestream to youtube

    4 novembre 2019, par HeyItsDan

    I’m trying to write a simple "script" that allows me to stream a music radio to YouTube or any other platform but whenever I’m trying to test it, it won’t let me livestream at all, if anyone got a solution to this it would be very appreciated !

    StreamURL="xxxxxxxxxxxxxxxxxxxx"
    Key="xxxxxxxxxxxxxxxxxxxxxxxx"
    BackgroundPath="bg.jpg"
    NPPath="np.txt"

    ffmpeg \
    -re \
    -loop 1 \
    -framerate $FPS \
    -i $BackgroundPath \
    -s 1920x1080 \
    -ab 128k \
    -maxrate 2048k \
    -bufsize 2048k \
    -vf "drawbox=0:0:1920:100:black:fill, drawtext='fontfile=Arial\:style=Bold Italic:text=Now Playing':fontcolor=white:fontsize=35:x=20:y=20, drawtext=textfile='$NPPath':fontcolor=white:fontsize=28:x=20:y=58" \
    -c:a aac \
    -f flv $StreamURL$Key```