Recherche avancée

Médias (91)

Autres articles (63)

Sur d’autres sites (4008)

  • ffmpeg does not produce a slideshow

    1er mai 2021, par ArekBulski

    I need some help with ffmpeg. I cant crack this one at all. I have 7 png files ready. I need to make a slideshow out of it. But the mkv produced shows and closes. It does not play properly.

    


    $ ffmpeg -framerate 1/5 -i temp-display-%08d.png -c:v libx265 temp-output.mkv

ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)
  configuration: --prefix=/usr --extra-version=4ubuntu1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  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, image2, from 'temp-display-%08d.png':
  Duration: 00:00:35.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgba(pc), 1080x1080 [SAR 3779:3779 DAR 1:1], 0.20 fps, 0.20 tbr, 0.20 tbn, 0.20 tbc
File 'temp-output.mkv' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> hevc (libx265))
Press [q] to stop, [?] for help
x265 [info]: HEVC encoder version 3.4
x265 [info]: build info [Linux][GCC 9.3.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX XOP FMA4 FMA3 BMI1
x265 [warning]: halving the quality when psy-rd is enabled for 444 input. Setting cbQpOffset = 6 and crQpOffset = 6
x265 [info]: Main 4:4:4 profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(17 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias  : 1 / 250 / 40 / 5.00 
x265 [info]: Cb/Cr QP Offset                     : 6 / 6
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: b-intra strong-intra-smoothing lslices=6 deblock sao
Output #0, matroska, to 'temp-output.mkv':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: hevc (libx265), gbrp, 1080x1080 [SAR 1:1 DAR 1:1], q=-1--1, 0.20 fps, 1k tbn, 0.20 tbc
    Metadata:
      encoder         : Lavc58.91.100 libx265
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=    7 fps=0.0 q=24.9 Lsize=     113kB time=00:00:20.00 bitrate=  46.1kbits/s speed=29.2x    
video:110kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 2.725160%
x265 [info]: frame I:      1, Avg QP:18.04  kb/s: 117.69  
x265 [info]: frame P:      3, Avg QP:20.62  kb/s: 15.70   
x265 [info]: frame B:      3, Avg QP:24.17  kb/s: 4.94    
x265 [info]: Weighted P-Frames: Y:33.3% UV:0.0%
x265 [info]: consecutive B-frames: 50.0% 25.0% 25.0% 0.0% 0.0% 


    


  • lavfi/dnn_backend_native_layer_avgpool.h : Documentation

    13 mai 2021, par Shubhanshu Saxena
    lavfi/dnn_backend_native_layer_avgpool.h : Documentation
    

    Add documentation for Average Pool Layer

    Signed-off-by : Shubhanshu Saxena <shubhanshu.e01@gmail.com>

    • [DH] libavfilter/dnn/dnn_backend_native_layer_avgpool.h
  • does ffmpeg allocate memory and will not release immediately when encoding and decoding ?

    24 juin 2021, par Tangtoo

    i want to transform videos to jpeg and wav as output. I wrote the programm by myself with FFmpeg-api. The video(.webm e.g.) is decoded and video and audio frames are encoded to jpeg and wav. With running of the program, more and more videos are converted but more and more rss are used(top cmd in linux).

    &#xA;

    I have also used valgrind to test if there is memory leak. And there is None.

    &#xA;

    The rss increases not linear and like follows(just example) :

    &#xA;

    1 video : 30m&#xA;2 video : 150m&#xA;3 video : 200m&#xA;4 video : 220m&#xA;5 video : 220m&#xA;6 video : 230m

    &#xA;

    The programm run in docker container and k8s with memory limit(2G). After days(about 30000 videos are processed for example) the pod will be force restarted.

    &#xA;

    Is it real memory leak ? Or these memory are keeped by ffmpeg lib as memory pool or something ?&#xA;Thanks

    &#xA;