Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (69)

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

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (7868)

  • Scene detection and concat makes my video longer (FFMPEG)

    12 avril 2019, par araujo

    I’m encoding videos by scenes. At this moment I got two solutions in order to do so. The first one is using a Python application which gives me a list of frames that represent scenes. Like this :

    285
    378
    553
    1145
    ...

    The first scene begins from the frame 1 to 285, the second from 285 to 378 and so on. So, I made a bash script which encodes all this scenes. Basically what it does is to take the current and previous frames, then convert them to time and finally run the ffmpeg command :

    begin=$(awk 'BEGIN{ print "'$previous'"/"'24'" }')
    end=$(awk 'BEGIN{ print "'$current'"/"'24'" }')
    time=$(awk 'BEGIN{ print "'$end'"-"'$begin'" }')

    ffmpeg -i $video -r 24 -c:v libx265  -f mp4 -c:a aac -strict experimental -b:v 1.5M -ss $begin -t $time "output$count.mp4" -nostdin

    This works perfect. The second method is using ffmpeg itself. I run this commands and gives me a list of times. Like this :

    15.75
    23.0417
    56.0833
    71.2917
    ...

    Again I made a bash script that encodes all these times. In this case I don’t have to convert to times because what I got are times :

    time=$(awk 'BEGIN{ print "'$current'"-"'$previous'" }')
    ffmpeg -i $video -r 24 -c:v libx265  -f mp4 -c:a aac -strict experimental -b:v 1.5M -ss $previous -t $time "output$count.mp4" -nostdin

    After all this explained it comes the problem. Once all the scenes are encoded I need to concat them and for that what I do is to create a list with the video names and then run the ffmpeg command.

    list.txt

    file 'output1.mp4'
    file 'output2.mp4'
    file 'output3.mp4'
    file 'output4.mp4'

    command :

    ffmpeg -f concat -i list.txt -c copy big_buck_bunny.mp4

    The problem is that the "concated" video is longer than the original by 2.11 seconds. The original one lasts 596.45 seconds and the encoded lasts 598.56. I added up every video duration and I got 598.56. So, I think the problem is in the encoding process. Both videos have the same frames number. My goal is to get metrics about the encoding process, when I run VQMT to get the PSNR and SSIM I get weird results, I think is for this problem.

    By the way, I’m using the big_buck_bunny video.

  • Is there a way to get FFprobe to return codec_name from firs first video, audio, and subtitle stream in a video in a single call to FFprobe ?

    26 août 2023, par Chase Westlye
    ffprobe -v error -select_streams v:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 (filename) 


    


    is how to retrieve the codec_name of the first video stream in a file via FFprobe.

    


    Replace v:0 with a:0 to get the first audio stream, and it returns the codec_name of the first audio stream in the file.

    


    And replace v:0 with s:0 to get the codec_name of the first subtitle stream in the file.

    


    Awesome.

    


    What isn't awesome, is having to call FFprobe three times for these operations and having to hit the file three times.

    


    Is there a way to call FFProbe once, and have FFProbe return the codec_name of the first video, audio, and subtitle stream (instead of separate calls) ?

    


  • FFMPEG Overlay 1080X1920 video over 1280X720 video at a particular vertical position

    9 mai 2019, par CRAIG

    I have a 1080X1920 (vertical) video with alpha channel with a blank spot 500px north of the bottom. This blank spot is 1080X607.

    I have a 1280X720 sized video I want to position in that spot, so the 1280 video will have to be sized down to 1080 wide and then positioned 500px from the bottom and UNDER the video on top.

    This is what I currently have, but it is failing beautifully.

    /usr/local/bin/ffmpeg  -i 1080x1920.mov -i 1280x720.MOV
     -filter_complex "[1][0]overlay=main_w-overlay_w-0:main_h-overlay_h-500"
     -c:v libx264 -profile:v high444 -pix_fmt yuv420p -level 3.1 -y  final.mp4