Recherche avancée

Médias (91)

Autres articles (68)

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

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

Sur d’autres sites (6648)

  • ffmpeg not taking variables for file name in bash [duplicate]

    6 juillet 2016, par 2haloes

    This question already has an answer here :

    I have been trying to create a script to download files from a website using ffmpeg, it works well until it gets to the filename, the code is as so :

    echo "Hello, this is the basic script to download videos. This requires ffmpeg to be installed, do you want to start? (Y/N)"
    read start_input
    if [ $start_input = Y ] || [ $start_input = y ]
    then
       echo "[Text]"
       read video_link
       echo "Now I need what quality you want the video to be (240, 360, 480, 720, 1080, Default: 720)"
       read quality_link
       if [ -z $quality_link ]
       then
           $quality_link = "720"
       fi

       echo "Now name the new file (Note, it will have a .ts extention)"

       read $new_file
       echo "And where would you like it to be placed?"
       read $folder_location
       $file="${folder_location}/${new_file}.ts"
       ffmpeg -i "[url]" -c:v copy -c:a copy -f mpegts $file
    else
       exit 0
    fi
    exit 0

    The problem is when the $file variable is used, ffmpeg doesn’t use it, variables are completely ignored, I have tried many different ways but they don’t work (Single quotes, double quotes, using $file), what can I do ?

  • Downscale and padding with FFmpeg

    26 juin 2022, par nrofis

    I have an input video with a resolution of 3000x2160. I want to downscale it to 1920x1080 but keep the aspect ratio and center the original view by adding padding.

    


    I tried this command :

    


    ffmpeg -i input.mkv -c:v libx264 -vf scale=-1:1080,pad=1920:1080:'(ow-iw)/2':0 output.1080.mp4


    


    But I get an error :

    


    


    Padded dimensions cannot be smaller than input dimensions.

    


    


    Of course, since I want to add padding relatively to the output video size.

    


    How can I downscale and add padding to the output view ?

    


  • screenrecorder appliaction. video output size issues [closed]

    25 juin 2022, par jNc

    Having working github project
https://github.com/abdullahfarwees/screen-recorder-ffmpeg-cpp

    


    All works perfectly fine, but output video resolution is not correct
I need to change output video resolution

    


    Using ubuntu/gcc/opencv/

    


    [...]
outAVCodecContext->bit_rate = 400000; // 2500000
outAVCodecContext->width = 1920; // <- change this one
outAVCodecContext->height = 1080; // <- and also this one
outAVCodecContext->gop_size = 3;
[...]