Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (101)

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

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (13597)

  • How to create a clip from an mp4-file quickly ?

    26 mars 2023, par Moritz Groß

    I have a web app that lets users download a clip from a mp4-file specified before. Currently I use ffmpeg via python like this :

    


    os.system('ffmpeg -i original_video -ss {start} -t {duration} result_video')


    


    Processing 10 minutes of 720p video with this method also takes a few minutes (during the execution, ffmpeg displays speed=3x on average). Does this mean processing 10 minutes of video takes 3minutes & 20 seconds as I understand it ?

    


    Is this slow of a performance expected ? Can I improve it by using an other filetype than mp4 ?

    


  • PHP upload video files to database

    13 janvier 2016, par Mick Jack

    I am working on a school project that let users upload video files to a server. Server will compress the video using ffmpeg and store the file in upload folder. Other users will be able to stream the uploaded videos.

    My question is how do i retrieve the video that ffmpeg generated and store the link in the database ?

    i am using this code but it only retrieve path of the original video.

    $filePath = dirname(__FILE__);

    partial code of Upload.php

    $target_dir = "upload/"; //where you want to upload the files to
    $target_file = $target_dir.basename($_FILES['file']['name']);
    $fileType = pathinfo($target_file, PATHINFO_EXTENSION);
    $newFileName = $target_dir.sha1(pathinfo(basename($_FILES['file']['name']), PATHINFO_FILENAME)).'-'.time().'.'.$fileType;
    move_uploaded_file($_FILES['file']['tmp_name'], $newFileName);
    $unique_id = rand(1000000,9999999);

    shell_exec("C:\\ffmpeg\\bin\\ffmpeg.exe -i ".$newFileName." -vcodec libx264 -crf 20 \"upload\\{$newFileName}\" > logfile.txt 2>&1");

    /// save information into database
                   $username = "root";
                   $password = "";
                   $hostname = "localhost";
                   $dbname = "test_database";

                   //connect to the database
                   $dbc = mysqli_connect($hostname, $username, $password, $dbname) or die ("could not connect to the database");

                   //execute the SQL query and return records
                    $result = mysqli_query($dbc, "INSERT INTO `viewvideo` (`vID`, 'video_id`, `video_link`) VALUES ('', '".$unique_id."', '".$newFileName."')");

                   if(!$result){echo mysqli_error($dbc); }

                   echo $result;

               /*  
                   declare in the order variable
                   $result = mysqli_query($dbc, $sql); //order executes
                   if($result){
                       echo("<br />Input data is succeed");
                   } else{
                       echo("<br />Input data is fail");
                   }
               */  

                   //close the connection
                   mysqli_close($dbc);

    output
    enter image description here

  • ffprobe : IGMP membership packet doesn't include source when localaddr is set to the non-default GW interface [closed]

    28 août 2023, par Chu N

    On a Ubuntu 18.04.6 LTS box with 2 interfaces e.g. eno1 (10.1.1.1/24), eno2 (10.2.2.2/24). The default route goes out eno1, however I need to send SSM membership reports via eno2 to join a multicast S,G stream on 232.0.0.5 sourced from 10.5.5.5.

    &#xA;

    ffprobe version 3.4.11-0ubuntu0.1

    &#xA;

    When I input the command :&#xA;ffprobe udp ://232.0.0.5:8000 ?localaddr=10.2.2.2&sources=10.5.5.5

    &#xA;

    The outgoing IGMPv3 packet leaves via eno2 but it does NOT include the Source Address in the membership report group record field as observed on Wireshark.

    &#xA;

    When I input the command to go out via eno1 :&#xA;ffprobe udp ://232.0.0.5:8000 ?sources=10.5.5.5&#xA;or&#xA;ffprobe udp ://232.0.0.5:8000 ?localaddr=10.1.1.1&sources=10.5.5.5

    &#xA;

    The outgoing IGMPv3 packet leaves via the default GW eno1 and includes the Source Address in the IGMPv3 membership report group record field as observed on Wireshark.

    &#xA;

    How do I make ffprobe include the Source Address in the IGMPv3 packet when using an interface that's not the default gateway ?

    &#xA;

    I tried different formats of the UDP URL.&#xA;When I put the sources before localaddr(10.2.2.2), the IGMPv3 packet goes out via the default gateway (10.1.1.1).&#xA;I tried using a routing-policy on netplan to do some source routing under the eno2 stanza but it didn't work.

    &#xA;