Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • Which parts of ffmpeg to compile for gif processing in Android ?

    10 mars 2018, par JasonStack

    I need to add gif creation to an Android application. The FFmpeg library, as it stands, is too big for my needs. Which parts (directories) of the library source code do I need to compile with NDK for my application?

    cmake_minimum_required(VERSION 3.4.1)
    
    add_library( # Name of the library 
                 ffmpeg
    
                 # Sets the library as a shared library.
                 SHARED
    
                 # Provides a relative path to your source file(s).
                 src/main/cpp/ffmpeg )
    
  • ffmpeg how to append a single jpeg-image frame to a mp4 video ?

    10 mars 2018, par neoexpert

    Is there a way to do this without recoding the whole video? I need that for timelapse videos: for now I have a set of jpeg images which can be converted to a Video:

    ffmpeg -framerate 30 -pattern_type glob -i './fotos/*.jpg' -c:v libx264 -pix_fmt yuv420p out.mp4
    

    All the images do take much more disk space as the mp4 video. My best solution for this is to create a video for every 300 images and concat it with previous result video. But this operation take too much ressources (ram, processor, etc) and is not doable on my Raspberry PI zero W.

  • Create video from set of images [duplicate]

    10 mars 2018, par Phillip Fotosyntese Jensen

    This question already has an answer here:

    I want to create a video file that is made from all of my Images. I have found my command to do so ffmpeg -framerate 25 -i *.jpg -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p output.mp4 but I have a really large collection of images so the terminal is hitting me with "bash: /usr/bin/ffmpeg: Argument list too long" . How can I bypass this?

  • FFmpeg destroys my Images

    10 mars 2018, par dazzafact

    Rightnow iam trying to render a Video reading my image Folder with about 83 Images. Iam using this FFMPEG Snip:

     ffmpeg -f image2   -i images/*.jpg  -b 450k -r 30  zoom100.avi  2>&1
    

    But iam really frustrated, FFMPEG always replace all my Images with the first Image. And The video it also creates me is about 2 Frames long Here the FFMPEF Feedback

    ffmpeg version 0.8.17-4:0.8.17-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
      built on Mar 16 2015 13:26:50 with gcc 4.6.3
    The ffmpeg program is only provided for script compatibility and will be removed
    in a future release. It has been deprecated in the Libav project to allow for
    incompatible command line syntax improvements in its replacement called avconv
    (see Changelog for details). Please use avconv instead.
    Input #0, image2, from 'images/0750.jpg':
      Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
        Stream #0.0: Video: mjpeg, yuvj420p, 1280x1280 [PAR 72:72 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
    [buffer @ 0x24a4220] w:1280 h:1280 pixfmt:yuvj420p
    [buffer @ 0x24a4a00] w:1280 h:1280 pixfmt:yuvj420p
    [buffer @ 0x24a52c0] w:1280 h:1280 pixfmt:yuvj420p
    [buffer @ 0x24a5b20] w:1280 h:1280 pixfmt:yuvj420p
    .....
    .....
    .....
    .....
    .....
    .....
    
    [buffer @ 0x24d4320] w:1280 h:1280 pixfmt:yuvj420p
    Incompatible pixel format 'yuvj420p' for codec 'mpeg4', auto-selecting format 'yuv420p'
    [buffer @ 0x24d03c0] w:1280 h:1280 pixfmt:yuvj420p
    [avsink @ 0x24ceea0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
    [scale @ 0x24cc460] w:1280 h:1280 fmt:yuvj420p -> w:1280 h:1280 fmt:yuv420p flags:0x4
    Output #0, image2, to 'images/0751.jpg':
      Metadata:
        encoder         : Lavf53.21.1
        Stream #0.0: Video: mjpeg, yuvj420p, 1280x1280 [PAR 72:72 DAR 1:1], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Output #1, image2, to 'images/0752.jpg':
      Metadata:
        encoder         : Lavf53.21.1
        Stream #1.0: Video: mjpeg, yuvj420p, 1280x1280 [PAR 72:72 DAR 1:1], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Output #2, image2, to 'images/0753.jpg':
      Metadata:
        encoder         : Lavf53.21.1
        Stream #2.0: Video: mjpeg, yuvj420p, 1280x1280 [PAR 72:72 DAR 1:1], q=2-31, 200 kb/s, 90k tbn, 25 tbc
        ....
        ....
        ....
        ....
    Output #82, image2, to 'images/0833.jpg':
      Metadata:
        encoder         : Lavf53.21.1
        Stream #82.0: Video: mjpeg, yuvj420p, 1280x1280 [PAR 72:72 DAR 1:1], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Output #83, avi, to 'zoom100.avi':
      Metadata:
        ISFT            : Lavf53.21.1
        Stream #83.0: Video: mpeg4, yuv420p, 1280x1280 [PAR 1:1 DAR 1:1], q=2-31, 450 kb/s, 30 tbn, 30 tbc
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.0 -> #1.0
      Stream #0.0 -> #2.0
      Stream #0.0 -> #3.0
      Stream #0.0 -> #4.0
        ....
        ....
    
      Stream #0.0 -> #80.0
      Stream #0.0 -> #81.0
      Stream #0.0 -> #82.0
      Stream #0.0 -> #83.0
    Press ctrl-c to stop encoding
    frame=    1 fps=  0 q=7.0 Lq=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=7.0 q=6.5 size=      -0kB time=0.03 bitrate=  -5.3kbits/s    
    video:16698kB audio:0kB global headers:0kB muxing overhead -100.000129%
    
  • Lossless RGB24 to YUV444 transformation

    10 mars 2018, par Squid

    I am currently attempting to undergo lossless compression of RGB24 files using H264 on FFMPEG. However, the color space transformation used in the H264 compression (RGB24 -> YUV444) has proven to be lossy (I'm guessing due to quantisation error). Is there anything else I can use (eg a program) to transform my RGB24 files to YUV losslessly, before compressing them with lossless H264?

    The ultimate goal is to compress an RGB24 file then decompress it, with the decompressed file exactly matching the original file. eg RGB24 -> YUV444 -> compressed YUV44 -> decompressed YUV444 -> RGB24.

    Is this at all possible?