[FFmpeg-user] jpeg2000/libopenjpeg lossless?
Peter B.
pb at das-werkstatt.com
Tue Dec 17 23:45:50 CET 2013
On 12/17/2013 06:50 PM, Dave Rice wrote:
> I am having similar issues. For instance encode to yuv422p10le jpeg2000 and pipe to ffplay shows chroma problems. I'm running git-master, compiled a few minutes ago with libopenjpeg. Here's a sample command to show the issue in yuv422p10le. yuv422p and yuv420p look similarly odd.
Same here.
I've verified Dave's commandline with the video I've used for my tests
(http://media.xiph.org/video/derf/y4m/football_422_ntsc.y4m):
The chroma seems distorted and stretched.
Git HEAD built a few minutes ago with libopenjpeg-dev from the main
Ubuntu 12.04.1 repositories (1.3+dfsg-4+squeeze2build0.12.04.1).
I've ran Dave's test command with "yuv422p" and "mandelbrot":
------------------------------------------------------------------
$ ffmpeg -f lavfi -i mandelbrot -pix_fmt yuv422p -c:v libopenjpeg -f nut
- | ffplay -
------------------------------------------------------------------
ffplay version N-59183-g3e62654ffmpeg version N-59183-g3e62654 Copyright
(c) 2000-2013 the FFmpeg developers Copyright (c) 2003-2013 the FFmpeg
developers
built on Dec 17 2013 23:09:40 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
built on Dec 17 2013 23:09:40 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
--enable-version3 --enable-postproc --enable-swscale --enable-avfilter
--enable-pthreads --enable-bzlib --enable-zlib --enable-libmp3lame
--enable-libvorbis --enable-libxvid --enable-libopenjpeg
--enable-decoder=png --enable-encoder=png --enable-libfreetype
--enable-libschroedinger --enable-libvpx --enable-libvorbis
--enable-libx264 --enable-libfaac
configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
--enable-version3 --enable-postproc --enable-swscale --enable-avfilter
--enable-pthreads --enable-bzlib --enable-zlib --enable-libmp3lame
--enable-libvorbis --enable-libxvid --enable-libopenjpeg
--enable-decoder=png --enable-encoder=png --enable-libfreetype
--enable-libschroedinger --enable-libvpx --enable-libvorbis
--enable-libx264 --enable-libfaac
libavutil 53. 0.100 / 53. 0.100
libavutil 53. 0.100 / 53. 0.100
libavcodec 55. 45.102 / 55. 45.102
libavcodec 55. 45.102 / 55. 45.102
libavformat 55. 22.100 / 55. 22.100
libavformat 55. 22.100 / 55. 22.100
libavdevice 55. 5.102 / 55. 5.102
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 0.100 / 4. 0.100
libavfilter 4. 0.100 / 4. 0.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libswscale 2. 5.101 / 2. 5.101
libpostproc 52. 3.100 / 52. 3.100
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, lavfi, from 'mandelbrot':0KB vq= 0KB sq= 0B f=0/0
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (RGBA / 0x41424752), rgba, 640x480 [SAR
1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Output #0, nut, to 'pipe:':
Metadata:
encoder : Lavf55.22.100
Stream #0:0: Video: jpeg2000 (libopenjpeg) (mjp2 / 0x32706A6D),
yuv422p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 51200 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> libopenjpeg)
Press [q] to stop, [?] for help
Input #0, nut, from 'pipe:':aq= 0KB vq= 0KB sq= 0B f=0/0
6759.5kbits/s
Metadata:
encoder : Lavf55.22.100
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: jpeg2000 (JPEG 2000 codestream restriction 0)
(mjp2 / 0x32706A6D), yuv422p, 640x480, SAR 1:1 DAR 4:3, 25 fps, 25 tbr,
51200 tbn, 51200 tbc
9.52 M-V: 4.940 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
5814.6kbits/s
More information about the ffmpeg-user
mailing list