Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (105)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (5886)

  • ffmpeg : resulting video from timelapse not playable in quicktime after size change [duplicate]

    15 novembre 2016, par Tony Pitale

    This question already has an answer here :

    I can create a "timelapse" video from a series of photos using the following command :

    ffmpeg -pattern_type glob -f image2 -framerate 24 -i "*.JPG" -r 24 -s uhd2160 -pix_fmt yuv420p -vcodec libx264 disassembly-2.mp4

    And this is playable by Quicktime. However, if I change the -s option to be 4000x3000 to exactly match the size of the photos, Quicktime can no longer play the resulting video. VLC can, but not QT.

    ffmpeg -pattern_type glob -f image2 -framerate 24 -i "*.JPG" -r 24 -s 4000x3000 -pix_fmt yuv420p -vcodec libx264 disassembly-2.mp4

    Does anyone know why this change alone would break playback in QT ?

    Running Mac OS 10.12.1 on a 2013 Mac Pro. QT is version 10.4 (891). ffmpeg is :

    ffmpeg version 3.2 Copyright (c) 2000-2016 the FFmpeg developers
    built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
    configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
    libavutil      55. 34.100 / 55. 34.100
    libavcodec     57. 64.100 / 57. 64.100
    libavformat    57. 56.100 / 57. 56.100
    libavdevice    57.  1.100 / 57.  1.100
    libavfilter     6. 65.100 /  6. 65.100
    libavresample   3.  1.  0 /  3.  1.  0
    libswscale      4.  2.100 /  4.  2.100
    libswresample   2.  3.100 /  2.  3.100
    libpostproc    54.  1.100 / 54.  1.100

    Quicktime does not show an error message. It plays a video of the appropriate size (dimensions) and length of play that is entirely black.

  • Slowing down 960 fps video with ffmpeg (setpts is not working)

    7 novembre 2016, par haridsv

    I am trying to slow down a video recorded on an Android phone at 960fps. I found a lot of previous posts and blogs that all basically say the same thing, that you need to change the "presentation timestamp" (pts). I also found the official documentation that is saying the same thing. The command-line basically looks like this :

    ffmpeg -i input.mp4 -filter:v "setpts=4*PTS" -r 30 -y output.mp4

    I copied the video file using Android Filter Transfer and when I use the above command-line, it works to slow it down, but the resulting output is choppy. The output of the ffmpeg also indicates that it is duplicating the frames :

    frame=  687 fps=103 q=-1.0 Lsize=    4454kB time=00:00:22.80 bitrate=1600.1kbits/s dup=515 drop=0 speed=3.42x

    Running ffprobe on the file shows this :

    ffprobe version 3.1.1 Copyright (c) 2007-2016 the FFmpeg developers
     built with Apple LLVM version 7.3.0 (clang-703.0.31)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.1.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-lda
     libavutil      55. 28.100 / 55. 28.100
     libavcodec     57. 48.101 / 57. 48.101
     libavformat    57. 41.100 / 57. 41.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 47.100 /  6. 47.100
     libavresample   3.  0.  0 /  3.  0.  0
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'VID_20161030_213810.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2016-10-30 16:08:14
       location        : +17.3874+078.3395/
       location-eng    : +17.3874+078.3395/
       com.android.version: 6.0.1
       com.android.capture.fps: 120.000000
     Duration: 00:00:05.73, start: 0.000000, bitrate: 14991 kb/s
       Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 13859 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         creation_time   : 2016-10-30 16:08:14
         handler_name    : VideoHandle

    This seems to detect that the video is 30 fps instead of 960 fps, which is probably why it is filling in with duplicate frames instead of using the existing frames.

    I recording the video on Lenovo Z2 Plus (AKA Zuk Z2). If I playback the video using the built-in player at a slow speed it looks extremely smooth, so the frames are definitely there. Could someone help me figure out the right way ? The file is available here (about 10MB), in case someone would like to try it.

    Update : Video playback at slo-mo on the phone recorded with another phone. Notice how smooth and slow the sparks are thrown around, which is impossible if the original video is 30fps.

  • FFMPEG add DATA stream to MPEGTS

    30 octobre 2016, par omerfirmak
    ffmpeg -re -f lavfi -i testsrc=rate=30 -re -thread_queue_size 131072
    -f data -i udp://127.0.0.1:4444 -map 0:0 -map 1:0 -c:v h264 -c:d copy -f mpegts test.ts

    This is the output of the command above. I simply want to record the data coming from udp synced with video. I push some KLV encoded metadata from udp ://127.0.0.1:4444 but recording stops at frame 51.

    ffmpeg version 3.1.5 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 6.2.1 (GCC) 20160830
     configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
     libavutil      55. 28.100 / 55. 28.100
     libavcodec     57. 48.101 / 57. 48.101
     libavformat    57. 41.100 / 57. 41.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 47.100 /  6. 47.100
     libavresample   3.  0.  0 /  3.  0.  0
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, lavfi, from 'testsrc=rate=30':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 30 tbr, 30 tbn, 30 tbc
    Input #1, data, from 'udp://127.0.0.1:4444':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #1:0: Data: none
    File 'test.ts' already exists. Overwrite ? [y/N] y
    [mpegts @ 0x55ece57efc20] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
       Last message repeated 1 times
    Output #0, mpegts, to 'test.ts':
     Metadata:
       encoder         : Lavf57.41.100
       Stream #0:0: Video: mpeg2video (Main), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc
       Metadata:
         encoder         : Lavc57.48.101 mpeg2video
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
       Stream #0:1: Data: none
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg2video (native))
     Stream #1:0 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=    2 fps=0.0 q=4.7 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=    2 fps=2.0 q=4.7 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=    2 fps=1.3 q=4.7 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=    2 fps=1.0 q=4.7 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=    2 fps=0.8 q=4.7 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=    2 fps=0.7 q=2.0 Lsize=      14kB time=00:00:00.00 bitrate=10117818.2kbits/s speed=3.63e-06x    
    video:12kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 10.228984%
    [omer@OmerDesktop HDD]$ ffmpeg -re -f lavfi -i testsrc=rate=30 -re -thread_queue_size 131072 -f data -i udp://127.0.0.1:4444 -map 0:0 -map 1:0 -c:v h264 -c:d copy -f mpegts test.ts
    ffmpeg version 3.1.5 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 6.2.1 (GCC) 20160830
     configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
     libavutil      55. 28.100 / 55. 28.100
     libavcodec     57. 48.101 / 57. 48.101
     libavformat    57. 41.100 / 57. 41.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 47.100 /  6. 47.100
     libavresample   3.  0.  0 /  3.  0.  0
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, lavfi, from 'testsrc=rate=30':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 30 tbr, 30 tbn, 30 tbc
    Input #1, data, from 'udp://127.0.0.1:4444':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #1:0: Data: none
    File 'test.ts' already exists. Overwrite ? [y/N] y
    No pixel format specified, yuv444p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 0x56461eb0f500] using SAR=1/1
    [libx264 @ 0x56461eb0f500] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x56461eb0f500] profile High 4:4:4 Predictive, level 1.3, 4:4:4 8-bit
    [mpegts @ 0x56461eb0dc80] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
       Last message repeated 1 times
    Output #0, mpegts, to 'test.ts':
     Metadata:
       encoder         : Lavf57.41.100
       Stream #0:0: Video: h264 (libx264), yuv444p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 30 fps, 90k tbn, 30 tbc
       Metadata:
         encoder         : Lavc57.48.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Data: none
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=   17 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=  
    frame=   32 fps= 31 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=  
    frame=   47 fps= 31 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=  
    frame=   51 fps= 25 q=29.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=  
    frame=   51 fps= 20 q=29.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=  
    frame=   51 fps= 17 q=29.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=  
    frame=   51 fps= 14 q=29.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=  
    frame=   51 fps= 13 q=-1.0 Lsize=      19kB time=00:00:01.60 bitrate=  94.9kbits/s speed=0.407x