Advanced search

Medias (91)

Other articles (87)

  • MediaSPIP version 0.1 Beta

    16 April 2011, by

    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 September 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 June 2013, by

    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 profit de (...)

On other websites (9702)

  • Download a part of youtube video using a powershell script

    26 October 2024, by Nguyễn Đức Minh

    I'm writing this Powershell script:

    


    $URL = "https://www.youtube.com/watch?v=KbuwueqEJL0"
$from = 00:06:15
$to = 00:09:17

$cmdOutput = (youtube-dl --get-url $URL) 

ffmpeg -ss $from -to $to -i  -ss $from -to $to -i  output.mkv


    


    This script's purpose is to download a part of a Youtube video. I've set the variable $URL to specify the Youtube URL, while $from and $to is the start and end time of the part I want to download.

    


    $cmdOutput is used to output the stream URL. The output would have two lines: the first one is the URL for the video stream, while the second one is the audio stream URL.

    


    Currently, I don't know how to use the output as a variable and specify the line number of $cmdOutput to put it into the correct stream. I guess and would be replaced by something like $cmdOutput[line 1], and $cmdOutput[line 2], though I know that those are incorrect.

    


    I've consulted this answer, and it is handy for me to write this script. I've also read Boris Lipschitz's answer on how to do the same thing with Python, but his answer does not work.

    


    In that script, the -ss flag inputs the seeking point, and the -t <duration></duration> flag tells FFmpeg to stop encoding after the specified duration. For example, if the start time is 00:02:00 and the duration is 00:03:00, FFmpeg would download from 00:02:00 to 00:05:00, which is not the expected outcome. For some reason, his Python script skips the first 5 seconds of output, even if I replace the -t flag with -to . I've tried to edit his script, but it does not work unless you explicitly specify the time for both video and audio stream, as well as their respective stream URL.

    &#xA;

  • Download 5 second of a RTSP stream without FFMPEG

    26 June 2018, by Jean Bon Cru

    I have a RTSP stream from my FreeBox
    rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&amp;service=372&amp;flavour=sd

    How to download 5 seconds of the RTSP stream without FFMPEG in mp4 file

  • Youtube-dl: Download video with maximum FPS and change FPS using OpenCV

    8 May 2021, by MmBaguette

    I'm trying to download a YouTube video using YouTube-dl and specifying a maximum FPS. I don't want the lowest FPS, but I also don't want an FPS higher than 30. The code below does not work, but it was my best attempt.

    &#xA;

    ydl_opts = {&#xA;    &#x27;format&#x27;: &#x27;(bestvideo[fps&lt;30]/bestvideo)&#x2B;bestaudio/best&#x27;, # CHANGE FOR VIDEO&#xA;    &#x27;outtmpl&#x27;: "youtube_video.%(ext)s",&#xA;}&#xA;print("Downloading YouTube video.")&#xA;                &#xA;with youtube_dl.YoutubeDL(ydl_opts) as ydl:&#xA;     ydl.download([text])&#xA;

    &#xA;

    If not, can I change the FPS of a video using OpenCV? I tried using cap.set(cv2.CAP_PROP_FPS) but this doesn't work either.

    &#xA;

    cap = cv2.VideoCapture(file)&#xA;fps = cap.get(cv2.CAP_PROP_FPS)&#xA;print(fps) # prints 60.0&#xA;cap.set(cv2.CAP_PROP_FPS)&#xA;fps = cap.get(cv2.CAP_PROP_FPS)&#xA;print(fps) # 60.0 again&#xA;

    &#xA;