[FFmpeg-user] V360 stabilization
Michael Koch
astroelectronic at t-online.de
Sat Oct 3 09:27:20 EEST 2020
>>>> Use correct player like mpv, which does not ignore color_trc.
>>> A player? The output is a jpg image and it's too dark.
>> Yes, player, ffmpeg is not correct in conversion. Because swscale is old
>> and ignores color_trc metadata that is required for correct display.
>>
>> Use zscale instead for converting pixel formats.
>
> Can you please give an example how to convert a DNG image to a JPG
> image with FFmpeg?
I did try
ffmpeg -i sample_r00000.dng -vf zscale -y out.jpg
but it gives an error message.
The input image is from
https://drive.google.com/drive/folders/1u5m7aVAFPpEsL4YtDVsfSpfcve9PFG4m
and IrfanView has no problem to open this image.
Michael
C:\Users\astro\Desktop\dng>c:\ffmpeg\ffmpeg -i sample_r00000.dng -vf
zscale -y out.jpg
ffmpeg version 2020-09-20-git-ef29e5bf42-full_build-www.gyan.dev
Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.2.0 (Rev3, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static
--disable-w32threads --disable-autodetect --enable-fontconfig
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp
--enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt
--enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray
--enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi
--enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg
--enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype
--enable-libfribidi --enable-libvidstab --enable-libvmaf
--enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid
--enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va
--enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan
--enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt
--enable-libopencore-amrwb --enable-libmp3lame --enable-libshine
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc
--enable-libwavpack --enable-libilbc --enable-libgsm
--enable-libopencore-amrnb --enable-libopus --enable-libspeex
--enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite
--enable-libmysofa --enable-librubberband --enable-libsoxr
--enable-chromaprint
libavutil 56. 59.100 / 56. 59.100
libavcodec 58.106.100 / 58.106.100
libavformat 58. 58.100 / 58. 58.100
libavdevice 58. 11.102 / 58. 11.102
libavfilter 7. 87.100 / 7. 87.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
[tiff @ 0000025f5dbdf680] Assuming black level pattern values are identical
[mjpeg @ 0000025f5dbe4ec0] mjpeg_decode_dc: bad vlc: 0:0 (0000025f5dbe5588)
Last message repeated 1 times
[tiff_pipe @ 0000025f5dbdd640] Stream #0: not enough frames to estimate
rate; consider increasing probesize
Input #0, tiff_pipe, from 'sample_r00000.dng':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: tiff, bayer_rggb16le, 6016x3200, 25 tbr, 25
tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (tiff (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[tiff @ 0000025f5dbefe40] Assuming black level pattern values are identical
[mjpeg @ 0000025f5dc15180] mjpeg_decode_dc: bad vlc: 0:0 (0000025f5dc38248)
Last message repeated 1 times
code 3074: no path between colorspaces
Error while filtering: Generic error in an external library
Failed to inject frame into filter network: Generic error in an external
library
Error while processing the decoded data for stream #0:0
Conversion failed!
More information about the ffmpeg-user
mailing list