Bug#966059: ffmpeg: Please enable zscale filter

2021-07-15 Thread r087r70
I also would like to use zscale which does not require manual passing of 
colorspace options such as
|-pix_fmt|, |-color_range|, |-colorspace|, |-color_primaries|, and 
|-color_trc|


Default scaling does not account for the above flags, producing in some 
cases washed out colors, see e.g.:

https://video.stackexchange.com/questions/28889/ffmpeg-does-not-preserve-colors-after-resizing/
https://video.stackexchange.com/questions/32383/ffmpeg-vf-scale-shifts-colors-to-washed-out

Presently libzimg2 is packaged in debian repositories, so it can be linked.




Bug#966059: ffmpeg: Please enable zscale filter

2021-07-15 Thread Sebastian Ramacher
On 2021-07-15 12:48:53, guerra...@alice.it wrote:
> I also would like to use zscale which does not require manual passing of
> colorspace options such as
> |-pix_fmt|, |-color_range|, |-colorspace|, |-color_primaries|, and
> |-color_trc|
> 
> Default scaling does not account for the above flags, producing in some
> cases washed out colors, see e.g.:
> https://video.stackexchange.com/questions/28889/ffmpeg-does-not-preserve-colors-after-resizing/
> https://video.stackexchange.com/questions/32383/ffmpeg-vf-scale-shifts-colors-to-washed-out
> 
> Presently libzimg2 is packaged in debian repositories, so it can be linked.

The ffmpeg version currently available in experimental has zimg enabled.

Cheers
-- 
Sebastian Ramacher



Bug#966059: ffmpeg: Please enable zscale filter

2021-07-15 Thread guerrarob
I also would like to use zscale which does not require manual passing of 
colorspace options such as
|-pix_fmt|, |-color_range|, |-colorspace|, |-color_primaries|, and 
|-color_trc|


Default scaling does not account for the above flags, producing in some 
cases washed out colors, see e.g.:

https://video.stackexchange.com/questions/28889/ffmpeg-does-not-preserve-colors-after-resizing/
https://video.stackexchange.com/questions/32383/ffmpeg-vf-scale-shifts-colors-to-washed-out

Presently libzimg2 is packaged in debian repositories, so it can be linked.




Bug#864888: Bug#966059: ffmpeg: Please enable zscale filter

2020-07-22 Thread Diederik de Haas
Hi Jonas, 

On woensdag 22 juli 2020 14:30:27 CEST Jonas Smedegaard wrote:
> The zscale filter requires linking with z.lib which is not in Debian -
> someone intended to package it in the pastb ut that effort seemingly has
> stalled: https://bugs.debian.org/864888

I wasn't sure whether it was a requirement or only highly recommended due to 
its faster operations.
On #ffmpeg (freenode) I was talking about my issue, which contained this:
 this is as far as I got earlier in 2019 https://github.com/jeeb/zimg/
tree/debian
 then I got stuck in the "I should rebase this at some point"

I can't comment on the quality of his packaging effort, but it could be a start 
for someone.

Cheers,
  Diederik

signature.asc
Description: This is a digitally signed message part.


Bug#966059: ffmpeg: Please enable zscale filter

2020-07-22 Thread Jonas Smedegaard
Control: block -1 864888

Hi Diederik,

Quoting Diederik de Haas (2020-07-22 14:03:17)
> To convert a HDR video to a non-HDR one, you need the zscale filter, but
> it's not available/enabled in the Debian build of ffmpeg.
> Hereby the request to enable it.

Thanks for bringing to our attention!

The zscale filter requires linking with z.lib which is not in Debian - 
someone intended to package it in the pastb ut that effort seemingly has 
stalled: https://bugs.debian.org/864888

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

signature.asc
Description: signature


Bug#966059: ffmpeg: Please enable zscale filter

2020-07-22 Thread Diederik de Haas
Package: ffmpeg
Version: 7:4.3-3+b1
Severity: wishlist

To convert a HDR video to a non-HDR one, you need the zscale filter, but
it's not available/enabled in the Debian build of ffmpeg.
Hereby the request to enable it.

ffmpeg -i "input.mkv" -map 0:v -map 0:a? -map 0:s? -c:s copy -c:a copy -vf 
zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p10le
 -c:v libx265 -crf 22 -preset slow -max_muxing_queue_size 4096 "output.mkv"
results now in:
[AVFilterGraph @ 0x55ab18072c00] No such filter: 'zscale'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), 
(101, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)

Kernel: Linux 5.7.0-1-amd64 (SMP w/16 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ffmpeg depends on:
ii  libavcodec587:4.3-3+b1
ii  libavdevice58   7:4.3-3+b1
ii  libavfilter77:4.3-3+b1
ii  libavformat58   7:4.3-3+b1
ii  libavresample4  7:4.3-3+b1
ii  libavutil56 7:4.3-3+b1
ii  libc6   2.31-1
ii  libpostproc55   7:4.3-3+b1
ii  libsdl2-2.0-0   2.0.12+dfsg1-1
ii  libswresample3  7:4.3-3+b1
ii  libswscale5 7:4.3-3+b1

ffmpeg recommends no packages.

Versions of packages ffmpeg suggests:
pn  ffmpeg-doc  

-- no debconf information