Opened 3 years ago

Closed 2 years ago

#2916 closed enhancement (fixed)

uspp filter & spupport yuv444p

Reported by: chronek Owned by:
Priority: wish Component: avfilter
Version: git-master Keywords: uspp mpfilter
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I requesting new feature - yuv444p pixel format support by filter uspp

uspp is filter from libmpcodecs, it doing full compresion/decompression based on snow codec, now only support 420p/yv12 and some gray pixel formats (FFmpeg N-55702-g920046a), snow encoder support 444p pixel format - it would be nice to add that format to uspp supported formats


I using this filter by:
source rgb24 -> scale -> uspp -> 444p -> unsharp -> scale -> lossless output rgb24
and uspp losing color information cause support only 420p

ffmpeg output:

C:\inne>ffmpeg.exe -loglevel verbose -i in.avi -threads 8 -an -sws_dither bayer -vf [in]scale=1584:1080:spline,mp=uspp=7:8,format=yuv444p,unsharp=7:7:1.0:7:7:1.0,scale=1056:720:spline,format=rgb24[out] -vcodec huffyuv out2.avi
ffmpeg version N-55702-g920046a Copyright (c) 2000-2013 the FFmpeg developers

built on Aug 21 2013 18:07:12 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 42.100 / 52. 42.100
libavcodec 55. 29.100 / 55. 29.100
libavformat 55. 14.101 / 55. 14.101
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 82.100 / 3. 82.100
libswscale 2. 5.100 / 2. 5.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100

[avi @ 000000000038ccc0] parser not found for codec huffyuv, packets or times may be invalid.

Last message repeated 1 times

Input #0, avi, from 'in.avi':

Duration: 00:00:00.33, start: 0.000000, bitrate: 550501 kb/s

Stream #0:0: Video: huffyuv (HFYU / 0x55594648), bgra, 1024x768, 30 tbr, 30 tbn, 30 tbc

[Parsed_scale_0 @ 00000000046287c0] w:1584 h:1080 flags:'0x4' interl:0
[Parsed_mp_1 @ 00000000003882c0] 'uspp' is a wrapped MPlayer filter (libmpcodecs). This filter may be removed
once it has been ported to a native libavfilter.
[Parsed_scale_4 @ 000000000038a200] w:1056 h:720 flags:'0x4' interl:0
[graph 0 input from stream 0:0 @ 000000000038abe0] w:1024 h:768 pixfmt:bgra tb:333333/10000000 fr:10000000/333333 sar:0/1 sws_param:flags=2
[auto-inserted scaler 0 @ 00000000046146c0] w:iw h:ih flags:'0x4' interl:0
[Parsed_format_2 @ 000000000467af00] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_mp_1' and the filter 'Parsed_format_2'
[Parsed_scale_0 @ 00000000046287c0] w:1024 h:768 fmt:bgra sar:0/1 -> w:1584 h:1080 fmt:yuv420p sar:0/1 flags:0x4
[auto-inserted scaler 0 @ 00000000046146c0] w:1584 h:1080 fmt:yuv420p sar:0/1 -> w:1584 h:1080 fmt:yuv444p sar:0/1 flags:0x4
[Parsed_unsharp_3 @ 000000000467ae00] effect:sharpen type:luma msize_x:7 msize_y:7 amount:1.00
[Parsed_unsharp_3 @ 000000000467ae00] effect:sharpen type:chroma msize_x:7 msize_y:7 amount:1.00
[Parsed_scale_4 @ 000000000038a200] w:1584 h:1080 fmt:yuv444p sar:0/1 -> w:1056 h:720 fmt:rgb24 sar:0/1 flags:0x4
[huffyuv @ 0000000004627ae0] using huffyuv 2.2.0 or newer interlacing flag
Output #0, avi, to 'out2.avi':

Metadata:

ISFT : Lavf55.14.101
Stream #0:0: Video: huffyuv (HFYU / 0x55594648), rgb24, 1056x720, q=2-31, 200 kb/s, 30 tbn, 30 tbc

Stream mapping:

Stream #0:0 -> #0:0 (huffyuv -> huffyuv)

Press [q] to stop, ? for help
No more output streams to write to, finishing.=-577014:-32:-22.-77 bitrate=N/A
frame= 10 fps=0.1 q=0.0 Lsize= 12777kB time=00:00:00.33 bitrate=314016.7kbits/s
video:12772kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.045282%

C:\inne>

Attachments (1)

test.bmp (29.3 KB) - added by chronek 3 years ago.
test file

Download all attachments as: .zip

Change History (3)

comment:1 Changed 3 years ago by cehoyos

  • Component changed from undetermined to avfilter
  • Keywords mpfilter added; filter yuv444p pixel format libmpcodecs removed
  • Priority changed from normal to wish
  • Status changed from new to open
  • Version changed from unspecified to git-master

Changed 3 years ago by chronek

test file

comment:2 Changed 2 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

This was implemented for the native uspp filter by Arwa Arif in 100fc395

Note: See TracTickets for help on using tickets.