Hi guys
Here's an example of how to remux a dv movie composed with multiple m2ts file with the
yusesope method.
Usefull programs to install in windows:
- BDInfo =>
https://www.videohelp.com/software/BDInfo
- MPCBE =>
https://www.videohelp.com/software/MPC-BE
The programs you need to make mp4 DV:
- ffmpeg =>
https://ffmpeg.zeranoe.com/builds/
- mp4muxer => (use the first version)
https://mega.nz/file/Jawn3ADa#vN1ai3llv ... ktTQ4uFYkk
- mp4box =>
https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/
The make those CLI tools easy to use, it s better to install ffmpeg, mp4muxer and mp4box in the same folder.
exemple: How to create the DV mp4 file with audio in French for Alita Battle Angel.
1/ launch BDinfo to see what files compose the movie
2/ with MPCBE watch the differents M2TS of the differents playlist (800,801,802,803)
If you look 800,801,802,803.MPLS ... you can see that the playlist is composed of 4 files, with differents first file and last file.
On 803.mpls, the first 00006.M2TS have the introducing text in french. So, 803.MPLS is the playlist for the movie in french.
Now if you look at the "AUDio" list, you can note that the french DTS track is numbered 1104.
3/ now we need to find the corresponding "map" number for the audio track we want to demux
Code: Select all
ffprobe -i F:\BDMV\STREAM\00006.m2ts
French = 1104 => in ffprobe this give a map number 0:7
4/ To assemble the full movie we need to create a "m2ts_list.txt" file, and list inside the differents .m2ts files
Code: Select all
file 'F:\BDMV\STREAM\00006.m2ts'
file 'F:\BDMV\STREAM\00688.m2ts'
file 'F:\BDMV\STREAM\00021.m2ts'
file 'F:\BDMV\STREAM\00689.m2ts'
5/ now here's the magical command to demux the list of the m2ts as BL and EL hevc files and audio.mp4 (containing the french dts track)
Code: Select all
ffmpeg -f concat -safe 0 -i m2ts_list.txt -map 0:0 -c copy BL.hevc -map 0:1 -c copy EL.hevc -map 0:7 -c copy audio.mp4
6/ assemble the DV .mp4 file
Code: Select all
mp4muxer_64bits.exe --dv-profile 7 --input-file BL.hevc --input-file EL.hevc --output-file mp4_dv.mp4
7/ add the audio to the DV .mp4 file
Code: Select all
mp4box.exe -add mp4_dv.mp4:rate=0 -add audio.mp4#audio:lang=fr-FR -no-iod mp4_dv_movie.mp4
8/ Et voila !
Code: Select all
Général
Nom complet : C:\ESD\mp4_dv_movie.mp4
Format : MPEG-4
Profil du format : Base Media
Identifiant du codec : isom (isom)
Taille du fichier : 37,8 Gio
Durée : 2 h 1 min
Débit global moyen : 44,3 Mb/s
Date d'encodage : UTC 2019-08-06 08:24:02
Date de marquage : UTC 2019-08-06 08:24:02
Vidéo #1
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Profil du format : Main 10@L5.1@High
HDR_Format/String : SMPTE ST 2094 App 4, Version 1, HDR10+ Profile A compatible
Identifiant du codec : hev1
Identifiant du codec/Info : High Efficiency Video Coding
Durée : 2 h 1 min
Débit : 41,4 Mb/s
Largeur : 3 840 pixels
Hauteur : 2 160 pixels
Format à l'écran : 16/9
Type d'images/s : Constant
Images par seconde : 23,976 (24000/1001) Im/s
Espace de couleurs : YUV
Sous-échantillonnage de la chrominance : 4:2:0 (Type 2)
Profondeur des couleurs : 10 bits
Bits/(Pixel*Image) : 0.208
Taille du flux : 35,3 Gio (93%)
Default : Non
Date d'encodage : UTC 2019-08-06 07:57:34
Date de marquage : UTC 2019-08-06 08:28:16
Gamme de couleurs : Limited
Coordonnées de chromaticité : BT.2020
Caractéristiques du transfert : PQ
Coefficients de la matrice : BT.2020 non-constant
MasteringDisplay_ColorPrimaries : Display P3
MasteringDisplay_Luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
MaxCLL : 326 cd/m2
MaxFALL : 63 cd/m2
Codec configuration box : hvcC
Vidéo #2
ID : 2
Format : HEVC
Format/Info : High Efficiency Video Coding
Profil du format : Main 10@L5.1@High
HDR_Format/String : Dolby Vision, Version 1.0, dvhe.07.06, EL+RPU / SMPTE ST 2086, HDR10 compatible
Identifiant du codec : dvhe
Identifiant du codec/Info : High Efficiency Video Coding with Dolby Vision
Durée : 2 h 1 min
Débit : 2 134 kb/s
Largeur : 1 920 pixels
Hauteur : 1 080 pixels
Format à l'écran : 16/9
Type d'images/s : Constant
Images par seconde : 23,976 (24000/1001) Im/s
Espace de couleurs : YUV
Sous-échantillonnage de la chrominance : 4:2:0 (Type 2)
Profondeur des couleurs : 10 bits
Bits/(Pixel*Image) : 0.043
Taille du flux : 1,82 Gio (5%)
Default : Non
Date d'encodage : UTC 2019-08-06 07:57:34
Date de marquage : UTC 2019-08-06 08:28:16
Gamme de couleurs : Limited
Coordonnées de chromaticité : BT.2020
Caractéristiques du transfert : PQ
Coefficients de la matrice : BT.2020 non-constant
MasteringDisplay_ColorPrimaries : Display P3
MasteringDisplay_Luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Codec configuration box : hvcC+dvcC
Audio
ID : 3
Format : DTS
Format/Info : Digital Theater Systems
Identifiant du codec : mp4a-A9
Durée : 2 h 1 min
Durée de la source duration : 2 h 1 min
Type de débit : Constant
Débit : 768 kb/s
Débit maximum : 778 kb/s
Canaux : 6 canaux
ChannelLayout : C L R Ls Rs LFE
Echantillonnage : 48,0 kHz
Images par seconde : 93,750 Im/s (512 SPF)
Profondeur des couleurs : 24 bits
Mode de compression : Avec perte
Taille du flux : 670 Mio (2%)
Taille du flux source : 670 Mio (2%)
Langue : Français
Default : Oui
AlternateGroup/String : 1
Date de marquage : UTC 2019-08-06 08:28:16