[FFmpeg-user] LLossless (10 Bit RGB 444) and (10 Bit YUV 422) Compression

Jason Freets jasonslife at hotmail.com
Sun Dec 28 10:38:58 CET 2014


I converted the 5sec r10k video to an Mp4 file, and then dropped it up on DropBox for you Carl: 

https://www.dropbox.com/s/f0bhq9rw6cofpzf/10BitRGB444_r10k_5sec_to_MP4.avi?dl=0

Playing through FFPlay I actually see:

https://www.dropbox.com/s/ui3ix2immvmqzza/10BitRGB444_r10k_5sec.png?dl=0

It is the same even when viewing the Mp4 file. They both look the same (FFplay, VLC, ...etc).

Cheers,

Jason

///////////////////////////////////////////////////////////////////////////////
// r10k -> Mpeg4 
// Input: 10BitRGB444_r10k_5sec.avi
// Output: 10BitRGB444_r10k_5sec_to_MP4.avi
// Result: Incorrect video playback
///////////////////////////////////////////////////////////////////////////////

E:\ffmpeg-20141225-git-1515bfb-win64-static>ffmpeg -i "10BitRGB444_r10k_5sec.avi
" -vcodec mpeg4 -qscale:v 2 10BitRGB444_r10k_5sec_to_MP4.avi
ffmpeg version N-68675-g1515bfb Copyright (c) 2000-2014 the FFmpeg developers
  built on Dec 24 2014 23:09:08 with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 16.100 / 56. 16.100
  libavformat    56. 16.101 / 56. 16.101
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  5.101 /  5.  5.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, avi, from '10BitRGB444_r10k_5sec.avi':
  Metadata:
    encoder         : Lavf56.16.101
  Duration: 00:00:05.01, start: 0.000000, bitrate: 335602 kb/s
    Stream #0:0: Video: r10k (r10k / 0x6B303172), rgb48le(10 bpc), 720x486, 3378
39 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
Output #0, avi, to '10BitRGB444_r10k_5sec_to_MP4.avi':
  Metadata:
    ISFT            : Lavf56.16.101
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x486, q=2-31, 200
 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc56.16.100 mpeg4
Stream mapping:
  Stream #0:0 -> #0:0 (r10k (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
frame=   47 fps=0.0 q=2.0 size=   22200kB time=00:00:01.56 bitrate=115967.4kbits
frame=  105 fps=105 q=2.0 size=   49690kB time=00:00:03.50 bitrate=116186.0kbits
frame=  150 fps=108 q=2.0 Lsize=   70666kB time=00:00:05.00 bitrate=115663.5kbit
s/s
video:70657kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
 overhead: 0.012949%

E:\ffmpeg-20141225-git-1515bfb-win64-static>

///////////////////////////////////////////////////////////////////////////////
// end
///////////////////////////////////////////////////////////////////////////////

> Subject: Re: [FFmpeg-user] LLossless (10 Bit RGB 444) and (10 Bit YUV 422) Compression
> 
> As promised, I said I would provide some "real video". So I've uploaded a 5 second 10 Bit RGB 444 r10k sample:
> 
> https://www.dropbox.com/s/exio9nmoxnbcyu6/10BitRGB444_r10k_5sec.avi?dl=0
> 
> I think it'll be clear when you play that if your video looks correct or not.
> 
> Thanks! =)
> 
> Jason
> 
> 
> > Subject: Re: [FFmpeg-user] LLossless (10 Bit RGB 444) and (10 Bit YUV 422) Compression
> > 
> > > Subject: Re: [FFmpeg-user] LLossless (10 Bit RGB 444) and (10 Bit YUV 422)	Compression
> > > 
> > > Jason Freets <jasonslife <at> hotmail.com> writes:
> > > 
> > > > Here's the result of what I see when playing the 
> > > > 10BitRGB444_r10k_2sec.avi I sent you:
> > > > 
> > > > https://www.dropbox.com/s/l3512t3qarkdt2i/FFPlay_Playing10BitRGB444_r10k.png
> > > 
> > > If you don't like this output, please either 
> > > choose an input file that everybody can 
> > > recognize or provide the intended output.
> > 
> > Agreed, it does help if I provide a frame of reference...so very good point. The 2 second video is NTSC color bars. I figured one would be cognitive of what that may look like ;). If you were able to play the 2 second r10k file correctly, you would have noticed they are NTSC color bars. If not, then yes, you'd have no idea if what you are viewing is playing correctly or not. So a frame of reference helps in our case.
> >  
> > Here's a video of the "10BitRGB444_r10k_2sec.avi" file converted to a MP4 that plays correctly:
> > 
> > https://www.dropbox.com/s/tt1x5ntx4ahll12/10BitRGB444_r10k_to_MP4.avi?dl=0
> > 
> > And, here's a reference screen shot of what I see when I play it through VLC:
> > 
> > https://www.dropbox.com/s/lizv2oedaptj9ik/10BitRGB444_r10k_to_MP4.png?dl=0
> > 
> > Also, I went ahead and GIT'ed the FFMpeg repository and built in under Linux. I then re-ran the conversions that I was doing under Windows. I get the same results as shown in "FFPlay_Playing10BitRGB444_r10k.png" which I uploaded earlier (i.e that's what I see when playing the Linux converted file too: no different outcome).
> > 
> > So either on Linux or Windows, I still don't get a correct conversion that views correctly. So, I suppose that remains to be the mystery.
> > 
> > I'll try to pull from some real video (non NTSC color bars) I have and provide a sample of that too later.
> > 
> > Cheers,
> > 
> > Jason
> > 
> > > 
> > > (Nobody has reported in four years that 
> > > something is wrong when decoding r10k.)
> > > 
> > > I assumed it is correct.
> > > 
> > > Carl Eugen
> > > 
> > > _______________________________________________
> > > ffmpeg-user mailing list
> > > ffmpeg-user at ffmpeg.org
> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >  		 	   		  
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>  		 	   		  
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
 		 	   		  


More information about the ffmpeg-user mailing list