20230807 Convert DTS encoded AUDIO audio to AAC encoding through ffmpeg

20230807 Convert DTS encoded AUDIO audio to AAC encoding through ffmpeg2023
/8/7 20:04


ffmpeg dts to AAC

 

 

Origin: Because the movie I found online does not have Chinese subtitles, it has built-in English subtitles, but I still need to identify a copy of the English subtitles through the cut/RP2023 for backup!
I:\Downloads\2005[Red Eye Flight]Red Eye[BT Download Thunder Download]-Cloud Download\Red.Eye.2005.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.5.1-FGT-52.77GB
Red.Eye .2005.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.5.1-FGT.mkv

Due to the built-in multiple audio tracks, the audio encoding DTS.mka of DTS is obtained through MKVToolNix [highest bit rate]
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\MKVToolNix
wants PR2023 to directly OCR recognize English subtitles. PR2023 does not seem to be able to Supports DTS encoding, and can convert AAC-encoded MP4 audio through ffmpeg!

 


https://www.zhihu.com/question/35031045
When using mkvtomp4 to transcode a movie, there is noise when converting the DTS audio track to AAC. What should I do?
Especially low-pitched, explosive and other sounds can be reproduced with noise. Is there any more professional software that can convert DTS to AAC?

@@@@@@@@@@@@@@@@@@@@@@@Dividing line@@@@@@@@@@@@@@@@@@@@@@@@@ @@

C: Encapsulate the video track and converted audio track to MP4, and may add subtitles.

System Requirements: OS X + MP4Box

Open the terminal, enter and press Enter,

cd /The path of the previously obtained video track and converted aac audio track
MP4Box -add abc.264 -add abc.m4a -add abc.srt:lang=zho:layout=0x60x0x-1:group=2:hdlr= "sbtl:tx3g" abc.mp4
briefly explain the meaning of some codes

-add abc.264 Add abc.264 as video track

-add abc.m4a Add abc.m4a as audio track

-add abc.srt:lang=zho:layout=0x60x0x-1:group=2:hdlr="sbtl:tx3g" Add abc.srt as subtitle track

abc.mp4 The output file is abc.mp4

MP4Box will automatically identify whether the things you add are video or audio, but it is still recommended to type the code in the order of -add video first, then -add audio, and finally -add subtitles. :lang=zho:layout=0x60x0x-1:group=2:hdlr="sbtl:tx3g" This long string of tails is entered to allow the subtitles to be displayed normally on the iOS player. If your purpose is not In order to use the built-in player of iOS, you don't need to add this long tail. Just -add abc.srt. It is recommended to add it. After all, the built-in player of iOS calls the GPU hard decoding, which is smooth and saves power. For multiple audios, just enter -add abc2.m4a after -add abc.m4a. Pay attention to the spaces. Multiple subtitle tracks are similar. If the two subtitle tracks are Chinese and English respectively, in a long series of tails, they are lang=zho and lang=eng respectively. Also note that Chinese subtitle srt files must use utf-8 encoding.

@@@@@@@@@@@@@@@@@@@@@@@Dividing line@@@@@@@@@@@@@@@@@@@@@@@@@ @@


I:\Downloads\2005[Red Eye Flight]Red Eye[BT Download Thunder Download]-Cloud Download\Red.Eye.2005.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.5.1-FGT-52.77GB> I
: \Downloads\2005[Red Eye Flight]Red Eye[BT Download Thunder Download]-Cloud Download\Red.Eye.2005.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.5.1-FGT-52.77GB>
I:\Downloads \2005[Red Eye Flight]Red Eye[BT Download Thunder Download]-Cloud Download\Red.Eye.2005.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.5.1-FGT-52.77GB>ffmpeg -i DTS.mka -acodec aac dts2aac.mp4
ffmpeg version 2020-11-04-git-cfdddec0c8-essentials_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.0 (Rev3, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      56. 60.100 / 56. 60.100
  libavcodec     58.112.101 / 58.112.101
  libavformat    58. 64.100 / 58. 64.100
  libavdevice    58. 11.102 / 58. 11.102
  libavfilter     7. 88.102 /  7. 88.102
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Input #0, matroska,webm, from 'DTS.mka':
  Metadata:
    title           : Red.Eye.2005.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.5.1-FGT
    encoder         : libebml v1.4.4 + libmatroska v1.7.1
    creation_time   : 2023-08-07T09:11:05.000000Z
  Duration: 01:25:11.66, start: 0.000000, bitrate: 3964 kb/s
    Stream #0:0(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
    Metadata:
      title           : DTS-HD MA 5.1
      BPS             : 3962205
      DURATION        : 01:25:11.658999552
      NUMBER_OF_FRAMES: 479218
      NUMBER_OF_BYTES : 2531680052
      SOURCE_ID       : 001100
      _STATISTICS_WRITING_APP: mkvmerge v78.0 ('Running') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2023-08-07 09:11:05
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream mapping:
  Stream #0:0 -> #0:0 (dts (dca) -> aac (native))
Press [q] to stop, [?] for help
[aac @ 0000016cc90b8b80] Using a PCE to encode channel layout "5.1(side)"
Output #0, mp4, to 'dts2aac.mp4':
  Metadata:
    title           : Red.Eye.2005.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.5.1-FGT
    encoder         : Lavf58.64.100
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1(side), fltp (24 bit), 394 kb/s (default)
    Metadata:
      title           : DTS-HD MA 5.1
      BPS             : 3962205
      DURATION        : 01:25:11.658999552
      NUMBER_OF_FRAMES: 479218
      NUMBER_OF_BYTES : 2531680052
      SOURCE_ID       : 001100
      _STATISTICS_WRITING_APP: mkvmerge v78.0 ('Running') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2023-08-07 09:11:05
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      encoder         : Lavc58.112.101 aac
size=  248063kB time=01:25:11.65 bitrate= 397.5kbits/s speed=13.8x
video:0kB audio:246101kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.797190%
[aac @ 0000016cc90b8b80] Qavg: 226.790

I:\Downloads\2005[Red Eye Flight]Red Eye[BT Download Thunder Download]-Cloud Download\Red.Eye.2005.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.5.1-FGT-52.77GB>


 

 

Guess you like

Origin blog.csdn.net/wb4916/article/details/132153903