Changes between Initial Version and Version 1 of Ticket #2407, comment 4


Ignore:
Timestamp:
Mar 28, 2013, 1:39:47 PM (7 years ago)
Author:
cehoyos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2407, comment 4

    initial v1  
    1 I tested the following:
    2 {{{
    3 $ ffmpeg -i ffv1.avi -pix_fmt bgr24 out.bmp
    4 $ ffmpeg -i ffv1.avi -pix_fmt rgb24 out.png
    5 }}}
    6 {{{
    7 $ ffmpeg -i out.png -i out.bmp -map 0 -f framecrc -pix_fmt bgr24 - -map 1 -f framecrc -
    8 ffmpeg version N-51338-g914f48d Copyright (c) 2000-2013 the FFmpeg developers
    9   built on Mar 28 2013 11:17:21 with gcc 4.7 (SUSE Linux)
    10   configuration: --enable-gpl --disable-indev=jack
    11   libavutil      52. 22.101 / 52. 22.101
    12   libavcodec     55.  1.100 / 55.  1.100
    13   libavformat    55.  0.100 / 55.  0.100
    14   libavdevice    55.  0.100 / 55.  0.100
    15   libavfilter     3. 48.105 /  3. 48.105
    16   libswscale      2.  2.100 /  2.  2.100
    17   libswresample   0. 17.102 /  0. 17.102
    18   libpostproc    52.  2.100 / 52.  2.100
    19 Input #0, image2, from 'out.png':
    20   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    21     Stream #0:0: Video: png, rgb24, 1920x1080, 25 tbr, 25 tbn, 25 tbc
    22 [image2 @ 0x32c9440] Stream #0: not enough frames to estimate rate; consider increasing probesize
    23 Input #1, image2, from 'out.bmp':
    24   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    25     Stream #1:0: Video: bmp, bgr24, 1920x1080, 25 tbr, 25 tbn, 25 tbc
    26 #tb 0: 1/25
    27 #tb 0: 1/25
    28 Output #0, framecrc, to 'pipe:':
    29   Metadata:
    30     encoder         : Lavf55.0.100
    31     Stream #0:0: Video: rawvideo (BGR[24] / 0x18524742), bgr24, 1920x1080, q=2-31, 200 kb/s, 25 tbn, 25 tbc
    32 Output #1, framecrc, to 'pipe:':
    33   Metadata:
    34     encoder         : Lavf55.0.100
    35     Stream #1:0: Video: rawvideo (BGR[24] / 0x18524742), bgr24, 1920x1080, q=2-31, 200 kb/s, 25 tbn, 25 tbc
    36 Stream mapping:
    37   Stream #0:0 -> #0:0 (png -> rawvideo)
    38   Stream #1:0 -> #1:0 (bmp -> rawvideo)
    39 Press [q] to stop, [?] for help
    40 0,          0,          0,        1,  6220800, 0x43fb7af4
    41 0,          0,          0,        1,  6220800, 0x43fb7af4
    42 frame=    1 fps=0.0 q=0.0 Lq=0.0 size=       0kB time=00:00:00.04 bitrate=  14.0kbits/s
    43 video:12150kB audio:0kB subtitle:0 global headers:0kB muxing overhead -99.999437%
    44 }}}
    45 {{{
    46 $ffmpeg -i out.png -i out.bmp -map 0 -f framecrc - -map 1 -f framecrc -pix_fmt rgb24 -
    47 ffmpeg version N-51338-g914f48d Copyright (c) 2000-2013 the FFmpeg developers
    48   built on Mar 28 2013 11:17:21 with gcc 4.7 (SUSE Linux)
    49   configuration: --enable-gpl --disable-indev=jack
    50   libavutil      52. 22.101 / 52. 22.101
    51   libavcodec     55.  1.100 / 55.  1.100
    52   libavformat    55.  0.100 / 55.  0.100
    53   libavdevice    55.  0.100 / 55.  0.100
    54   libavfilter     3. 48.105 /  3. 48.105
    55   libswscale      2.  2.100 /  2.  2.100
    56   libswresample   0. 17.102 /  0. 17.102
    57   libpostproc    52.  2.100 / 52.  2.100
    58 Input #0, image2, from 'out.png':
    59   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    60     Stream #0:0: Video: png, rgb24, 1920x1080, 25 tbr, 25 tbn, 25 tbc
    61 [image2 @ 0x261c440] Stream #0: not enough frames to estimate rate; consider increasing probesize
    62 Input #1, image2, from 'out.bmp':
    63   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    64     Stream #1:0: Video: bmp, bgr24, 1920x1080, 25 tbr, 25 tbn, 25 tbc
    65 #tb 0: 1/25
    66 #tb 0: 1/25
    67 Output #0, framecrc, to 'pipe:':
    68   Metadata:
    69     encoder         : Lavf55.0.100
    70     Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1920x1080, q=2-31, 200 kb/s, 25 tbn, 25 tbc
    71 Output #1, framecrc, to 'pipe:':
    72   Metadata:
    73     encoder         : Lavf55.0.100
    74     Stream #1:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1920x1080, q=2-31, 200 kb/s, 25 tbn, 25 tbc
    75 Stream mapping:
    76   Stream #0:0 -> #0:0 (png -> rawvideo)
    77   Stream #1:0 -> #1:0 (bmp -> rawvideo)
    78 Press [q] to stop, [?] for help
    79 0,          0,          0,        1,  6220800, 0x03f17af4
    80 0,          0,          0,        1,  6220800, 0x03f17af4
    81 frame=    1 fps=0.0 q=0.0 Lq=0.0 size=       0kB time=00:00:00.04 bitrate=  14.0kbits/s
    82 video:12150kB audio:0kB subtitle:0 global headers:0kB muxing overhead -99.999437%
    83 }}}
    84 Is the problem reproducible with out.png but not out.bmp? Is there (also) a problem with the conversion from rgb24 to bgr24?