Recherche avancée

Médias (0)

Mot : - Tags -/upload

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

Autres articles (29)

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

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

    


  • How to convert webp images to MP4 video using ffmpeg

    12 octobre 2016, par Sunny Tambi

    I have tried many possible command line options with ffmpeg, however not getting this to work. I want to convert series of webp images to a mp4 video.
    Some commands that i tried are :

    ffmpeg -i img%04d.webp out.mp4

    ffmpeg -i img%04d.webp -c:v libx264 out.mp4

    ffmpeg -i img%04d.webp -pix_fmt yuv420p out.mp4

    ffmpeg -i img%04d.webp -c:v libx264 -pix_fmt yuv420p -crf 25 out.mp4

    ffmpeg -i img%04d.webp -c:v libx264 -pix_fmt yuv420p -crf 25 -b:v 0 out.mp4

    None of them creates an mp4 video. A mp4 file, though, gets created, however it is of 0 sec. Here is a sample output of one of the execution :

    ffmpeg -i img%04d.webp -c:v libx264 -pix_fmt yuv420p -crf 25 -y out.mp4

    ffmpeg version N-81045-g450cf40 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
    libavutil      55. 28.100 / 55. 28.100
    libavcodec     57. 50.100 / 57. 50.100
    libavformat    57. 42.100 / 57. 42.100
    libavdevice    57.  0.102 / 57.  0.102
    libavfilter     6. 47.100 /  6. 47.100
     libswscale      4.  1.100 /  4.  1.100
    libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, image2, from 'img%04d.webp':
     Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: webp, yuva420p(tv, bt470bg/unknown/unknown), 320x568, 25 tbr, 25 tbn, 25 tbc
    [libx264 @ 00000000006dbbc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 00000000006dbbc0] profile High, level 2.1
    [libx264 @ 00000000006dbbc0] 264 - core 148 r2705 3f5ed56 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    [mp4 @ 00000000006d8700] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Output #0, mp4, to 'out.mp4':
    Metadata:
    encoder : Lavf57.42.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x568, q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
    encoder : Lavc57.50.100 libx264
    Side data:
    cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream mapping:
    Stream #0:0 -> #0:0 (webp (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame= 1 fps=0.0 q=30.0 Lsize= 3kB time=00:00:00.00 bitrate=265435.9kbits/s speed=0.011x video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 44.661823%
    [libx264 @ 00000000006dbbc0] frame I:1     Avg QP:23.37  size:  1100
    [libx264 @ 00000000006dbbc0] mb I  I16..4: 24.4% 71.5%  4.0%
    [libx264 @ 00000000006dbbc0] 8x8 transform intra:71.5%
    [libx264 @ 00000000006dbbc0] coded y,uvDC,uvAC intra: 6.1% 5.4% 4.2%
    [libx264 @ 00000000006dbbc0] i16 v,h,dc,p: 80% 14%  6%  1%
    [libx264 @ 00000000006dbbc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 46%  5% 48%  0%  0%  0%  0%  0%  0%
    [libx264 @ 00000000006dbbc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 20% 42%  2%  2%  2%  2%  2%  3%
    [libx264 @ 00000000006dbbc0] i8c dc,h,v,p: 89%  9%  1%  0%
    [libx264 @ 00000000006dbbc0] kb/s:220.00

    Excerpt from the above :

    frame=1
    fps=0.0
    time=00:00:00.00
    video:2kB

    This should give the idea of what I am trying to say.

    Need help if someone can tell how to convert a series of webp images to MP4 video.

  • 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