[FFmpeg-user] Handling uyvy files has changed.
Tim Nicholson
nichot20 at yahoo.com
Thu Aug 23 11:49:45 CEST 2012
I have a number of test signal files in packed uyvy422 format.
I used to convert these to something more usable with a command line of
the following:-
ffmpeg -pix_fmt uyvy422 -s 1920x1080 -i HD-bars-709.yuv -c:v copy -vtag
2uvy -y ./HD-bars-709.mov
ffmpeg version N-43328-gddac621-by_Tim Copyright (c) 2000-2012 the
FFmpeg developers
built on Aug 8 2012 09:48:49 with gcc 4.6 (SUSE Linux)
configuration: --extra-version=by_Tim --enable-static --disable-shared
--enable-gpl --enable-nonfree --enable-version3
--prefix=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local
--libdir=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64
--samples=../fate-suite/ --enable-runtime-cpudetect
--extra-cflags='-static
-I/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/include'
--extra-ldflags='-static
-L/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64'
--progs-suffix=_Aug-08 --disable-ffserver --enable-libfaac
--enable-libfdk-aac --enable-libx264 --enable-libfreetype --disable-ffplay
libavutil 51. 67.100 / 51. 67.100
libavcodec 54. 51.100 / 54. 51.100
libavformat 54. 22.101 / 54. 22.101
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 6.100 / 3. 6.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[rawvideo @ 0x1891c40] Estimating duration from bitrate, this may be
inaccurate
Input #0, rawvideo, from 'HD-bars-709.yuv':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422,
1920x1080, 25 tbr, 25 tbn, 25 tbc
Output #0, mov, to './HD-bars-709.mov':
Metadata:
encoder : Lavf54.22.101
Stream #0:0: Video: rawvideo (raw / 0x20776172), uyvy422,
1920x1080, q=2-31, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
This worked quite happily for files that when probed show
[...]
encoder : Lavf54.11.100
Duration: 00:00:00.04, start: 0.000000, bitrate: 829583 kb/s
Stream #0:0(eng): Video: rawvideo (2vuy / 0x79757632), uyvy422,
1920x1080, 829440 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
but with the above build I get:-
encoder : Lavf54.22.100
Duration: 00:00:00.04, start: 0.000000, bitrate: 829583 kb/s
Stream #0:0(eng): Video: rawvideo (raw / 0x20776172), rgb24,
1920x1080, 829440 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
and the files are garbage.
Note that ffprobe reports the format as rgb24 whilst ffmpeg says it has
encoded uyvy422!!
Is there some command line change I have missed, or is this a regression?
--
Tim
More information about the ffmpeg-user
mailing list