Recherche avancée

Médias (91)

Autres articles (85)

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

  • 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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (11906)

  • Dissappearing characters in youtube-dl, ffmpeg, and windows

    4 juin 2014, par user3407161

    so what happens is that if the video title has a symbol that isn’t supported by your current locale then ffmpeg won’t be able to get to that file properly.

    Here’s one example

    ►2 HOURS BEST MELODIC DUBSTEP MIX APRIL 2013◄ ヽ( ≧ω≦)ノ

    as you may or may not be able to see, lots of symbols from unicode.

    The problem is that in cmd and ffmpeg, though cmd can see

    ►2 HOURS BEST MELODIC DUBSTEP MIX APRIL 2013◄ ヽ( ≧ω≦)ノ

    ffmpeg only sees

    2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013 ヽ(≧ω≦)ノ

    This is the exact error message (i’m using youtube-dl)

    [ffmpeg] Adding metadata to 'C:\Music\ToBeDone\2014-06-01\►2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013◄ ヽ( ≧ω≦)ノ.mp4'
    ERROR: C:\Music\ToBeDone\2014-06-01\2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013 ヽ(≧ω≦)ノ.mp4: No such file or directory
    ERROR: WARNING: unable to obtain file audio codec with ffprobe

    After some research i’ve determined that by changing the system locale you can change which symbols cmd can support.

    However

    Used to appear as a box in a question mark in United states locale. In japanese locale it appears as it does on your screen right now.

    the problem with

    is that even though it’s not appearing as a question mark in a box (it’s appearing as how it should be), ffmpeg (or cmd) can’t detect it properly.

    (Refer back to the error message, i’ll repost it below.)

    [ffmpeg] Adding metadata to 'C:\Music\ToBeDone\2014-06-01\►2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013◄ ヽ( ≧ω≦)ノ.mp4'
    ERROR: C:\Music\ToBeDone\2014-06-01\2 HOURS DUBSTEP_DRUMSTEP MIX AUGUST 2013 ヽ(≧ω≦)ノ.mp4: No such file or directory
    ERROR: WARNING: unable to obtain file audio codec with ffprobe

    So as you can see, I think cmd passed on the symbol correctly to ffmpeg seeing from the adding metadata line, but when it actually does the operation ffmpeg loses

    ► and ◄

    Could this be a bug with ffmpeg ? MY workaround so far with incompatible symbols was to change the system locale, but I don’t think i can do that with these two symbols...

    These are the unique characters that i need to have a locale that supports

    Ö

    ◄ ヽ( ≧ω≦)ノ

    ( ͡° ͜ʖ ͡°)

    (_≧∇≦)



    More info on the problem in general

    https://github.com/rg3/youtube-dl/issues/2999

    and this is what’s going on (Batch Script)

    @echo off
    setlocal
    cd C:\youtube-dl

    set /p "var1=Enter URL: " %=% pause
    if defined var1 set "var1=%var1:"=%"
    set "var2=%date:/=-%"
    set "var3=%%(title)s.%%(ext)s"
    youtube-dl "%var1%" -ci -o "C:\Music\ToBeDone\%var2%\%var3%" -f best -x --no-mtime --add-metadata
    youtube-dl "%var1%" --skip-download -ci -o "C:\Music\ToBeDone\%var2%\Thumbnail\%var3%" --write-   thumbnail
    youtube-dl "%var1%" --skip-download -ci -o "C:\Music\ToBeDone\%var2%\Description\%var3%" --write-description
  • Piping pi's opencv video to ffmpeg for Youtube streaming

    15 juin, par Mango Plaster

    This is a small python3 script reading off picam using OpenCV :

    


    #picamStream.py

import sys, os
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import cv2
 
# initialize the camera and grab a reference to the raw camera capture
camera = PiCamera()
camera.resolution = (960, 540)
camera.framerate = 30
rawCapture = PiRGBArray(camera, size=(960, 540))
 
# allow the camera to warmup
time.sleep(0.1)
 
# capture frames from the camera
for frame in camera.capture_continuous(rawCapture, format="bgr", use_video_port=True):

    image = frame.array
 
    # ---------------------------------
    # .
    # Opencv image processing goes here
    # .
    # ---------------------------------

    os.write(1, image.tostring())
 
    # clear the stream in preparation for the next frame
    rawCapture.truncate(0)

# end


    


    And I am trying to pipe it to ffmpeg to Youtube stream

    


    My understanding is that I need to reference below two commands to somehow come up with a new ffmpeg command.

    


    


    Piping picam live video to ffmpeg for Youtube streaming.

    


    raspivid -o - -t 0 -vf -hf -w 960 -h 540 -fps 25 -b 1000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/[STREAMKEY]

    


    


    


    Piping OPENCV raw video to ffmpeg for mp4 file.

    


    python3 picamStream.py | ffmpeg -f rawvideo -pixel_format bgr24 -video_size 960x540 -framerate 30 -i - foo.mp4

    


    


    So far I've had no luck. Can anyone help me with this ?

    


  • Downloading videos one by one with youtube-dl

    9 août 2019, par puter

    Im trying to execute the youtube-dl download command from node which is asynchronous and I have a bunch of videos that gets downloaded each time so I want to execute the downloadClip command as soon as each one finishes. How do I call this function in a chain like fashion so that only one video gets downloaded at a time ?

    var downloadClip = function( videoID, channelPath ) {
       var args = [
           '-o', config.fileName,
           '--download-archive', channelPath + '/' + config.archiveFile,
       ];

       var options = {
           cwd: channelPath
       };

       return new Promise( function( resolve, reject ) {
           ytdl.exec( videoID, args, options, function( err, output ) {
               if ( err ) {
                   reject( err );
               } else {
                   resolve( output );
               }
           } );
       } );
    };