Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (49)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (4759)

  • Java Playing Sound From YouTube

    8 mai 2022, par etkmlm

    I'm in a LWJGL game and want to play sound from YouTube. I have the stream link but can't play it anymore.

    


    public void playMusic(Music m) throws IOException {
    String uri = m.getUrl();
    URL url = new URL(uri);
    try{
        Process p = new ProcessBuilder().command("ffmpeg.exe", "-i", uri, "-acodec", "pcm_u8", "-ar", "22050", "-f", "wav", "pipe:1").redirectError(ProcessBuilder.Redirect.INHERIT).start();

        AudioInputStream str = AudioSystem.getAudioInputStream(p.getInputStream());
        Clip clip = AudioSystem.getClip();
        clip.open(str);
        clip.start();

    }
    catch (Exception e){
        e.printStackTrace();
    }

}


    


    It throws "Chunk size too big" error. I started ffmpeg alone but in this time, ffmpeg throws "invalid argumentsize=" error.

    


  • Downloading a video from youtube and convert to MP4

    24 mars 2019, par Ilyes GHOMRANI

    I created a script to download a youtube video and extract an images from it for each period

    screenshotvideo

    def screenshotvideo(url, interval, id, fullduration, title, quality):
       interval = int(interval)
       parsed_t = isodate.parse_duration(fullduration)
       durationseconds=parsed_t.total_seconds()
       iterat=int(durationseconds/int(interval))
       for i in range(0, iterat):
           print(str(id))
           print(str(i))
           print(str(i*interval))
           part(url, time.strftime('%H:%M:%S', time.gmtime(int(i*interval))), "00:00:01", title+"-"+str(id), quality)

    part

    def part(url, starttime, duration, name, quality):
       f = os.popen("ffmpeg $(youtube-dl -f "+quality+" -g '"+url+"' | sed 's/.*/-ss "+starttime+" -i &/') -t "+duration+" -c copy "+name+".mp4")
       now = f.read()
       print(now)
       f = os.popen("ffmpeg -i "+name+".mp4 -ss 00:00:00 -vframes 1 "+name+".jpg")
       now = f.read()
       print(now)
       f = os.popen("rm -rf "+name+".mp4")
       now = f.read()
       print(now)

    so i got the folowing error in the first ffmpeg command

    [mp4 @ 0x55d537f64240] Could not find tag for codec vp8 in stream #0, codec not currently supported in container.

    Could not write header for output file #0 (incorrect codec parameters ?) : Invalid argument

  • Downloading a video from youtube and convert to MP4

    26 mars 2019, par Ghomrani Ilyes

    I created a script to download a youtube video and extract an images from it for each period

    screenshotvideo

    def screenshotvideo(url, interval, id, fullduration, title, quality):
       interval = int(interval)
       parsed_t = isodate.parse_duration(fullduration)
       durationseconds=parsed_t.total_seconds()
       iterat=int(durationseconds/int(interval))
       for i in range(0, iterat):
           print(str(id))
           print(str(i))
           print(str(i*interval))
           part(url, time.strftime('%H:%M:%S', time.gmtime(int(i*interval))), "00:00:01", title+"-"+str(id), quality)

    part

    def part(url, starttime, duration, name, quality):
       f = os.popen("ffmpeg $(youtube-dl -f "+quality+" -g '"+url+"' | sed 's/.*/-ss "+starttime+" -i &/') -t "+duration+" -c copy "+name+".mp4")
       now = f.read()
       print(now)
       f = os.popen("ffmpeg -i "+name+".mp4 -ss 00:00:00 -vframes 1 "+name+".jpg")
       now = f.read()
       print(now)
       f = os.popen("rm -rf "+name+".mp4")
       now = f.read()
       print(now)

    so i got the folowing error in the first ffmpeg command

    [mp4 @ 0x55d537f64240] Could not find tag for codec vp8 in stream #0, codec not currently supported in container.

    Could not write header for output file #0 (incorrect codec parameters ?) : Invalid argument