Recherche avancée

Médias (91)

Autres articles (85)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

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

Sur d’autres sites (6125)

  • Use specific channels from specific streams for the final stream using FFMPEG [closed]

    9 juin 2024, par Kazu-kun

    I want to create a 5.1ch audio stream from a 2ch audio stream. However I want to put a negative delay to LFE, SL and SR channels since they will be played from my bluetooth speaker, so I want to make up for the delay by giving it a negative delay.

    


    


    ffmpeg -itsoffset 0.1 -i input.mkv -i input.mkv

    


    -filter_complex “

    


    [1:a]pan=5.1(side)|FL=FL|FR=FR|LFEp>


    [0:a]pan=5.1(side)|FL=FL|FR=FR|LFEp>


    [orig5_1][delayed5_1]amerge=inputs=2,pan=5.1(side)|FL=c6|FR=c7|LFE=c2|SL=c3|SR=c4[a]”

    


    -map "[a]" -map 0:v -map 0:s -c:v copy -c:a flac -c:s copy output.mkv

    


    


    I tried taking the same input twice with the first one being delayed by 0.1 secs. With the delayed input a 5.1 audio is created and with the original another 5.1 audio is created as well. Then the two audio streams are merged with amerge and combined into a single 5.1 audio by taking delayed channels for FL and FR(These will be played from my MacBook) and by taking original channels for LFE, SL and SR(These will be played from my bluetooth JBL). Finally the video and subs streams are taken from the delayed.

    


    The above command gave a "pipe pipe pipe dqoute" error and when I entered the command again it said :

    


    


    zsh : unknown file attribute : i

    


    zsh : no such file or directory : FL+FR

    


    zsh : unknown file attribute : i

    


    zsh : no such file or directory : FL+FR

    


    zsh : unknown file attribute : i

    


    zsh : command not found : -map

    


    


    Please give me a command for my requirement !

    


  • FFmpeg synthesizes multiple videos, the final result is only sound, no picture display

    6 juillet 2023, par Halifax

    1、I first converted mp4 to ts:

    


    -i MyVideo.mp4 -vcodec copy -acodec aac -b:v 10000k MyVideo.ts


    


    2、Then scale the ts and fill the empty space:

    


    -i MyVideo.ts -vf pad=width=iw:height=ih:x=-1:y=0:color='White' -b:v 10000k MyVideo_transform.ts


    


    3、Finally use concat to merge into mp4 files:

    


    -i "concat:MyVideo_transform1.ts|MyVideo_transform2.ts" -acodec copy -vcodec copy -absf aac_adtstoasc -b:v 10000k $outputFilePath"


    


    Finally use concat to merge into mp4 files。

    


    I hope that the final merged result can see the video picture。

    


  • PHP Foreach query only displays final result for slideshow ?

    22 janvier 2023, par ShaneRibz

    Using a query I pull the most liked video's on a localhosted stream webpage, and use FFMPEG to create a thumbnail if one isnt already existing and the video length.

    


    The query succesfully pulls the 4 most liked video's and displays them in a carousel. FFMPEG succesfully creates each thumbnail, and gets the length of each video.

    


    Somewhere, for whatever reason I cant figure out, only the final slide in the carousel displays the thumbnail as its background.

    


    Sorry if my code is messy, I'm learning how to better optimize.

    


    &lt;?php&#xA;                $sql = "use info";&#xA;                $pdo->exec($sql);&#xA;                $stmt = $pdo->query("SELECT * FROM `files` ORDER BY `like` DESC LIMIT 4");&#xA;                $filelist = $stmt->fetchAll(PDO::FETCH_ASSOC);&#xA;                    $h = 0;&#xA;                  foreach ($filelist as $row) {&#xA;                        if ($h &lt; 25){&#xA;                        $h&#x2B;&#x2B;;&#xA;                &#xA;                            $name = $row[&#x27;name&#x27;];&#xA;                            $location = $row[&#x27;location&#x27;];&#xA;                            $type = $row[&#x27;type&#x27;];&#xA;                            $uploadby = $row[&#x27;uploadby&#x27;];&#xA;                            $like = $row[&#x27;like&#x27;];&#xA;                            $id = $row[&#x27;fileid&#x27;];&#xA;                            $cat1 = $row[&#x27;Cat1&#x27;];&#xA;                            $cat2 = $row[&#x27;Cat2&#x27;];&#xA;            &#xA;                $ffmpeg = &#x27;F:\\xampp\ffmpeg.exe&#x27;;  &#xA;                $location = str_replace("/","\\", $location);&#xA;                $video = &#x27;F:\xampp\htdocs\\&#x27;. $location;  &#xA;                $bigloc = "F:\\xampp\htdocs\\thumb\big";&#xA;                $smallloc = "F:\\xampp\htdocs\\thumb\small";&#xA;                $image = $bigloc . "\\" . $name . ".jpg"; &#xA;                $image2 = $smallloc . "\\" . $name. ".jpg"; &#xA;                            &#xA;                if (file_exists($image) and (file_exists($image2))) {&#xA;                    &#xA;                } else {&#xA;                echo $image . " does not exist";&#xA;                $cmd="$ffmpeg -ss 00:25:00 -i ". "\"" . $video . "\"". " -s 1920x540 -vframes 1 ". "\"" .$image. "\"" . " -report";  &#xA;                $cmd2="$ffmpeg -ss 00:25:00 -i ". "\"" . $video . "\""." -s 270x370 -vframes 1 ". "\"" .$image2. "\"";&#xA;                echo "<br />". $cmd . "<br />".$cmd2."<br />";&#xA;                exec($cmd);&#xA;                exec($cmd2);&#xA;                }&#xA;                &#xA;                $file = "\"". $video. "\"";&#xA;                $result = shell_exec(&#x27;ffmpeg -i &#x27; . escapeshellcmd($file) . &#x27; 2>&amp;1&#x27;);&#xA;                preg_match(&#x27;/(?&lt;=Duration: )(\d{2}:\d{2}:\d{2})\.\d{2}/&#x27;, $result, $match);&#xA;                $time = $match[1];&#xA;                $image = "thumb/big/" . $name . ".jpg"; &#xA;                $image2 = "thumb/small/" . $name. ".jpg";&#xA;&#xA;            ?>&#xA;&#xA;            <div class="single-hero-slider-wrap single-animation-wrap slider-height-hm4 bg-image-hm4 slider-bg-color-black d-flex align-items-center slider-bg-position-1 bg-black" style="&amp;lt;?php echo &amp;#x27;background-image:url(&amp;#x27;. $image.&amp;#x27;);&amp;#x27;;?>">&#xA;                <div class="slider-content-hm4 slider-animated">&#xA;                    <h1 class="title animated">&lt;?php echo $name;?></h1>&#xA;                    <div class="sub-title-time-wrap">&#xA;                        <span class="sub-title animated">&lt;?php if ($cat2 != ""){ echo $cat1 .", ". $cat2; }else{ echo $cat1;}?></span>&#xA;                        <span class="time animated">&lt;?php echo $time;?></span>&#xA;                    </div>&#xA;                    <div class="slider-button">&#xA;                        <a href="http://stackoverflow.com/feeds/tag/movie-details.html" class="btn-style-hm4 animated">Watch Now</a>&#xA;                    </div>&#xA;                </div>&#xA;            </div>&#xA;&#xA;            &lt;?php    &#xA;                        }&#xA;                  }              &#xA;            ?>&#xA;

    &#xA;

    When inspecting the source code on my web browser ;&#xA;"style="&lt;?php echo &#x27;background-image:url(&#x27;. $image.&#x27;);&#x27;;?>"", this will only appear on the final slide. The first 3 slides wont have "background-image" at all.

    &#xA;

    I feel as though I'm making a silly mistake and just cant see it.

    &#xA;

    EDIT&#xA;I should note, the "$name" and "$time" for each displays properly, its just the background-image that does not.

    &#xA;

    EDIT 2&#xA;Here is the source code :

    &#xA;

    <div class="single-hero-slider-wrap single-animation-wrap slider-height-hm4 bg-image-hm4 slider-bg-color-black d-flex align-items-center slider-bg-position-1 bg-black" style="background-image: url(&amp;#x27;thumb/big/Alita Battle Angel.png&amp;#x27;);">&#xA;</div>

    &#xA;

    The "background-image" shows in source, but during inspect element it does not. No errors populate either.

    &#xA;