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.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st September 2023, 16:44   #1  |  Link
N'Cha
Registered User
 
Join Date: Sep 2023
Posts: 28
Copy & convert audio tracks to FLAC with ffmpeg BUT keeping original audio tracks ?

Hi

Is it possible to encode a movie with ffmpeg but to keep the audio tracks that are in DTS-HD and/or Dolby truHD intact BUT at the same time, to create a copy of these tracks, that are converted into FLAC all that happening while I'm doing my encode, not post-encode with MKVtoolnix?

Let's say my remux has:
Audio Track 1: Japanese DTS-HD 2.0
Audio Track 2: English DTS-HD 5.1

when doing my encode i'd like the encoded video to have
Audio Track 1: Japanese DTS-HD 2.0
Audio Track 2: English DTS-HD 5.1
Audio Track 3: Japanese FLAC 2.0
Audio Track 4: English FLAC 5.1

Thank you

Last edited by N'Cha; 21st September 2023 at 16:46.
N'Cha is offline   Reply With Quote
Old 22nd September 2023, 14:17   #2  |  Link
Kisa_AG
Registered User
 
Join Date: Sep 2005
Location: Moscow, Russia
Posts: 65
Quote:
Originally Posted by N'Cha View Post
Hi

Is it possible to encode a movie with ffmpeg but to keep the audio tracks that are in DTS-HD and/or Dolby truHD intact BUT at the same time, to create a copy of these tracks, that are converted into FLAC all that happening while I'm doing my encode, not post-encode with MKVtoolnix?

Let's say my remux has:
Audio Track 1: Japanese DTS-HD 2.0
Audio Track 2: English DTS-HD 5.1

when doing my encode i'd like the encoded video to have
Audio Track 1: Japanese DTS-HD 2.0
Audio Track 2: English DTS-HD 5.1
Audio Track 3: Japanese FLAC 2.0
Audio Track 4: English FLAC 5.1

Thank you
I think, yes. Something like that:
ffmpeg -i Input.mkv -map 0:v -c:v libx264 -crf 22 etc. -map 0:a -c:a copy -map 0:a:0 -c:a:2 flac -map 0:a:1 -c:a:3 flac Output.mkv
Kisa_AG is offline   Reply With Quote
Old 23rd September 2023, 20:19   #3  |  Link
N'Cha
Registered User
 
Join Date: Sep 2023
Posts: 28
Thanks that worked! (though strange behavior with MPC where the flac audio has a lower volume + if i switch to it, then all the audio language selection disapear. I don't have that problem with VLC
N'Cha is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:49.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.