Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
12th April 2019, 17:45 | #1 | Link |
Registered User
Join Date: Jan 2010
Location: France
Posts: 851
|
Best way to demux M2TS/MKV HEVC 4K HDR streams ?
Hi,
I would like to know the best way to demux a M2TS or MKV 4K HDR file ? I believe eac3to can do that and tsMuxeR too but I don't know if there are some others (better?!) tool ? Thank you ! |
14th April 2019, 06:23 | #2 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
|
Extracting the .h264 or .h265 track inside the container?
If it's an mkv, I use MKVExtract GUI (or MKVClever). If it's an mp4, I use mp4box. If it's something else, like an m2ts, I generally use ffmpeg to extract the tracks directly. (Eventually, you could remux to mkv and extract the tracks from the remuxed mkv if ffmpeg fails for whatever reason). |
15th April 2019, 06:09 | #5 | Link |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Most people parse the chapter names out of ffprobe. I don't know of a good general round-trip tool for those, other than mkvinfo for mkv. If you're fine with some scripting, though, you can use one of these suggestions and replace the part that splits the file with simply saving the chapters in your favorite format.
|
22nd May 2019, 15:56 | #6 | Link |
Banned
Join Date: Oct 2001
Location: https://t.me/pump_upp
Posts: 811
|
To get chapters from mkv with ffmpeg extract metadata.
Code:
ffmpeg.exe -i input.mkv -f ffmetadata ffchap.txt Code:
;FFMETADATA1 title=movie title encoder=Lavf58.27.103 [CHAPTER] TIMEBASE=1/1000000000 START=0 END=540000000000 title=chapter 01 [CHAPTER] TIMEBASE=1/1000000000 START=540000000000 END=1204459000000 title=chapter 02 [CHAPTER] ... Last edited by frank; 22nd May 2019 at 16:01. |
22nd May 2019, 19:06 | #7 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
@Nico8583
It depends, to rip DVD/BR I always suggest MakeMKV and mkvextract.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
31st May 2019, 01:30 | #10 | Link |
Registered User
Join Date: Oct 2006
Location: Omicron Persei 8
Posts: 180
|
You have the following options:
- eac3to - ffmpeg - DGIndex (that's the one not requiring a graphics card video encoder) - tsMuxeR In case it's a MKV you additionally can use - mkvextract (ideally with its GUI gMKVExtractGUI) eac3to can even read a whole Blu-ray structure and list you the various playlists and after selecting one the various streams. It's also very easy to use and can automatically encode audio streams to other formats while demuxing. ffmpeg can do everything but I don't know how. DGIndex is nice if you want to index the video stream so you can further process it with AviSynth. It's ability to demux is just a "nice to have". tsMuxeR is made for demuxing and remuxing but since it doesn't get updated anymore it has problems with some Blu-rays. I just noticed one of its problems lately where it corrupted the video stream. There were massive decolorations through the whole video stream. mkvextract works flawlessly for MKV but gMKVExtractGUI can't work with some 4K content. |
|
|