Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (51)

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

  • Running ffmpeg command from within python on windows

    15 octobre 2020, par Cheezy

    I am running python 3.8 on windows. I have a ffmpeg command that works within bash, but not within the command prompt. It gives me an error :

    


    


    No such filter : '[0:v]scale=ih16/9 :-1,boxblur=luma_radius=min(h,w)/20:luma_power=1:chroma_radius=min(cw,ch)/20:chroma_power=1[bg] ;[bg][0:v]overlay=(W-w)/2 :(H-h)/2,crop=h=iw9/16,scale=1920x1080'
Error initializing complex filters.
Invalid argument

    


    


    The command :

    


    ffmpeg -y -i input.mp4 -lavfi '[0:v]scale=ih*16/9:-1,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[bg][0:v]overlay=(W-w)/2:(H-h)/2,crop=h=iw*9/16,scale=1920x1080' -vb 5m output.mp4


    


    I am trying to run this command from within python - I've tried with os.system() and subprocess.call(). It appears that it is using the windows shell instead of the terminal, as I'm getting the error message that I found on command prompt.

    


    How do I run bash commands from within python on windows ?

    


  • ffmpeg command IP camera FishEye 360º [closed]

    28 octobre 2023, par Nuno Correia

    Using ffmpeg command to load the IP cameras streams I'm able to rotate the image with this command :

    


    ffmpeg:rtsp://admin:MyPassword@192.168.2.XXX:554/h264Preview_01_main#video=h264#rotate=90

    


    If I try to use the "filter" v360 I'm getting a error message and the stream doesn't occur with this command

    


    ffmpeg:rtsp://admin:MyPassword@192.168.2.XXX:554/h264Preview_01_main#video=h264#raw=-vf v360=fisheye:equirect:id_fov=360

    


    I also try to use this command without success also
ffmpeg:rtsp://admin:MyPassword@192.168.2.XXX:554/h264Preview_01_main#video=h264#raw=-vf

    


    The main idea is to use the ffmpeg commands to be able to view the modes "fisheye, dual panoramic view, quad view, cylindrical view" to use the different views available in the app but using the ffmepg command instead of the app.

    


    In the app I have the following option available View Modes available in the APP

    


  • Get PID from bash command

    2 mai 2020, par Kamikaze

    Hi i have bash command to run ffmpeg continously from PHP script, how can i get PID from ffmpeg process that run inside bash command. because i want to stop ffmpeg process and the bash command for specific PID, currently i already get PID from bash command and stop all ffmpeg process with pkill ffmpeg.

    



    Any suggestions please.

    



    Thanks

    



    Here is my code

    



    public function playCam($ip)
{
    $dataPlay = array();
    $randomFolder = rand(5, 15);
    $vidDir = '/var/www/cctv/public/video/'.$randomFolder.'/';
    exec('mkdir '.$vidDir);
    $bash_commands = '
    while :
    do
    ffmpeg -y -rtsp_transport tcp -i rtsp://admin:FIW170845@'.$ip.':554/stream=2.sdp -vf scale=854:480 -r 3/1 -t 120 '.$vidDir.'ip-%01d.jpeg
    done';
    $pid = exec($bash_commands.' > /dev/null 2>&1 & echo $!; ', $output);
    $dataPlay = [0 => $pid, 1 => $randomFolder];
    return $dataPlay;
}

public function stopCam($pid,$folder)
{
    shell_exec('kill '.$pid);
    shell_exec('pkill ffmpeg');
    $vidDir = "/var/www/cctv/public/video/".$folder.'/';
    $del = File::deleteDirectory($vidDir);
    return 'stoped';
    exit();
}