05.08.2018, 13:31
(05.08.2018, 08:39)Selur Wrote: Looking at what happens:OK, so I did a few experiments, assuming I am doing it correctly, and noticed one thing I did not realize earlier. The original source video had both audio channels, but I had already converted the second audio track to .ac3. Not sure it is important, but there are three tests. The first one, as you should be easily able to decipher from the log, I set to passthrough all audio, but left the force FFMPEG box unchecked. The result was the same audio for both audio tracks.
Only thing that seems uncommon is that Hybrid first uses ffmpeg and then MP4Box for the audio extraction.
- first audio stream get's extracted (17_54_42_1410_01_audio)
"D:\Programs\Hybrid\64bit\ffmpeg.exe" -y -threads 8 -i "G:\PLEX Media\New Things To Sort\Eragon (2006)\Eragon (2006).mp4" -map 0:1 -vn -sn -acodec copy -map_metadata -1 -metadata handler_name="Hybrid 2018.07.27.1" "C:\Users\mapsk\AppData\Local\Temp\iId_1_aid_0_lang_en_17_54_42_1410_01.aac"
- second audio stream get's extracted (17_54_42_1410_02_audio)
MP4Box -raw 2 "G:\PLEXME~1\NEWTHI~1\ERAGON~1\ERAGON~1.MP4" -out "C:\Users\mapsk\AppData\Local\Temp\iId_2_aid_1_lang_en_17_54_42_1410_02.ac3"
- second audio stream is converted to 128kBit/s ac3 (17_54_42_1410_03_audio)
ffmpeg -y -threads 8 -i "C:\Users\mapsk\AppData\Local\Temp\iId_2_aid_1_lang_en_17_54_42_1410_02.ac3" -b:a 128k -ac 2 -ar 48000 -channel_layout stereo "C:\Users\mapsk\AppData\Local\Temp\iId_2_aid_1_lang_en_17_54_42_1410_03.ac3"
- old temporary second audio stream get's deleted (17_54_42_1410_03_audio)
- subtitles get converted form .srt to ttxt (17_54_42_1410_05_subs)
- time codes get saved into a file (17_54_42_1410_06_create)
- video get's extracted (17_54_42_1410_07_video)
- Video get's remuxed into an mp4 container (17_54_42_1410_08_muxing)
MP4Box -par 1=1:1 -add "C:\Users\mapsk\AppData\Local\Temp\Eragon (2006)_new_17_54_42_1410_07.264" -brand avc1 -tmp "C:\Users\mapsk\AppData\Local\Temp" -new "G:\PLEX Media\New Things To Sort\Eragon (2006)\17_54_42_1410__08_mp4Temp.mp4"
- Old extracted video stream gets deleted (17_54_42_1410_09_cleanUp)
- Time codes get added to the temporary mp4 file (17_54_42_1410_10_muxing)
mp4fpsmod -t "C:\Users\mapsk\AppData\Local\Temp\timecodeV2_17_54_42_1410.tc" -x "G:\PLEX Media\New Things To Sort\Eragon (2006)\17_54_42_1410__08_mp4Temp.mp4" -o "G:\PLEX Media\New Things To Sort\Eragon (2006)\17_54_42_1410__10_withTimeCodes_0.mp4"
- Old temporary mp4 files gets deleted (17_54_42_1410_11_cleanUp)
- Time code file gets deleted (17_54_42_1410_12_cleanUp)
- Current mp4 file gets renamed (17_54_42_1410_13_rename)
- Chaper information get saved into a chapter file (17_54_42_1410_14_create)
- Audio, subtitles and tags get added to the mp4 file (17_54_42_1410_15_muxing)
- Old mp4 file gets deleted (17_54_42_1410_16_cleanUp)
- Old audio file (1st) get's deleted (17_54_42_1410_17)
- Old audio file (2nd) get's deleted (17_54_42_1410_18)
- Old chapter file get's deleted (17_54_42_1410_19)
- Mp4 file gets renamed (17_54_42_1410_20_rename)
- Old subtitle file get's deleted (17_54_42_1410_21)
-> Try whether it helps to enable: "Config->Intput->Extraction->Stream extraction with ffmpeg"
Cu Selur
Ps.: A small sample of the input file would be nice to reproduce this here.
Then, I switched back to custom, so the only thing that would change was the force FFMPEG checked. This actually worked, and I had two separate audio tracks, BUT, it created a new, third audio track in the file, titled "Source Handling". Not sure what that is, but I don't want it in the file.
Third, I tried passthrough all audio, and force FFMPEG checked, and the program crashed three times I tried to do it, including restarting the program, and starting over from scratch.
Finally, as you asked for, here is a small sample of the original source file, it is chapter 2 of the movie, and has both audio tracks.