Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (53)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • 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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (7277)

  • Extracting aspect ratio from ffprobe

    29 décembre 2020, par Linx

    I'm using ffprobe to determine a video's properties and assign them as variables in a bash script for batch encoding with ffmpeg, like so :

    


    eval $(ffprobe -v quiet -show_format -of flat=s=_ -show_entries 
        stream=height,width,duration,display_aspect_ratio "$f");
        width=${streams_stream_0_width};
        height=${streams_stream_0_height};
        aspect=${streams_stream_0_display_aspect_ratio};
    
    echo -e "Height/Width = $height/$width, Aspect = $aspect\n";


    


    That returns "Height/Width = 480/720, Aspect = 4:3" exactly like it should. But I need to insert the variable into my encode command as 4/3 and not 4:3. I'm not very good with bash scripting and I've searched for a solution, but I'm not even sure what you call what I'm trying to do, so I'm sure I've done the wrong search terms. How can I convert this ratio into a fraction to insert into a ffmpeg command ?

    


  • FFmpeg - resize by max width/height, keep aspect ratio and avoid "width/height not divisible by 2" error

    29 août 2020, par Eduard Unruh

    This is the code I'm using to resize the video to either max width 640 or max height 700 and keeping the aspect ratio :

    


    ffmpeg/bin/ffmpeg.exe" -y -i ttt.mp4 -profile:v high -c:v libx264 -filter_complex "scale=iw*min(1\,min(640/iw\,700/ih)):-1" -acodec copy -maxrate 600k -bufsize 300k -crf 18 ttt2.mp4


    


    On some video I either get width not divisible by 2 or height not divisible by 2

    


    I looked up that the solution would be :

    


    -vf "crop=trunc(iw/2)*2:trunc(ih/2)*2"


    


    So I tried :

    


    ffmpeg/bin/ffmpeg.exe" -y -i ttt.mp4 -profile:v high -c:v libx264 -filter_complex "scale=iw*min(1\,min(640/iw\,700/ih)):-1" -vf "crop=trunc(iw/2)*2:trunc(ih/2)*2" -acodec copy -maxrate 600k -bufsize 300k -crf 18 ttt2.mp4


    


    and get the error :

    


    -vf/-af/-filter and -filter_complex cannot be used together for the same stream


    


    so how to do this ??

    


  • Encoding - wrong display aspect ratio output

    5 août 2020, par Giammy

    By encoding different inputs with the line below, the display aspect ratio of the output is wrong when the input has not the same proportional relationship, also the logo that the command adds seems to effected by the gap between input width/height relationship and output one.
How to get an output that respest the input proportion, since the "cinema scope" could change, but keep 1080*1920 output resolution ?

    


    ffmpeg -f concat -safe 0 -y -i list.txt -loop 1 -i ../logo/logo.png -c:a copy -c:v libx264 -x264opts keyint=$GOP:min-keyint=$GOP:no-scenecut -bf 0 -r $FPSC -b:v 4800k -maxrate 9600k -bufsize 19200k -profile:v main -crf 22 -filter_complex "[0:v][1:v]overlay=main_w-overlay_w-10:10,scale=1920:1080,setsar=1" -t $TOTDUR 1080set.mp4 


    


    Please if you need any other infos just say, thank you !