Recherche avancée

Médias (91)

Autres articles (69)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (9576)

  • change video resolution to specific resolution using ffmpeg in python

    2 novembre 2022, par david

    I am trying the change the resolution of some videos. The original video resolution is 1920x1080. first, I have to change the resolution to 640X480. for this I used the following code :

    


    subprocess.call(['ffmpeg.exe', '-y', '-i', pname1, '-vf', 'scale=-1:480,setsar=1:1', '-c:v','libx264', '-c:a', 'copy', pname2])


    


    when I used this code it produces a file that I cannot open and when I try to open it in cmd it said : "Invalid data found when processing input".
I changed the code to this to have 640X480 :

    


    subprocess.call(['ffmpeg.exe', '-y', '-i', pname1, '-vf', 'scale=640:-2,setsar=1:1', '-c:v','libx264', '-c:a', 'copy', pname2])


    


    but the output is 640X360, what is the problem and how can I change the resolution from 1920x1080 to 640x480 ?
after that I have to change the resolution of videos to their original resolution (1920x1080) again.

    


  • change resolution of video using ffmpeg

    28 octobre 2022, par david

    I have a folder that contains videos with a resolution of 1080 and different bitrates. I am trying to change their resolution to 480 and using the following code :

    


    subprocess.call(['ffmpeg.exe','-i', pname1,'-vf', 'scale=-1:480,setsar=1:1','-c:v','libx264','-pix_fmt' ,'yuv420p','-b:v', str(cnt)+'K', '-bufsize', str(cnt)+'K' ,'-minrate', str(cnt)+'K','-maxrate', str(cnt)+'K', '-x264opts','keyint=60:min-keyint=60','-preset', 'veryfast', '-profile:v', 'high', '-f', 'hls', '-hls_time', '2', '-hls_list_size','0', pname2])


    


    but it produces noting in the related filename (pname2). it also shows no error.
what is the problem and how can I change the resolution to 480 ?

    


  • Force ffmpeg to quit when input resolution changes

    22 octobre 2022, par rednine

    I'm using ffmpeg to restream a live feed. Unfortunately occasionally the input resolution changes but ffmpeg continues running. The nginx rtmp server I'm using doesn't cope well with this, and continues the stream with audio, but the video is mostly black or green with some artifacts.

    


    Ideally what I want to happen is for ffmpeg to stop on an input resolution change, as I have a script that detects ffmpeg stopping and will restart it again.

    


    I'm using -c:v copy in my ffmpeg command as unfortunately my machine is not powerful enough to re-encode the live video on the fly to a constant resolution (not without a significant quality reduction at least)

    


    ffmpeg -i "http://mpegts-live-stream" -c:v copy -c:a aac -ac 2 -f flv "rtmp://nginxserver/live/streamname"