Recherche avancée

Médias (1)

Mot : - Tags -/embed

Autres articles (73)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Amélioration de la version de base

    13 septembre 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 (...)

Sur d’autres sites (8738)

  • PHP : shell_exec() ; not working identical to cmd ? [WIN10 CMD]

    24 février 2021, par hydra-lua
    $MergeCommand = "C:\\Users\\Admin\\Documents\\ffmpeg-2021-02-20-git-51a9f487ae-full_build\\bin\\ffmpeg -i \"" . $path . $videoname . "\" -i \"" . $path . $audioname . "\" -c:v copy -c:a aac \"" . $path . $filename . "FINAL.mp4\"";
shell_exec($MergeCommand);
echo($MergeCommand);


    


    Operating System : Windows 10


    
Sorry for the incredibly long and painful line I've provided.
    
From testing, I know that my code reaches the line shell_exec($MergeCommand);.
    
It even echoes the value of $MergeCommand afterwards correctly.
    

    
The problem is, as soon as it tries to execute $MergeCommand, nothing happens. It just seems to be going
    
into the next line. What's supposed to happen, is that it merges a video file with an audio file.
    
There is no output (tried echoing the result of it) and not any error message either.
    
When using exec($MergeCommand, $output, $retvalue); to find out the return value, it returns 1.
    
Though, if I copy the exact line that echo($MergeCommand); prints out, open a cmd, paste
    
it in there and run it, it does exactly what It's supposed to do.

    
Now I wonder, why does the same command work in a regular cmd, while it doesn't work when running
    
it via shell_exec(); or exec(); ???
    
It's not like shell_exec(); doesn't work at all, I've come to the conclusion that it specifically
    
happens when running that command. For example, shell_exec("echo hello world"); works
    
perfectly fine.

    


  • Nginx Live transcoding with ffmpeg

    9 juillet 2017, par Stian Tofte

    I’m live streaming video to my server(It’s external somewhere in the world).
    And what I’m trying to do here, is that my server will transcode the input to a lower bitrate before it pushes it to the video site like twitch and so on.

    And I’m doing this on windows. I have tried to google around watched youtube videos. and so on.. But couldn’t find any solution for it. So here is what I have at this moment(not working).

    In my nginx.conf :

    rtmp {
    server {
       listen 1935;
       chunk_size 8192;

       application code {
           live on;

       }

       application twitch {
           push rtmp://live-ams.twitch.tv/app/live_xxxxxxxxxxxxxxxxx;
       }
    }

    So here the application code is receving the stream from my computer at home. I’m using ffmpeg to transcode it.

    And here is my batch file(That I have to start manualy. Can’t start it within the config of nginx on windows.)

    ffmpeg -i rtmp://localhost/code -vcodec flv -acodec copy -s 1280x720 -f flv rtmp://localhost/twitch
    pause

    Right now It’s just downscaling but that is okay. So this is supposed to send the stream back to the "twitch" application in my nginx config. And then nginx will stream it to twitch.

    But when I launch my ffmpeg bat file.. I get this :
    enter image description here

    So it’s here my road ends. Anyone knows how to do this ?

    Thanks in advance :) Stian

  • Nginx Live transcoding with ffmpeg

    7 mars 2015, par Stian Tofte

    I’m live streaming video to my server(It’s external somewhere in the world).
    And what I’m trying to do here, is that my server will transcode the input to a lower bitrate before it pushes it to the video site like twitch and so on.

    And I’m doing this on windows. I have tried to google around watched youtube videos. and so on.. But couldn’t find any solution for it. So here is what I have at this moment(not working).

    In my nginx.conf :

    rtmp {
    server {
       listen 1935;
       chunk_size 8192;

       application code {
           live on;

       }

       application twitch {
           push rtmp://live-ams.twitch.tv/app/live_xxxxxxxxxxxxxxxxx;
       }
    }

    So here the application code is receving the stream from my computer at home. I’m using ffmpeg to transcode it.

    And here is my batch file(That I have to start manualy. Can’t start it within the config of nginx on windows.)

    ffmpeg -i rtmp://localhost/code -vcodec flv -acodec copy -s 1280x720 -f flv rtmp://localhost/twitch
    pause

    Right now It’s just downscaling but that is okay. So this is supposed to send the stream back to the "twitch" application in my nginx config. And then nginx will stream it to twitch.

    But when I launch my ffmpeg bat file.. I get this :
    enter image description here

    So it’s here my road ends. Anyone knows how to do this ?

    Thanks in advance :) Stian