I should also mention I am using the most recent version of ffmpeg posted 14 hours on the Github Auto-build found here: Releases * BtbN/FFmpeg-Builds * GitHub<https://github.com/BtbN/FFmpeg-Builds/releases>
I was also using ffmpeg to pipe to another ffmpeg to avoid temporary files when extracting the 1st video, and the English audio. (But if anyone has any suggestions I am all ears). Here is the full output: ffmpeg version N-105054-gd6b2357edd-20220102 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11.2.0 (crosstool-NG 1.24.0.498_5075e1f) configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-sc hannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20220102 libavutil 57. 13.100 / 57. 13.100 libavcodec 59. 15.102 / 59. 15.102 libavformat 59. 12.100 / 59. 12.100 libavdevice 59. 1.100 / 59. 1.100 libavfilter 8. 21.100 / 8. 21.100 libswscale 6. 1.102 / 6. 1.102 libswresample 4. 0.100 / 4. 0.100 libpostproc 56. 0.100 / 56. 0.100 ffmpeg version N-105054-gd6b2357edd-20220102 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11.2.0 (crosstool-NG 1.24.0.498_5075e1f) configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-sc hannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20220102 libavutil 57. 13.100 / 57. 13.100 libavcodec 59. 15.102 / 59. 15.102 libavformat 59. 12.100 / 59. 12.100 Input #0, matroska,webm, from '2 Fast 2 Furious Bluray-2160p.mkv': libavdevice 59. 1.100 / 59. 1.100 Metadata: libavfilter 8. 21.100 / 8. 21.100 ENCODER : libswscale 6. 1.102 / 6. 1.102 Lavf58.76.100 libswresample 4. 0.100 / 4. 0.100 libpostproc 56. 0.100 / 56. 0.100 Duration: 01:47:34.88, start: 0.000000, bitrate: 33323 kb/s Chapters: Chapter #0:0: start 0.000000, end 688.688000 Metadata: title : 00:00:00.000 Chapter #0:1: start 688.688000, end 859.817000 Metadata: title : 00:11:28.688 Chapter #0:2: start 859.817000, end 961.627000 Metadata: title : 00:14:19.817 Chapter #0:3: start 961.627000, end 1136.344000 Metadata: title : 00:16:01.627 Chapter #0:4: start 1136.344000, end 1462.544000 Metadata: title : 00:18:56.344 Chapter #0:5: start 1462.544000, end 1695.819000 Metadata: title : 00:24:22.544 Chapter #0:6: start 1695.819000, end 2113.153000 Metadata: title : 00:28:15.819 Chapter #0:7: start 2113.153000, end 2407.322000 Metadata: title : 00:35:13.153 Chapter #0:8: start 2407.322000, end 2803.384000 Metadata: title : 00:40:07.322 Chapter #0:9: start 2803.384000, end 3534.114000 Metadata: title : 00:46:43.384 Chapter #0:10: start 3534.114000, end 3902.190000 Metadata: title : 00:58:54.114 Chapter #0:11: start 3902.190000, end 4224.303000 Metadata: title : 01:05:02.190 Chapter #0:12: start 4224.303000, end 4417.038000 Metadata: title : 01:10:24.303 Chapter #0:13: start 4417.038000, end 4934.638000 Metadata: title : 01:13:37.038 Chapter #0:14: start 4934.638000, end 5393.138000 Metadata: title : 01:22:14.638 Chapter #0:15: start 5393.138000, end 5716.628000 Metadata: title : 01:29:53.138 Chapter #0:16: start 5716.628000, end 5851.971000 Metadata: title : 01:35:16.628 Chapter #0:17: start 5851.971000, end 6032.026000 Metadata: title : 01:37:31.971 Chapter #0:18: start 6032.026000, end 6454.865000 Metadata: title : 01:40:32.026 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1636 [SAR 1:1 DAR 960:409], 23.98 fps, 23.98 tbr, 1k tbn (default) Metadata: BPS : 28461123 NUMBER_OF_FRAMES: 154762 NUMBER_OF_BYTES : 22964106868 _STATISTICS_WRITING_APP: mkvmerge v63.0.0 ('Everything') 64-bit _STATISTICS_WRITING_DATE_UTC: 2021-12-31 23:33:55 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES DURATION : 01:47:34.869000000 Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Metadata: BPS : 4213533 NUMBER_OF_FRAMES: 605143 NUMBER_OF_BYTES : 3399720396 _STATISTICS_WRITING_APP: mkvmerge v63.0.0 ('Everything') 64-bit _STATISTICS_WRITING_DATE_UTC: 2021-12-31 23:33:55 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES ENCODER : Lavc58.134.100 eac3 DURATION : 01:47:34.880000000 Stream #0:2(eng): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s32p (24 bit) Metadata: BPS : 4213533 NUMBER_OF_FRAMES: 605143 NUMBER_OF_BYTES : 3399720396 _STATISTICS_WRITING_APP: mkvmerge v63.0.0 ('Everything') 64-bit _STATISTICS_WRITING_DATE_UTC: 2021-12-31 23:33:55 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES DURATION : 01:47:34.863000000 Output #0, matroska, to 'pipe:': Metadata: encoder : Lavf59.12.100 Chapters: Chapter #0:0: start 0.000000, end 688.688000 Metadata: title : 00:00:00.000 Chapter #0:1: start 688.688000, end 859.817000 Metadata: title : 00:11:28.688 Chapter #0:2: start 859.817000, end 961.627000 Metadata: title : 00:14:19.817 Chapter #0:3: start 961.627000, end 1136.344000 Metadata: title : 00:16:01.627 Chapter #0:4: start 1136.344000, end 1462.544000 Metadata: title : 00:18:56.344 Chapter #0:5: start 1462.544000, end 1695.819000 Metadata: title : 00:24:22.544 Chapter #0:6: start 1695.819000, end 2113.153000 Metadata: title : 00:28:15.819 Chapter #0:7: start 2113.153000, end 2407.322000 Metadata: title : 00:35:13.153 Chapter #0:8: start 2407.322000, end 2803.384000 Metadata: title : 00:40:07.322 Chapter #0:9: start 2803.384000, end 3534.114000 Metadata: title : 00:46:43.384 Chapter #0:10: start 3534.114000, end 3902.190000 Metadata: title : 00:58:54.114 Chapter #0:11: start 3902.190000, end 4224.303000 Metadata: title : 01:05:02.190 Chapter #0:12: start 4224.303000, end 4417.038000 Metadata: title : 01:10:24.303 Chapter #0:13: start 4417.038000, end 4934.638000 Metadata: title : 01:13:37.038 Chapter #0:14: start 4934.638000, end 5393.138000 Metadata: title : 01:22:14.638 Chapter #0:15: start 5393.138000, end 5716.628000 Metadata: title : 01:29:53.138 Chapter #0:16: start 5716.628000, end 5851.971000 Metadata: title : 01:35:16.628 Chapter #0:17: start 5851.971000, end 6032.026000 Metadata: title : 01:37:31.971 Chapter #0:18: start 6032.026000, end 6454.865000 Metadata: title : 01:40:32.026 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1636 [SAR 1:1 DAR 960:409], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn (default) Metadata: BPS : 28461123 NUMBER_OF_FRAMES: 154762 NUMBER_OF_BYTES : 22964106868 _STATISTICS_WRITING_APP: mkvmerge v63.0.0 ('Everything') 64-bit _STATISTICS_WRITING_DATE_UTC: 2021-12-31 23:33:55 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES DURATION : 01:47:34.869000000 Stream #0:1(eng): Audio: eac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Metadata: BPS : 4213533 NUMBER_OF_FRAMES: 605143 NUMBER_OF_BYTES : 3399720396 _STATISTICS_WRITING_APP: mkvmerge v63.0.0 ('Everything') 64-bit _STATISTICS_WRITING_DATE_UTC: 2021-12-31 23:33:55 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES ENCODER : Lavc58.134.100 eac3 DURATION : 01:47:34.880000000 Stream #0:2(eng): Audio: dts (DTS-HD MA) ([1] [0][0] / 0x2001), 48000 Hz, 7.1, s32p (24 bit) Metadata: BPS : 4213533 NUMBER_OF_FRAMES: 605143 NUMBER_OF_BYTES : 3399720396 _STATISTICS_WRITING_APP: mkvmerge v63.0.0 ('Everything') 64-bit _STATISTICS_WRITING_DATE_UTC: 2021-12-31 23:33:55 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES DURATION : 01:47:34.863000000 Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Stream #0:2 -> #0:2 (copy) Press [q] to stop, [?] for help Input #0, matroska,webm, from 'pipe:': 5kB time=00:00:00.00 bitrate=N/A speed= 0x Metadata: ENCODER : Lavf59.12.100 Duration: 01:47:34.88, start: 0.000000, bitrate: N/A Chapters: Chapter #0:0: start 0.000000, end 688.688000 Metadata: title : 00:00:00.000 Chapter #0:1: start 688.688000, end 859.817000 Metadata: title : 00:11:28.688 Chapter #0:2: start 859.817000, end 961.627000 Metadata: title : 00:14:19.817 Chapter #0:3: start 961.627000, end 1136.344000 Metadata: title : 00:16:01.627 Chapter #0:4: start 1136.344000, end 1462.544000 Metadata: title : 00:18:56.344 Chapter #0:5: start 1462.544000, end 1695.819000 Metadata: title : 00:24:22.544 Chapter #0:6: start 1695.819000, end 2113.153000 Metadata: title : 00:28:15.819 Chapter #0:7: start 2113.153000, end 2407.322000 Metadata: title : 00:35:13.153 Chapter #0:8: start 2407.322000, end 2803.384000 Metadata: title : 00:40:07.322 Chapter #0:9: start 2803.384000, end 3534.114000 Metadata: title : 00:46:43.384 Chapter #0:10: start 3534.114000, end 3902.190000 Metadata: title : 00:58:54.114 Chapter #0:11: start 3902.190000, end 4224.303000 Metadata: title : 01:05:02.190 Chapter #0:12: start 4224.303000, end 4417.038000 Metadata: title : 01:10:24.303 Chapter #0:13: start 4417.038000, end 4934.638000 Metadata: title : 01:13:37.038 Chapter #0:14: start 4934.638000, end 5393.138000 Metadata: title : 01:22:14.638 Chapter #0:15: start 5393.138000, end 5716.628000 Metadata: title : 01:29:53.138 Chapter #0:16: start 5716.628000, end 5851.971000 Metadata: title : 01:35:16.628 Chapter #0:17: start 5851.971000, end 6032.026000 Metadata: title : 01:37:31.971 Chapter #0:18: start 6032.026000, end 6454.865000 Metadata: title : 01:40:32.026 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1636 [SAR 1:1 DAR 960:409], 23.98 fps, 23.98 tbr, 1k tbn (default) Metadata: BPS : 28461123 NUMBER_OF_FRAMES: 154762 NUMBER_OF_BYTES : 22964106868 _STATISTICS_WRITING_APP: mkvmerge v63.0.0 ('Everything') 64-bit _STATISTICS_WRITING_DATE_UTC: 2021-12-31 23:33:55 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Metadata: BPS : 4213533 NUMBER_OF_FRAMES: 605143 NUMBER_OF_BYTES : 3399720396 _STATISTICS_WRITING_APP: mkvmerge v63.0.0 ('Everything') 64-bit _STATISTICS_WRITING_DATE_UTC: 2021-12-31 23:33:55 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES ENCODER : Lavc58.134.100 eac3 Stream #0:2(eng): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s32p (24 bit) Metadata: BPS : 4213533 NUMBER_OF_FRAMES: 605143 NUMBER_OF_BYTES : 3399720396 _STATISTICS_WRITING_APP: mkvmerge v63.0.0 ('Everything') 64-bit _STATISTICS_WRITING_DATE_UTC: 2021-12-31 23:33:55 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified for stream 1, only the last option '-c:a eac3' will be used. Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (eac3 (native) -> eac3 (native)) Output #0, matroska, to 'M:\Movies\2 Fast 2 Furious (2003)\2 Fast 2 Furious Bluray-2160p.EACConverted.mkv': Metadata: encoder : Lavf59.12.100 Chapters: Chapter #0:0: start 0.000000, end 688.688000 Metadata: title : 00:00:00.000 Chapter #0:1: start 688.688000, end 859.817000 Metadata: title : 00:11:28.688 Chapter #0:2: start 859.817000, end 961.627000 Metadata: title : 00:14:19.817 Chapter #0:3: start 961.627000, end 1136.344000 Metadata: title : 00:16:01.627 Chapter #0:4: start 1136.344000, end 1462.544000 Metadata: title : 00:18:56.344 Chapter #0:5: start 1462.544000, end 1695.819000 Metadata: title : 00:24:22.544 Chapter #0:6: start 1695.819000, end 2113.153000 Metadata: title : 00:28:15.819 Chapter #0:7: start 2113.153000, end 2407.322000 Metadata: title : 00:35:13.153 Chapter #0:8: start 2407.322000, end 2803.384000 Metadata: title : 00:40:07.322 Chapter #0:9: start 2803.384000, end 3534.114000 Metadata: title : 00:46:43.384 Chapter #0:10: start 3534.114000, end 3902.190000 Metadata: title : 00:58:54.114 Chapter #0:11: start 3902.190000, end 4224.303000 Metadata: title : 01:05:02.190 Chapter #0:12: start 4224.303000, end 4417.038000 Metadata: title : 01:10:24.303 Chapter #0:13: start 4417.038000, end 4934.638000 Metadata: title : 01:13:37.038 Chapter #0:14: start 4934.638000, end 5393.138000 Metadata: title : 01:22:14.638 Chapter #0:15: start 5393.138000, end 5716.628000 Metadata: title : 01:29:53.138 Chapter #0:16: start 5716.628000, end 5851.971000 Metadata: title : 01:35:16.628 Chapter #0:17: start 5851.971000, end 6032.026000 Metadata: title : 01:37:31.971 Chapter #0:18: start 6032.026000, end 6454.865000 Metadata: title : 01:40:32.026 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1636 [SAR 1:1 DAR 960:409], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn (default) Metadata: BPS : 28461123 NUMBER_OF_FRAMES: 154762 NUMBER_OF_BYTES : 22964106868 _STATISTICS_WRITING_APP: mkvmerge v63.0.0 ('Everything') 64-bit _STATISTICS_WRITING_DATE_UTC: 2021-12-31 23:33:55 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: eac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Metadata: BPS : 4213533 NUMBER_OF_FRAMES: 605143 NUMBER_OF_BYTES : 3399720396 _STATISTICS_WRITING_APP: mkvmerge v63.0.0 ('Everything') 64-bit _STATISTICS_WRITING_DATE_UTC: 2021-12-31 23:33:55 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES title : EAC3 Transcoded encoder : Lavc59.15.102 eac3 f Thanks again, Joel From: Joel Samson Sent: Sunday, January 2, 2022 8:49 PM To: ffmpeg-user@ffmpeg.org Subject: Requesting expert assistance with ffmpeg-user command dropping original track/codec Hello everyone, I am new and noticed ffmpeg didn't have an official forum, I am sorry if I am following this incorrectly as I did try to read the documentation found here: Please let me know and redirect me if I am asking my question at the wrong place. In short; I asked the question here on SuperUser forums and I am pending a response: windows - ffmpeg : Not keeping original codec for Audio Track - Super User<https://superuser.com/questions/1697037/ffmpeg-not-keeping-original-codec-for-audio-track> I currently am using this command: ffmpeg -i "File" -map 0:v:0 -map 0:a:m:language:eng -c copy -f matroska - | ffmpeg -i - -map 0:v -map 0:a:0 -c copy -c:a eac3 -metadata:s:a:0 title="EAC3 Transcoded" -b:a:0 640k "File" This version of the command seems to do the following (correctly) which I want: 1. Transcodes the primary audio track whatever it is to EAC3 and labels it. 2. Labels/Changes the name of this new EAC3 it created. 3. Sets the EAC3 as First/Primary track. 4. Removes all others tracks that are not English or und. 5. Removes subtitles if found. But sadly does NOT keep the original audio track in the original codec format as a backup. For example, let's say it converts DTS to EAC3, after it's done the primary track will now be EAC3, all tracks that aren't English will be removed, but the original DTS it used for the EAC3 transcode will be missing. ( I wish for it to stay as a backup, and it should (I thought) seeing it would also be labelled as "English" for language. Any ideas would be appreciated either via email or via the SuperUser post; as I plan to use ffmpeg for a large project of media and been having issues getting this last bit to work in testing before I through it at the full media library. Thanks, _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".