Recherche avancée

Médias (0)

Mot : - Tags -/serveur

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (30)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (5898)

  • Streaming an Updating Folder of Images with FFmpeg Without Restarting the Script

    11 juillet 2024, par Roy Raihenshtein

    I'm working on a project where I need to stream a series of images stored in a folder using FFmpeg.
My current command looks like this :

    


    ffmpeg -stream_loop -1 -f image2 -framerate 5 -i "C:\Images\%d.bmp" -c:v libx264 -preset ultrafast -tune zerolatency -crf 35 -pix_fmt bgra -vf format=bgra -f mpegts "udp://127.0.0.1:8554?pkt_size=1316&buffer_size=64k"


    


    Initially, the folder contains :

    


    Input:
1.bmp
2.bmp
3.bmp
.
.
.
N.bmp


    


    Running this command successfully streams the images. However, new images (e.g., N2.bmp) might be added to the folder during runtime, and I need these new images to be included in the stream without restarting FFmpeg.

    


    Challenges :

    


      

    1. I need to include newly added images in the ongoing stream without rerunning the FFmpeg command.
    2. 


    3. I delete the .bmp files after they are streamed to avoid filling up my hard disk, so rerunning the command is not an option.
    4. 


    


    Additional Context :

    


    The FFmpeg command is embedded within my .NET program, which handles the deletion of images after they are streamed. This ensures that my PC's hard disk does not fill up, but it also means I cannot simply restart the FFmpeg command whenever new images are added.

    


    Question :

    


    Is there a way to configure FFmpeg or use an additional tool to dynamically update the input source to include newly added images without stopping and restarting the FFmpeg command ?

    


    Any guidance or suggestions on how to achieve this would be greatly appreciated. Thank you !

    


  • Ffmpeg- Split the video into 30 seconds chunks in android [duplicate]

    23 novembre 2019, par Corgi Mogi

    This question is an exact duplicate of :

    I am trying to split a video file into 30 second blocks.
    I do not need to specify where the 30 seconds start or finish.
    EXAMPLE- A single 45 second video will be split into VID1_part1 (30 seconds), VID1_part2 (15 seconds).

    Right now I am using the Ffmpeg command where I need to specify the starting and ending point.

    String[] complexCommand = {"-ss", "" + startMs / 1000, "-y", "-i", yourRealPath, "-t", "" + (endMs - startMs) / 1000,"-vcodec", "mpeg4", "-b:v", "2097152", "-b:a", "48000", "-ac", "2", "-ar", "22050", filePath};

    I also tried to add a for loop in order to repeat the process

    int start, end;
           for (int i = 0; i <= duration; i = i + 30) {
               start = i;
               end = start + 30;

               String[] complexCommand = {"-ss", "" + start, "-y", "-i", yourRealPath, "-t", "" + end,"-vcodec", "mpeg4", "-b:v", "2097152", "-b:a", "48000", "-ac", "2", "-ar", "22050", filePath};
               execFFmpegBinary(complexCommand);
           }

    But didn’t workout

    This works fine.
    But I want the command through I can split a single video into 30 second chunks.
    And should I use a single command for this purpose or a series of commands ?
    Help is much appreciated

  • ffmpeg doesn't work when called from c++ system

    19 mai 2016, par Arheisel

    I have a c++ script that coneverts a series of jpg into a .mp4 video, the command i use is the folllowing :

    std::system("ffmpeg -threads auto -y -framerate 1.74659 -i /mnt/ev_ramdsk/1/%05d-capture.jpg -vcodec libx264 -preset ultrafast /mnt/ev_ramdsk/1/video.mp4");

    which produces a .mp4 video file like its supposed to except it cant be played from anywhere (tested in 2 computers and html5 video)

    But, if from the same computer where the program runs, i do :

    ffmpeg -threads auto -y -framerate 2 -i %05d-capture.jpg -vcodec libx264 -preset ultrafast video.mp4

    from the command line, the output video plays wonderfully (except in vlc, for vlc i have to use -vcodec mpeg4)

    What can possibly cause this behaviour ?
    could cp command corrupt the file ? (ran after the mpeg to move it out of the ramfs)

    EDIT :

    As requested, i ran the whole set of commands one by one in the console exactly as the program do (the program logs every single command it runs, i just repeated them).

    The commands are :

    cp -r /var/cache/zoneminder/events/1/16/05/18/23/30/00/ /mnt/ev_ramdsk/1/
    ffmpeg -threads auto -y -framerate 1.76729 -i /mnt/ev_ramdsk/1/%5d-capture.jpg -preset ultrafast /mnt/ev_ramdsk/1/video.mp4
    cp /mnt/ev_ramdsk/1/video.mp4 /var/cache/evmanager/videos/1/2016_05_18_23_30_00_.mp4

    The resulting .mp4 file can be played without any trouble. Also, is the only one with a preview image in the file explorer.

    Thank you very much !