Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (20)

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

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

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (5901)

  • Duplicated frames when mering multiple videos with xfade filter (ffmpeg)

    25 février 2021, par tjk

    I'm stuck with merging multiple videos with audio. This used to work on most videos I merged before but with some videos, I get the "More than 1000 frames duplicated" warning, and the output video is broken (some videos won't play, just static picture and the sound is misaligned).

    


    All videos are in the same format afaik. The only difference I see is that some are "yuvj420p(pc)" and most are "yuv420p". But I tried merging without those with "yuvj420p(pc)" and it didn't help.

    


    Already tried adding "-vsync vfr", didn't help too.
Interestingly — if I remove the second or the last input video, no warning is given and it all works.

    


    The command I use :

    


    ffmpeg  -i intro.mp4 \
     -i 2043651222.mp4 \
     -i 2668231460.mp4 \
     -i 2342967217.mp4 \
     -i 2345792509.mp4 \
     -i 2764881879.mp4 \
     -i 3127825310.mp4 \
     -i 3058954129.mp4 \
     -i 2533841315.mp4 \
     -i 2334544474.mp4 \
     -i 2493440007.mp4 \
     -filter_complex \
"[0][1]xfade=transition=fade:duration=0.5:offset=3.5000000[V01]; \
[V01][2]xfade=transition=fade:duration=0.5:offset=7.67000[V02]; \
[V02][3]xfade=transition=fade:duration=0.5:offset=27.21000[V03]; \
[V03][4]xfade=transition=fade:duration=0.5:offset=37.01000[V04]; \
[V04][5]xfade=transition=fade:duration=0.5:offset=54.11000[V05]; \
[V05][6]xfade=transition=fade:duration=0.5:offset=56.63000[V06]; \
[V06][7]xfade=transition=fade:duration=0.5:offset=80.49000[V07]; \
[V07][8]xfade=transition=fade:duration=0.5:offset=107.23000[V08]; \
[V08][9]xfade=transition=fade:duration=0.5:offset=110.12000[V09]; \
[V09][10]xfade=transition=fade:duration=0.5:offset=118.31000,format=yuv420p[video]; \
[0:a]aresample=async=1:first_pts=0,apad,atrim=0:4[A0]; \
[1:a]aresample=async=1:first_pts=0,apad,atrim=0:4.67[A1]; \
[2:a]aresample=async=1:first_pts=0,apad,atrim=0:20.04[A2]; \
[3:a]aresample=async=1:first_pts=0,apad,atrim=0:10.3[A3]; \
[4:a]aresample=async=1:first_pts=0,apad,atrim=0:17.6[A4]; \
[5:a]aresample=async=1:first_pts=0,apad,atrim=0:3.02[A5]; \
[6:a]aresample=async=1:first_pts=0,apad,atrim=0:24.36[A6]; \
[7:a]aresample=async=1:first_pts=0,apad,atrim=0:27.24[A7]; \
[8:a]aresample=async=1:first_pts=0,apad,atrim=0:3.39[A8]; \
[9:a]aresample=async=1:first_pts=0,apad,atrim=0:8.69[A9]; \
[10:a]aresample=async=1:first_pts=0,apad,atrim=0:14.88[A10]; \
[A0][A1]acrossfade=d=0.5:c1=tri:c2=tri[A0001]; \
[A0001][A2]acrossfade=d=0.5:c1=tri:c2=tri[A0002]; \
[A0002][A3]acrossfade=d=0.5:c1=tri:c2=tri[A0003]; \
[A0003][A4]acrossfade=d=0.5:c1=tri:c2=tri[A0004]; \
[A0004][A5]acrossfade=d=0.5:c1=tri:c2=tri[A0005]; \
[A0005][A6]acrossfade=d=0.5:c1=tri:c2=tri[A0006]; \
[A0006][A7]acrossfade=d=0.5:c1=tri:c2=tri[A0007]; \
[A0007][A8]acrossfade=d=0.5:c1=tri:c2=tri[A0008]; \
[A0008][A9]acrossfade=d=0.5:c1=tri:c2=tri[A0009]; \
[A0009][A10]acrossfade=d=0.5:c1=tri:c2=tri[audio] \
" -map "[video]" -map "[audio]" -movflags +faststart 'compiled.mp4'


    


    Full log :

    


    ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 11.0.3 (clang-1103.0.32.62)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'intro.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.29.100
  Duration: 00:00:04.00, start: 0.000000, bitrate: 98 kb/s
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 2 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 85 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '2043651222.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:00:04.67, start: 0.000000, bitrate: 471 kb/s
    Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 720x1280 [SAR 1:1 DAR 9:16], 333 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '2668231460.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:00:20.04, start: 0.000000, bitrate: 1882 kb/s
    Stream #2:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x1280, 1685 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : Core Media Video
    Stream #2:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 191 kb/s (default)
    Metadata:
      handler_name    : Core Media Audio
Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '2342967217.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:00:10.30, start: 0.000000, bitrate: 446 kb/s
    Stream #3:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 367 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #3:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Input #4, mov,mp4,m4a,3gp,3g2,mj2, from '2345792509.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:00:17.60, start: 0.000000, bitrate: 2546 kb/s
    Stream #4:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x1280, 2342 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : Core Media Video
    Stream #4:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 199 kb/s (default)
    Metadata:
      handler_name    : Core Media Audio
Input #5, mov,mp4,m4a,3gp,3g2,mj2, from '2764881879.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:00:03.02, start: 0.000000, bitrate: 1293 kb/s
    Stream #5:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x1280, 1110 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : Core Media Video
    Stream #5:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 178 kb/s (default)
    Metadata:
      handler_name    : Core Media Audio
Input #6, mov,mp4,m4a,3gp,3g2,mj2, from '3127825310.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:00:24.36, start: 0.000000, bitrate: 401 kb/s
    Stream #6:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 323 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #6:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Input #7, mov,mp4,m4a,3gp,3g2,mj2, from '3058954129.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:00:27.24, start: 0.000000, bitrate: 1723 kb/s
    Stream #7:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x1280, 1519 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : Core Media Video
    Stream #7:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 194 kb/s (default)
    Metadata:
      handler_name    : Core Media Audio
Input #8, mov,mp4,m4a,3gp,3g2,mj2, from '2533841315.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:00:03.39, start: 0.000000, bitrate: 1807 kb/s
    Stream #8:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x1280, 1657 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : Core Media Video
    Stream #8:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 150 kb/s (default)
    Metadata:
      handler_name    : Core Media Audio
Input #9, mov,mp4,m4a,3gp,3g2,mj2, from '2334544474.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:00:08.69, start: 0.000000, bitrate: 2675 kb/s
    Stream #9:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x1280, 2500 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : Core Media Video
    Stream #9:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 180 kb/s (default)
    Metadata:
      handler_name    : Core Media Audio
Input #10, mov,mp4,m4a,3gp,3g2,mj2, from '2493440007.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:00:14.88, start: 0.000000, bitrate: 966 kb/s
    Stream #10:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x1280, 889 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : Core Media Video
    Stream #10:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)
    Metadata:
      handler_name    : Core Media Audio
File 'compiled.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 (aac) -> aresample
  Stream #0:1 (h264) -> xfade:main
  Stream #1:0 (h264) -> xfade:xfade
  Stream #1:1 (aac) -> aresample
  Stream #2:0 (h264) -> xfade:xfade
  Stream #2:1 (aac) -> aresample
  Stream #3:0 (h264) -> xfade:xfade
  Stream #3:1 (aac) -> aresample
  Stream #4:0 (h264) -> xfade:xfade
  Stream #4:1 (aac) -> aresample
  Stream #5:0 (h264) -> xfade:xfade
  Stream #5:1 (aac) -> aresample
  Stream #6:0 (h264) -> xfade:xfade
  Stream #6:1 (aac) -> aresample
  Stream #7:0 (h264) -> xfade:xfade
  Stream #7:1 (aac) -> aresample
  Stream #8:0 (h264) -> xfade:xfade
  Stream #8:1 (aac) -> aresample
  Stream #9:0 (h264) -> xfade:xfade
  Stream #9:1 (aac) -> aresample
  Stream #10:0 (h264) -> xfade:xfade
  Stream #10:1 (aac) -> aresample
  format -> Stream #0:0 (libx264)
  acrossfade -> Stream #0:1 (aac)
Press [q] to stop, [?] for help
[swscaler @ 0x7ff21ef72000] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x7ff227827800] using SAR=1/1
[libx264 @ 0x7ff227827800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7ff227827800] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x7ff227827800] 264 - core 160 r3011M cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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=12 lookahead_threads=2 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=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'compiled.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 720x1280 [SAR 1:1 DAR 9:16], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
      encoder         : Lavc58.91.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      encoder         : Lavc58.91.100 aac
More than 1000 frames duplicated    1024kB time=00:00:47.41 bitrate= 176.9kbits/s dup=597 drop=996 speed=5.81x    
[mp4 @ 0x7ff227815200] Starting second pass: moving the moov atom to the beginning of the filep=1954 speed=4.07x    
frame= 3989 fps=121 q=-1.0 Lsize=   13252kB time=00:02:12.98 bitrate= 816.3kbits/s dup=1946 drop=1954 speed=4.05x    
video:11094kB audio:2036kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.927680%
[libx264 @ 0x7ff227827800] frame I:23    Avg QP:14.09  size: 69236
[libx264 @ 0x7ff227827800] frame P:1195  Avg QP:18.60  size:  6527
[libx264 @ 0x7ff227827800] frame B:2771  Avg QP:21.69  size:   710
[libx264 @ 0x7ff227827800] consecutive B-frames:  3.3% 11.5%  2.6% 82.6%
[libx264 @ 0x7ff227827800] mb I  I16..4: 36.4% 41.9% 21.7%
[libx264 @ 0x7ff227827800] mb P  I16..4:  3.1%  6.0%  1.1%  P16..4: 15.4%  5.5%  2.9%  0.0%  0.0%    skip:66.0%
[libx264 @ 0x7ff227827800] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 10.2%  0.6%  0.0%  direct: 0.4%  skip:88.5%  L0:42.8% L1:53.3% BI: 3.8%
[libx264 @ 0x7ff227827800] 8x8 transform intra:55.8% inter:63.6%
[libx264 @ 0x7ff227827800] coded y,uvDC,uvAC intra: 25.6% 42.8% 14.5% inter: 2.7% 2.5% 0.0%
[libx264 @ 0x7ff227827800] i16 v,h,dc,p: 45% 22% 14% 19%
[libx264 @ 0x7ff227827800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 19% 28%  3%  2%  3%  2%  3%  2%
[libx264 @ 0x7ff227827800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 17% 15%  6%  7%  8%  5%  6%  4%
[libx264 @ 0x7ff227827800] i8c dc,h,v,p: 55% 15% 23%  7%
[libx264 @ 0x7ff227827800] Weighted P-Frames: Y:2.0% UV:1.7%
[libx264 @ 0x7ff227827800] ref P L0: 68.4% 13.3% 14.4%  3.9%  0.1%
[libx264 @ 0x7ff227827800] ref B L0: 86.0% 12.0%  2.1%
[libx264 @ 0x7ff227827800] ref B L1: 96.9%  3.1%
[libx264 @ 0x7ff227827800] kb/s:683.43
[aac @ 0x7ff22781fc00] Qavg: 2168.180


    


  • building c++ code into a shared library

    11 avril 2016, par gaurav

    I have some c++ code which i use as shared library in a java application.My c++ code uses some libraries like ffmpeg and boost. and ffmpeg libraries in turn depend on libx264. my first question is - can i build my c++ into a "fat" shared library which contains all the symbols from all libraries used so that on a new machine if i just copy the fat .so file everything works.
    If thats not possible then can you help me fix my current build process. This is what i am doing currently -

    1)on a local VM(ubuntu 64) i compile ffmpeg code using -fPIC flag and install h264 and boost using apt-get commands.
    2) on the same VM i compile my code using make file which looks like this-

    INCLUDES =   -I/opt/ffmpeg/include -I/usr/lib/jvm/java-7-openjdk-   amd64/include -I/usr/lib/jvm/java-7-openjdk-amd64/include/linux

    LDFLAGS =   -L/home/ubuntu/ffmpeg_shared

    LIBRARIES = -lavformat -lavcodec -lswscale -lavutil -lpthread  -lx264 -lboost_system -lboost_thread -lboost_chrono

    CC = g++ -std=c++11 -fPIC

    all:clean final

    final:Api.o ImageSequence.o OverlayAnimation.o Utils.o ImageFrame.o
    $(CC)  -o final.so Api.o ImageSequence.o OverlayAnimation.o Utils.o  ImageFrame.o $(LDFLAGS) $(LIBRARIES) -shared

    3) on a new machine where java app will run. i install h264 and boost using apt-get commands and copy ffmpeg’s compiled library files to /usr/local/lib.

    4) copy the final.so file to this new machine. but when the java code tries to use the final.so file i see it tries to use wierdly named files. for example - it tries to find libavcodec.so.57 , libavformat.so.57 etc. to fix this i just created a copy of these files ie libavcodec.so copied to libavcodec.so.57.

    5)But these ffmpeg libraries in turn uses a differently named lib264.so file. on my new machine the apt-get command for x264 installed a file named libx264.so.148 but one of ffmpeg libraries is searching for file libx264.so.142 even if i rename this libx264.so file i get new errors where ffmpeg libraries tries to call libx264’s methods which has these numbers attached.

    6) at this time the only working option for me is to bring the c++ code on every new machine and build final.so file locally. this is something i want to avoid since i want to distribute the .so file along with jar file to my clients which they can easily use without having to build and install stuff.

  • Wrong second count for blackdetect filter in ffprobe

    10 avril 2016, par Jabb

    I issue this command on a 8 minutes 20 seconds video in order to detect blackframes.

    root@ubuntu:/home/hts# ffprobe -f lavfi -i "movie=test.ts,blackdetect[out0]" -show_entries tags=lavfi.black_start,lavfi.black_end -of default=nw=1

    I am expecting to get proper seconds back from ffprobe indicating where the blackframes are.

    Instead I receive very very high numbers.

    I need to mention that I cut this video from the end of a larger stream using tail. The stream is configured to add a keyframe every 0.5 seconds. Could this be the reason ? And how could I cope with this ?

    ffprobe version git-2016-03-31-54ccaae Copyright (c) 2007-2016 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
     configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-libmfx
     libavutil      55. 19.100 / 55. 19.100
     libavcodec     57. 33.100 / 57. 33.100
     libavformat    57. 29.101 / 57. 29.101
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 40.102 /  6. 40.102
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    [h264 @ 0x3222100] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0x3222100] decode_slice_header error
    [h264 @ 0x3222100] no frame!
    [h264 @ 0x3222100] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0x3222100] decode_slice_header error
    [h264 @ 0x3222100] no frame!
    [h264 @ 0x3222100] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0x3222100] decode_slice_header error
    [h264 @ 0x3222100] no frame!
    [h264 @ 0x3222100] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0x3222100] decode_slice_header error
    [h264 @ 0x3222100] no frame!
    [h264 @ 0x3222100] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0x3222100] decode_slice_header error
    [h264 @ 0x3222100] no frame!
    [h264 @ 0x3222100] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0x3222100] decode_slice_header error
    [h264 @ 0x3222100] no frame!
    [h264 @ 0x3222100] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0x3222100] decode_slice_header error
    [h264 @ 0x3222100] no frame!
    [h264 @ 0x3222100] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0x3222100] decode_slice_header error
    [h264 @ 0x3222100] no frame!
    [h264 @ 0x3222100] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0x3222100] decode_slice_header error
    [h264 @ 0x3222100] no frame!
    [h264 @ 0x3222100] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0x3222100] decode_slice_header error
    [h264 @ 0x3222100] no frame!
    Input #0, lavfi, from 'movie=test.ts,blackdetect[out0]':
     Duration: N/A, start: 78576.400000, bitrate: N/A
       Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x256 [SAR 1:1 DAR 5:4], 25 fps, 25 tbr, 90k tbn, 90k tbc
    TAG:lavfi.black_start=78681.9
    TAG:lavfi.black_end=78682
    TAG:lavfi.black_start=78720.5
    TAG:lavfi.black_end=78721.1
    TAG:lavfi.black_start=78761.4
    TAG:lavfi.black_end=78762.6
    TAG:lavfi.black_start=78770.9
    TAG:lavfi.black_end=78771
    TAG:lavfi.black_start=78781
    TAG:lavfi.black_end=78781.2
    TAG:lavfi.black_start=78801.2
    TAG:lavfi.black_end=78801.4
    TAG:lavfi.black_start=78821.4
    TAG:lavfi.black_end=78821.5
    TAG:lavfi.black_start=78851.5
    TAG:lavfi.black_end=78851.7
    TAG:lavfi.black_start=78871.7
    TAG:lavfi.black_end=78871.8
    TAG:lavfi.black_start=78891.8
    TAG:lavfi.black_end=78892
    TAG:lavfi.black_start=78919
    TAG:lavfi.black_end=78919.2
    TAG:lavfi.black_start=78949.2
    TAG:lavfi.black_end=78949.3
    TAG:lavfi.black_start=78979.3
    TAG:lavfi.black_end=78979.5
    TAG:lavfi.black_start=78999.5
    TAG:lavfi.black_end=78999.6
    TAG:lavfi.black_start=79022.6
    TAG:lavfi.black_end=79022.8
    TAG:lavfi.black_start=79042.8
    TAG:lavfi.black_end=79043
    TAG:lavfi.black_start=79063
    TAG:lavfi.black_end=79063.1
    [h264 @ 0x3260360] concealing 284 DC, 284 AC, 284 MV errors in P frame