[FFmpeg-user] BGR24-YUV420-BGR24 conversion on raw video

Timo S timo.infradex at gmail.com
Tue Sep 18 14:32:54 CEST 2012


ffmpeg -s 848x480 -i D:\sintel_7.yuv -vcodec rawvideo -pix_fmt bgr
24 sintel_7_rawYUVDecoded.avi
ffmpeg version N-41074-g9c27f29 Copyright (c) 2000-2012 the FFmpeg
developers
  built on May 27 2012 13:25:48 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libass
 --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex
--enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--e
nable-zlib
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[rawvideo @ 00000000003af340] Estimating duration from bitrate, this may be
inac
curate
Input #0, rawvideo, from 'D:\sintel_7.yuv':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 848x480, 25
tbr,
25 tbn, 25 tbc
[buffer @ 0000000001f94f40] w:848 h:480 pixfmt:yuv420p tb:1/25 sar:0/1
sws_param
:flags=2
[buffersink @ 0000000001f95e20] No opaque field provided
[format @ 0000000001f82b00] auto-inserting filter 'auto-inserted scaler 0'
betwe
en the filter 'src' and the filter 'format'
[scale @ 0000000001f83420] w:848 h:480 fmt:yuv420p sar:0/1 -> w:848 h:480
fmt:bg
r24 sar:0/1 flags:0x4
Output #0, avi, to 'sintel_7_rawYUVDecoded.avi':
  Metadata:
    ISFT            : Lavf54.6.101
    Stream #0:0: Video: rawvideo, bgr24, 848x480, q=2-31, 200 kb/s, 25 tbn,
25 t
bc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> rawvideo)
Press [q] to stop, [?] for help
Truncating packet of size 610560 to 1
frame=   98 fps=0.0 q=0.0 Lsize=  116873kB time=00:00:03.92
bitrate=244240.4kbit
s/s
video:116865kB audio:0kB global headers:0kB muxing overhead 0.006713%

C:\Users\Timo>ffmpeg -s 848x480 -i D:\sintel_7.yuv -vcodec rawvideo -pix_fmt
bgr
24 d:\sintel_7_rawYUVDecoded.avi
ffmpeg version N-41074-g9c27f29 Copyright (c) 2000-2012 the FFmpeg
developers
  built on May 27 2012 13:25:48 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libass
 --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex
--enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--e
nable-zlib
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[rawvideo @ 00000000003df380] Estimating duration from bitrate, this may be
inac
curate
Input #0, rawvideo, from 'D:\sintel_7.yuv':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 848x480, 25
tbr,
25 tbn, 25 tbc
[buffer @ 0000000000344f80] w:848 h:480 pixfmt:yuv420p tb:1/25 sar:0/1
sws_param
:flags=2
[buffersink @ 0000000000345e60] No opaque field provided
[format @ 0000000000332b20] auto-inserting filter 'auto-inserted scaler 0'
betwe
en the filter 'src' and the filter 'format'
[scale @ 0000000000333440] w:848 h:480 fmt:yuv420p sar:0/1 -> w:848 h:480
fmt:bg
r24 sar:0/1 flags:0x4
Output #0, avi, to 'd:\sintel_7_rawYUVDecoded.avi':
  Metadata:
    ISFT            : Lavf54.6.101
    Stream #0:0: Video: rawvideo, bgr24, 848x480, q=2-31, 200 kb/s, 25 tbn,
25 t
bc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> rawvideo)
Press [q] to stop, [?] for help
Truncating packet of size 610560 to 1
frame=   98 fps=0.0 q=0.0 Lsize=  116873kB time=00:00:03.92
bitrate=244240.4kbit
s/s
video:116865kB audio:0kB global headers:0kB muxing overhead 0.006713%



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/BGR24-YUV420-BGR24-conversion-on-raw-video-tp4653539p4653541.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list