Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (53)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (7948)

  • scalable looping slideshow ffmpeg command

    15 avril 2024, par Martin

    I have the below ffmpeg command which takes a 2 hour mp3 file and four image files and combines them to renders a single mkv video file where the 4 images appear in a slideshow where each image is displayed for an equal amount of time.
I am using these files : https://file.io/XjYl2DDrLn6b

    


    Since the video is 2 hours long ( 7200 seconds ) and there are 4 images, each image gets displayed for 7200/4 = 1800 seconds.

    


    The logic for determining how to loop these image files is within the 'filter_complex' part of my ffmpeg command.

    


    [0:a]concat=n=1:v=0:a=1[a]; Use the only audio file.

    


    [1:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v1]; Use loop filter for repeating img1 3600 times ( 1800 seconds * 2Hz = 3600 )

    


    [2:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v2]; Use same loop filter logic for img2

    


    [3:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v3]; Use same loop filter logic for img3

    


    [4:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v4]; Use same loop filter logic for img4

    


    [v1][v2][v3][v4]concat=n=4:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v] Final combination of audio/images

    


    So each image is displayed for 1800 seconds, making up the total 7200 (2 hour) runtime of my audio file.

    


    But if I want each image to be displayed for 3 seconds, looping through all 4 images for the entire 2 hour duration, how would I do that ?
I can't include hundreds of these concat lines, how can I achieve this looping slideshow effect scaleably ? For use with extremely long audio files and hundreds of images.

    


    Full uncommented ffmpeg command (copy paste it inside web browser search window to turn into one line)

    


    ffmpeg.exe 
-r 2
-i "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\frankie knuckles mix.mp3"
-r 2
-i "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\FRONT.jpg"
-r 2
-i "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\BACK.jpg"
-r 2
-i "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\side 1.jpg"
-r 2
-i "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\side 2.jpg"
-filter_complex "
[0:a]concat=n=1:v=0:a=1[a];
[1:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v1];
[2:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v2];
[3:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v3];
[4:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v4];
[v1][v2][v3][v4]concat=n=4:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v]
"
-map [v]
-map [a]
-c:a pcm_s32le
-c:v libx264
-bufsize 3M
-crf 18
-pix_fmt yuv420p
-tune stillimage
-t 7200 "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\Equal_Slideshow_Time.mkv"


    


    Ffmpeg command in one line : ffmpeg.exe -r 2 -i "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\frankie knuckles mix.mp3" -r 2 -i "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\FRONT.jpg" -r 2 -i "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\BACK.jpg" -r 2 -i "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\side 1.jpg" -r 2 -i "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\side 2.jpg" -filter_complex " [0:a]concat=n=1:v=0:a=1[a]; [1:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v1]; [2:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v2]; [3:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v3]; [4:v]scale=w=2000:h=2000,setsar=1,loop=3615.91:3615.91[v4]; [v1][v2][v3][v4]concat=n=4:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v] " -map [v] -map [a] -c:a pcm_s32le -c:v libx264 -bufsize 3M -crf 18 -pix_fmt yuv420p -tune stillimage -t 7200 "C:\Users\martin\Documents\projects\rendertune\test-files\mp3\Equal_Slideshow_Time.mkv"

    


  • Programmatically creating mpd stream using Python

    3 février 2021, par mifol68042

    I have a live feed using RTSP from an IP camera that is captured using OpenCV in my python code. I capture every frame run some object detection on it and then need to show this in my angular front end.

    


    Initially I had thought to create an RTMP stream in my code and then use that in angular app but then realised that RTMP support is EOL on browsers. Now the alternative to this is that I am planning to create a stream using MPEG Dash. When researching about this, found this link to create a manifest mpd file however the examples there have no mention of the frames or video file. On researching more, I realised we could do something like this :

    


    ffmpeg -i $INPUT.mp4 \
-map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 \
-b:v:0 250k -filter:v:0 "scale=-2:240" -profile:v:0 baseline \ 
-b:v:1 750k -filter:v:1 "scale=-2:480" -profile:v:1 main \    
-use_timeline 1 -use_template 1 -window_size 5 \
-adaptation_sets "id=0,streams=v id=1,streams=a" -f dash $OUTPUT.mpd


    


    This is from command line but how can I achieve this programmatically ??? Also how do I keep updating the mp4 to get a live stream ??

    


    In short, I want to understand how to create live feed using frames via MPEG Dash.

    


  • avcodec/h2645_parse : Remove H2645NAL.rbsp_buffer

    11 décembre 2021, par Andreas Rheinhardt
    avcodec/h2645_parse : Remove H2645NAL.rbsp_buffer
    

    Forgotten in 03b82b3ab9883cef017e513c7d0b3b986b3b3e7b.

    (Moving data to the front is only done to make existing
    initializations like H2645NAL nal = NULL not emit int->pointer
    conversion warnings.)

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/h2645_parse.c
    • [DH] libavcodec/h2645_parse.h