This seems like the best thread to ask, what would be the command line for ffmpeg to keep the 4k video untouched, take the first of multiple audio files but convert that hopefully lossless from dts to ac3 or any other lossless codec (any advice on a codec appreciated)
There are a lot of possible command combinations. You're essentially asking for conversion to FLAC if you insist on lossless. For me, I haven't "heard" a reason to move away from a decent lossy format, because my hearing is perfect anyway.
This seems like the best thread to ask, what would be the command line for ffmpeg to keep the 4k video untouched, take the first of multiple audio files but convert that hopefully lossless from dts to ac3 or any other lossless codec (any advice on a codec appreciated)
Thabks
Wow, your ears must be good... because I find DTS absolutely amazing.
That aside, Dolby TrueHD found in most UHD's is lossless, at least according to mediainfo...
Audio #1
ID : 2
Format : MLP FBA 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Codec ID : A_TRUEHD
Duration : 1 h 37 min
Bit rate mode : Variable
Bit rate : 7 644 kb/s
Maximum bit rate : 9 270 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 1 200.000 FPS (40 SPF)
Compression mode : Lossless
Stream size : 5.20 GiB (30%)
Language : English
Default : Yes
Forced : No
Number of dynamic objects : 13
Bed channel count : 1 channel
Bed channel configuration : LFE
...so a straight acodec copy would be fine for you...
..which is, in fact, what part of my ffmpeg command line does!
I search the forum and found this excellent post.
I am doing hardware acceleration with these commands provided. Trying to encode 4K HDR HEVC, But I noticed something odd;
I am using -cq as a command and no matter what value I put in, the bitrate stays the same (At around 20,000) I can lower it all the way to 0 and it remains the same.
Has anyone noticed this ? Is this a bug ?
Edit:
I think I fixed it.
I have to include -maxrate and -bufsize
Now the -cq is working!