MKV file encoded using handbrake. Made mistake with 2nd track audio and now need to reencode 2nd track audio codec.

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
churd60041
Posts: 2
Joined: Sat Jan 16, 2016 8:17 pm

MKV file encoded using handbrake. Made mistake with 2nd track audio and now need to reencode 2nd track audio codec.

Post by churd60041 »

I am using the USB port (connected USB flash drive) on my Roku 3 to play all my ripped/encoded videos.
Roku 3 is connected with HDMI cable to my Denon AVR-S710. I then connect the Denon to my Samsun HDTV.
Everything is playing perfect except audio is not being recognized by my receiver as surround sound. Being recognized as a stereo channel. I can get surround sound by manually change input on my receiving to surround sound but that is not the same.
So ---- on my latest ripped video I decided to make a change with the audio encoding process.
I went back and decided to change the 2nd track audio codec. I CHANGED the 2nd track codec to AC3 Passthru from DTS Passthru.
That made it work. My Roku 3 now identifies the audio correct and my Denon Receiver is now oututting DDS and DDT surround sound. This is great news and bring my question for your expertise and help?

Question and Problem (thank you in advance for your replies - Don)
How to reencode all 50+ movies that I have encoded with Handbrake. I do not want to lose video quality I only want to correct the 2nd track codec (ie. replace DTS Passthru with AC3 Passthru). Everything else stays the same on all MKV videos.

Current version of Handbrake is 10.2.7286 32 bit version for Windows 10.

[HandBrake 0.10.2.7286 - 32bit Version
OS: Microsoft Windows NT 6.2.9200.0 - 32bit
CPU: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
Ram: 3241 MB,
GPU Information:
Intel(R) HD Graphics 3000 - 9.17.10.4229
Screen: 1920x1080
Temp Dir: C:\Users\DHurd\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\DHurd\AppData\Roaming\HandBrake\HandBrake\0.10.2.7286

-------------------------------------------
[14:21:04] hb_init: starting libhb thread
[14:21:04] CPU: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
[14:21:04] - Intel microarchitecture Sandy Bridge
[14:21:04] - logical processor count: 4
[14:21:04] Intel Quick Sync Video support: yes
[14:21:04] - Intel Media SDK hardware: API 1.4 (minimum: 1.3)
[14:21:04] - H.264 encoder: yes
[14:21:04] - preferred implementation: hardware (any)
[14:21:04] - H.265 encoder: no
[14:21:04] hb_scan: path=E:\Ant-man 2015.mkv, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening E:\Ant-man 2015.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening E:\Ant-man 2015.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(E:\Ant-man 2015.mkv) failed
[14:21:04] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[14:21:04] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'E:\Ant-man 2015.mkv':
Metadata:
CREATION_TIME :
ENCODER : Lavf55.12.0
Duration: 01:57:06.12, start: 0.000000, bitrate: N/A
Chapter #0.0: start 0.000000, end 128.028000
Metadata:
title : Chapter 1
Chapter #0.1: start 128.144000, end 519.502000
Metadata:
title : Chapter 2
Chapter #0.2: start 519.618000, end 924.290000
Metadata:
title : Chapter 3
Chapter #0.3: start 924.406000, end 1198.931000
Metadata:
title : Chapter 4
Chapter #0.4: start 1199.047000, end 1669.401000
Metadata:
title : Chapter 5
Chapter #0.5: start 1669.517000, end 1986.551000
Metadata:
title : Chapter 6
Chapter #0.6: start 1986.667000, end 2333.231000
Metadata:
title : Chapter 7
Chapter #0.7: start 2333.347000, end 2675.673000
Metadata:
title : Chapter 8
Chapter #0.8: start 2675.789000, end 2961.775000
Metadata:
title : Chapter 9
Chapter #0.9: start 2961.891000, end 3463.660000
Metadata:
title : Chapter 10
Chapter #0.10: start 3463.776000, end 3648.011000
Metadata:
title : Chapter 11
Chapter #0.11: start 3648.127000, end 3990.720000
Metadata:
title : Chapter 12
Chapter #0.12: start 3990.836000, end 5000.562000
Metadata:
title : Chapter 13
Chapter #0.13: start 5000.678000, end 5659.854000
Metadata:
title : Chapter 14
Chapter #0.14: start 5659.970000, end 6453.480000
Metadata:
title : Chapter 15
Chapter #0.15: start 6453.596000, end 7025.969000
Metadata:
title : Chapter 16
Stream #0.0: Video: h264 (High), yuv420p, 720x472 [PAR 32:27 DAR 320:177], PAR 186:157 DAR 16740:9263, 23.98 fps, 1k tbn, 180k tbc (default)
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, fltp (default)
Metadata:
title : Stereo
LANGUAGE : eng
[14:21:04] scan: decoding previews for title 1
[14:21:04] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 English (AAC) (2.0 ch)
[14:21:05] scan: 10 previews, 720x472, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 32:27
[14:21:05] libhb: scan thread found 1 valid title(s)
] Paste a log of the scan or encode between these code brackets, or use a pastebin website and provide us with the URL it gives you.
Logs are required for all support requests.[/code]
rollin_eng
Veteran User
Posts: 3515
Joined: Wed May 04, 2011 11:06 pm

Re: MKV file encoded using handbrake. Made mistake with 2nd track audio and now need to reencode 2nd track audio codec.

Post by rollin_eng »

Handbrake cannot do anything to a file without reencoding the video.

Your best bet might be just to start from scratch.
churd60041
Posts: 2
Joined: Sat Jan 16, 2016 8:17 pm

Re: MKV file encoded using handbrake. Made mistake with 2nd track audio and now need to reencode 2nd track audio codec.

Post by churd60041 »

Are their any other programs that can reencode just the 2nd audio track. Copy Video, Copy audio 1st track and only change audio 2nd track?
mduell
Veteran User
Posts: 7180
Joined: Sat Apr 21, 2007 8:54 pm

Re: MKV file encoded using handbrake. Made mistake with 2nd track audio and now need to reencode 2nd track audio codec.

Post by mduell »

There sure are. GIYF.
Woodstock
Veteran User
Posts: 3748
Joined: Tue Aug 27, 2013 6:39 am

Re: MKV file encoded using handbrake. Made mistake with 2nd track audio and now need to reencode 2nd track audio codec.

Post by Woodstock »

If you have the original MKV file, google will find you the "mkvtoolnix" tools that will allow you to pull the audio track from the original MKV file, and merge it into the already-processed file. This is the fastest method, because nothing needs to be recoded, just tracks replaced.
HandyMan
Bright Spark User
Posts: 169
Joined: Tue Aug 07, 2012 10:52 pm

Re: MKV file encoded using handbrake. Made mistake with 2nd track audio and now need to reencode 2nd track audio codec.

Post by HandyMan »

Worst case scenario, if you need to reencode (sync issue), encode with UltraFast setting rf=51, then extract the video from first encode, extract audio from Ultrafast, merge them into your final mkv.
Shakadula
Posts: 2
Joined: Mon Jan 11, 2016 11:56 am

Re: MKV file encoded using handbrake. Made mistake with 2nd track audio and now need to reencode 2nd track audio codec.

Post by Shakadula »

I am having a like issue with mkv files and dvd files using handbrake. I am sure makemkv is okay as are my dvds. The common denominator is handbrake using high profile setting. I am using the handbrake settings for audio and conversions done prior to nov 2014 are fine. Can someone point me in the right direction? I just recorded 60 movies and all are boogered up with the picture being great but the sound is out of synch. My mistake was not chevking the audio synch. Thanks.
Woodstock
Veteran User
Posts: 3748
Joined: Tue Aug 27, 2013 6:39 am

Re: MKV file encoded using handbrake. Made mistake with 2nd track audio and now need to reencode 2nd track audio codec.

Post by Woodstock »

Audio sync issues are often player-related. For example, several android players can't keep audio and video in sync when playing MKV files, but work fine with MP4.

But that is a separate issue from what is being discussed here, so a separate support request topic, with logs, should be started.
Post Reply