[FFmpeg-user] [Bulk] Re: [Bulk] Re: Handling uyvy files has changed.

Tim Nicholson nichot20 at yahoo.com
Tue Sep 4 09:21:31 CEST 2012


On 03/09/12 22:49, Carl Eugen Hoyos wrote:
> Tim Nicholson <nichot20 <at> yahoo.com> writes:
> 
>> As the parameters were in a script (to avoid inconsistencies due to
>> typos) ;) I know it wasn't a one off, but to be honest as its working
>> now I am more curious as to why the 4CC lists the vectors in the wrong
>> order compared to the way they are packed, it seems a tad inconsistent!
> 
> (I may be wrong but I suspect you just found out how 4CCs are 
> defined.)
> I just tested (again) to encode uyvy422 rawvideo to mov using 
> current git head and an ancient version: In both cases, it worked 
> as expected with -vtag 2vuy and did not work without -vtag.
> 

I have never got it to work without the vtag, but as per below with the
wrong vtag on the revision I previously mentioned, but not with the
wrong vtag on more recent builds.


> Please understand that FFmpeg developers are generally very 
> interested in regressions, but I cannot reproduce a regression 
> in this case and I especially can't imagine one so far.
> If there really is a regression, please provide command line and 
> complete, uncut console output for a revision that I can checkout.
> 

ffmpeg_bisect -pix_fmt uyvy422 -s 1920x1080 -i smpte_hd.yuv -c:v copy
-vtag 2uvy -y ./smpte_hd-bisect.mov
ffmpeg version N-41820-g13ba872-by_Tim Copyright (c) 2000-2012 the
FFmpeg developers
  built on Sep  4 2012 08:05:55 with gcc 4.6.2
  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=_bisect --enable-libfaac --enable-libx264
--enable-libfree  libavutil      51. 60.100 / 51. 60.100
  libavcodec     54. 29.100 / 54. 29.100
  libavformat    54. 11.100 / 54. 11.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 82.100 /  2. 82.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[rawvideo @ 0x1805ae0] Estimating duration from bitrate, this may be
inaccurate
Input #0, rawvideo, from 'smpte_hd.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 './smpte_hd-bisect.mov':
  Metadata:
    encoder         : Lavf54.11.100
    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
Truncating packet of size 4147200 to 1
frame=    1 fps=0.0 q=-1.0 Lsize=    4051kB time=00:00:00.04
bitrate=829583.2kbits/s


video:4050kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.017265%

Then plays with an almost current ffplay........

ffplay smpte_hd-bisect.mov
ffplay version N-44123-g5d55830-by_Tim Copyright (c) 2003-2012 the
FFmpeg developers
  built on Sep  3 2012 11:00:04 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
--enable-runtime-cpudetect
--extra-cflags=-I/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/include
--extra-ldflags=-L/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64
--progs-suffix=_Sep-03 --disable-ffserver --disable-ffmpeg --disable-ffprobe
  libavutil      51. 70.100 / 51. 70.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 25.104 / 54. 25.104
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 15.102 /  3. 15.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'smpte_hd-bisect.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    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
    Metadata:
      handler_name    : DataHandler
Frame changed from size:0x0 to size:1920x1080
   8.22 A-V:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   0/0




> Carl Eugen
> 
> [..]


-- 
Tim




More information about the ffmpeg-user mailing list