Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
8th December 2018, 10:35 | #41 | Link | |
Registered User
Join Date: Jan 2012
Posts: 271
|
Quote:
|
|
8th December 2018, 10:38 | #42 | Link | ||
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,915
|
Quote:
Quote:
__________________
BeHappy, AviSynth audio transcoder. |
||
10th December 2018, 05:13 | #43 | Link | |
Registered User
Join Date: Aug 2015
Posts: 9
|
Quote:
Perhaps there is a command that'll speed it up as well? This is my first experience with ffmpeg and/or CLI encoding. Thanks! |
|
10th December 2018, 10:25 | #44 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,915
|
Quote:
Is more or less the same if you use x265 to encode instead ffmpeg. You can use other -preset between: ultrafast superfast veryfast faster fast medium slow slower veryslow placebo to improve the speed obtaining less quality or more size. Only if you can use some GPU to encode HEVC you can obtain much more speed.
__________________
BeHappy, AviSynth audio transcoder. Last edited by tebasuna51; 10th December 2018 at 10:29. |
|
14th December 2018, 02:17 | #45 | Link | ||
Registered User
Join Date: Dec 2018
Posts: 21
|
Quote:
Quote:
One thing I would like to know with ffmpeg is now to set the audio to encode to AAC 320kbps 5.1 channels. Also, how do you set the target resolution to 1920x1080. I found that in order to make those two adjusments, I am having to utilize handbrake after ffmpeg since I don't know the CLI. |
||
14th December 2018, 11:43 | #46 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,915
|
Quote:
BTW if you want a 1920x1080 SDR output better use a BluRay source.
__________________
BeHappy, AviSynth audio transcoder. |
|
17th December 2018, 10:40 | #48 | Link |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,915
|
Of course.
A 4K HDR BT-2020 is better than a BD by resolution and colour space, if you reduce resolution to 1920x1080 and colour space to BT-709 you obtain the same quality (or less) than the BD. BTW to reduce resolution you have the answer in previous post by SpasV: add at end of video filter: ...,format=yuv420p,zscale=s=1920x1080
__________________
BeHappy, AviSynth audio transcoder. Last edited by tebasuna51; 17th December 2018 at 10:44. Reason: add info |
20th December 2018, 01:12 | #49 | Link | |
Registered User
Join Date: Dec 2018
Posts: 21
|
Quote:
I tried the following and I am getting an error: ffmpeg.exe -i D:\Videos\Media\Temp\video.mkv -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p, zscale=s=1920x1080 -c:v libx265 -crf 20 -preset medium D:\Videos\Media\Temp\output.mkv The error is "unable to find a suitable output format for zscale=s=1920x1080: Invalid argument. Any suggestions? |
|
28th December 2018, 02:36 | #51 | Link |
Registered User
Join Date: Dec 2018
Posts: 21
|
Awesome! Thanks that worked.
I'd love to learn more about ffmpeg configuration. Can anyone point me in the right direction for a thread that can help me with this - like audio tracks and such? So I feel like the HDR to SDR conversion taking place with the configuration in the ffmpeg encode is acceptable. Is there a way to improve upon it or is that pretty much as good as it gets. |
22nd May 2019, 19:29 | #54 | Link | ||
Registered User
Join Date: May 2019
Posts: 1
|
What am i doing wrong?
Quote:
Quote:
|
||
30th May 2019, 22:39 | #55 | Link |
Registered User
Join Date: May 2014
Posts: 292
|
Tried it?
ffmpeg.exe -ss 00:01:00.12 -i Sony_4K_HDR_Camp.mp4 -frames 1 -vf zscale=transfer=linear,tonemap=clip,zscale=transfer=bt709,format=yuv420p c:\users\dave\desktop\ffmpeg.png
__________________
Win10x64, Xeon E5450, GTX 750 2GB, DDR3 8GB. |
4th February 2020, 19:50 | #56 | Link |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
|
I believe I figured it out...
Have a look here: https://forum.doom9.org/showthread.p...20#post1898420 My HDR to SDR readme for using FFmpeg: Code:
Using FFmpeg to convert HDR sources to SDR: ====================================================================== This video filter call will do it (thanks to dipje and Atak_Snajpera): zscale=s=704x396,zscale=tin=smpte2084:min=bt2020nc:pin=bt2020:rin=tv:t=smpte2084:m=bt2020nc:p=bt2020:r=tv,zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p,colormatrix=bt709:bt601 These parameters are easy to modify for HD output. Edit the "zscale" parameter for the desired size and remove the "colormatrix" parameter. This FFmpeg parameter line is meant to be inserted in the "Picture Settings -> More" field of dmMediaConverter. If you want to use them in an existing FFmpeg commandline you need to add them as a video filter and enclose the parameters in double quotes. Like: -vf "parameter list" Note: If you use the source file directly as the FFmpeg input you may get borked colors in the output depending on the source format. The safest way to correct this is to use an AVS script with just the source filter as the input for FFmpeg (of course only if AviSynth is installed). Otherwise you have to pre-convert the source to a lossless intermediate file keeping all the source properties. Then use this lossless file as the input for FFmpeg and apply the HDR to SDR filter. Cheers manolito |
30th March 2020, 11:56 | #57 | Link |
Registered User
Join Date: Aug 2002
Location: Italy
Posts: 304
|
Hi everyone, I honestly don't know if these are overlapping color correction (or equalization ?) problems, but here's another interesting 3ad - I'm partecipating in - about them:
https://forum.videohelp.com/threads/...eg-Color-Range Last edited by PatchWorKs; 30th March 2020 at 12:43. |
8th December 2021, 06:13 | #58 | Link | |
Registered User
Join Date: Feb 2021
Location: Germany
Posts: 18
|
Quote:
|
|
8th December 2021, 06:41 | #60 | Link | |
Registered User
Join Date: Feb 2021
Location: Germany
Posts: 18
|
Quote:
Some benchmarks: Code:
-vf zscale=t=linear:npl=300,format=gbrpf32le Code:
-vf zscale=t=linear:npl=300,format=gbrpf32le,zscale=t=bt709:p=bt709:m=bt709 Code:
-vf zscale=t=linear:npl=300,format=gbrpf32le,tonemap=tonemap=mobius Code:
-vf zscale=t=linear:npl=300,format=gbrpf32le,tonemap=tonemap=mobius,zscale=t=bt709 Code:
-vf zscale=t=linear:npl=300,format=gbrpf32le,tonemap=tonemap=mobius,zscale=t=bt709:p=bt709:m=bt709 Code:
-vf zscale=t=linear:npl=300,format=gbrpf32le,tonemap=tonemap=mobius,zscale=t=bt709:p=bt709:m=bt709,format=420p Code:
-vf zscale=t=linear:npl=300,format=gbrpf32le,tonemap=tonemap=mobius,zscale=t=bt709:p=bt709:m=bt709:d=ordered,format=yuv420p Code:
-vf zscale=t=linear:npl=300,format=gbrpf32le,tonemap=tonemap=mobius,zscale=t=bt709:p=bt709:m=bt709:d=error_diffusion,format=yuv420p Code:
-vf zscale=t=linear:npl=300,format=gbrpf32le,tonemap=tonemap=mobius,zscale=t=bt709:p=bt709:m=bt709 -pix_fmt yuv420p Code:
-vf zscale=t=linear:npl=300,format=gbrpf32le,zscale,format=yuv420p Code:
-vf zscale=t=linear:npl=300,format=gbrpf32le -pix_fmt yuv420p You can also see that swscale format conversion is the slowest operation of them all, so make sure you do it with zscale instead. mobius and hable are only insignificantly slower than clip Last edited by damian101; 9th December 2021 at 16:25. |
|
|
|