Opened 5 years ago

Closed 5 years ago

#7840 closed defect (worksforme)

bgr24 rawvideo => Output Flipped Vertically

Reported by: miguelapg Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: avi
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: To have an uncompressed raw video output using the AVI RGB format, it's necessary to use the AviSynth command: "FlipVertical()" or ffmpeg: "-filter:v vflip" to fix the resulting video later, as a flipped vertically output is gotten.
How to reproduce:

ffmpeg -i input -pix_fmt bgr24 -vcodec rawvideo output.avi
ffmpeg version: latest
built on: any build

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (1)

bgr24_rawvideo.png (177.9 KB ) - added by miguelapg 5 years ago.

Download all attachments as: .zip

Change History (6)

by miguelapg, 5 years ago

Attachment: bgr24_rawvideo.png added

comment:1 by Gyan, 5 years ago

Full uncut log needed.

Can't reproduce with any input here.

comment:2 by Carl Eugen Hoyos, 5 years ago

Component: ffmpegundetermined
Keywords: vertical flip rgb rawvideo bgr24 removed

comment:3 by miguelapg, 5 years ago

This is the log ...

"ffmpeg.exe" -loglevel repeat+level+verbose -i "ant_man_and_the_wasp_trailer_2_usca_h1080p.mov" -pix_fmt bgr24 -vcodec rawvideo -an "ant_man_and_the_wasp_trailer_2_usca_h1080p.avi"
[info] ffmpeg version N-93528-gee16d14b0a Copyright (c) 2000-2019 the FFmpeg developers
[info] built with gcc 8.2.1 (GCC) 20190212
[info] configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
[info] libavutil 56. 26.100 / 56. 26.100
[info] libavcodec 58. 48.101 / 58. 48.101
[info] libavformat 58. 26.101 / 58. 26.101
[info] libavdevice 58. 7.100 / 58. 7.100
[info] libavfilter 7. 48.100 / 7. 48.100
[info] libswscale 5. 4.100 / 5. 4.100
[info] libswresample 3. 4.100 / 3. 4.100
[info] libpostproc 55. 4.100 / 55. 4.100
[h264 @ 000002242aa7c400] [verbose] Reinit context to 1920x816, pix_fmt: yuv420p
[info] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ant_man_and_the_wasp_trailer_2_usca_h1080p.mov':
[info] Metadata:
[info] major_brand : qt
[info] minor_version : 537199360
[info] compatible_brands: qt
[info] creation_time : 2018-05-01T15:13:35.000000Z
[info] com.apple.finalcutstudio.media.uuid: 455E617D-146A-4D2E-B1C7-4E33A6833575
[info] com.apple.finalcutstudio.media.history.uuid: 3E376E01-C517-48C8-A533-753B05AD667A
[info] timecode : 01:00:00:00
[info] Duration: 00:02:16.85, start: 0.000000, bitrate: 9575 kb/s
[info] Stream #0:0(eng): Video: h264 (Main), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, topleft), 1920x816, 9444 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc (default)
[info] Metadata:
[info] creation_time : 2018-05-01T15:13:35.000000Z
[info] handler_name : Apple Video Media Handler
[info] encoder : H.264
[info] Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
[info] Metadata:
[info] creation_time : 2018-05-01T15:13:35.000000Z
[info] handler_name : Time Code Media Handler
[info] timecode : 01:00:00:00
[info] Stream #0:2(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
[info] Metadata:
[info] creation_time : 2018-05-01T15:13:35.000000Z
[info] handler_name : Apple Sound Media Handler
[info] Stream mapping:
[info] Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
[info] Press [q] to stop, ? for help
[h264 @ 000002242aab8480] [verbose] Reinit context to 1920x816, pix_fmt: yuv420p
[graph 0 input from stream 0:0 @ 000002242b61ef00] [verbose] w:1920 h:816 pixfmt:yuv420p tb:1/24000 fr:24000/1001 sar:0/1 sws_param:flags=2
[auto_scaler_0 @ 000002242aee3140] [verbose] w:iw h:ih flags:'bicubic' interl:0
[format @ 000002242aaebd40] [verbose] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format'
[auto_scaler_0 @ 000002242aee3140] [verbose] w:1920 h:816 fmt:yuv420p sar:0/1 -> w:1920 h:816 fmt:bgr24 sar:0/1 flags:0x4
[info] Output #0, avi, to 'ant_man_and_the_wasp_trailer_2_usca_h1080p.avi':
[info] Metadata:
[info] major_brand : qt
[info] minor_version : 537199360
[info] compatible_brands: qt
[info] ISMP : 01:00:00:00
[info] com.apple.finalcutstudio.media.uuid: 455E617D-146A-4D2E-B1C7-4E33A6833575
[info] com.apple.finalcutstudio.media.history.uuid: 3E376E01-C517-48C8-A533-753B05AD667A
[info] ISFT : Lavf58.26.101
[info] Stream #0:0(eng): Video: rawvideo, 1 reference frame, bgr24(topleft), 1920x816, q=2-31, 901529 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc (default)
[info] Metadata:
[info] creation_time : 2018-05-01T15:13:35.000000Z
[info] handler_name : Apple Video Media Handler
[info] encoder : Lavc58.48.101 rawvideo
[verbose] No more output streams to write to, finishing.0:02:15.00 bitrate=901520.1kbits/s speed=5.01x
[info] frame= 3281 fps=120 q=-0.0 Lsize=15059851kB time=00:02:16.84 bitrate=901532.9kbits/s speed=5.02x
[info] video:15059790kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000406%
[verbose] Input file #0 (ant_man_and_the_wasp_trailer_2_usca_h1080p.mov):
[verbose] Input stream #0:0 (video): 3281 packets read (161555340 bytes); 3281 frames decoded;
[verbose] Input stream #0:1 (data): 0 packets read (0 bytes);
[verbose] Input stream #0:2 (audio): 42 packets read (11509 bytes);
[verbose] Total: 3323 packets (161566849 bytes) demuxed
[verbose] Output file #0 (ant_man_and_the_wasp_trailer_2_usca_h1080p.avi):
[verbose] Output stream #0:0 (video): 3281 frames encoded; 3281 packets muxed (15421224960 bytes);
[verbose] Total: 3281 packets (15421224960 bytes) muxed
[AVIOContext @ 000002242aae6300] [verbose] Statistics: 129 seeks, 58912 writeouts
[AVIOContext @ 000002242aa73580] [verbose] Statistics: 162962462 bytes read, 117 seeks

comment:5 by Carl Eugen Hoyos, 5 years ago

Resolution: worksforme
Status: newclosed

Works as expected here with current FFmpeg git head.

Note: See TracTickets for help on using tickets.