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.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th April 2019, 17:45   #1  |  Link
Nico8583
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 !
Nico8583 is offline   Reply With Quote
Old 14th April 2019, 06:23   #2  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,902
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).
FranceBB is offline   Reply With Quote
Old 14th April 2019, 08:59   #3  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
Thank you, I didn't know ffmpeg can extract tracks. It can extract only video streams or also audio and subtitles and even chapters ? Thank you.
Nico8583 is offline   Reply With Quote
Old 14th April 2019, 21:50   #4  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,902
I never used it to extract chapters, only video and audio tracks, so I don't actually know.
FranceBB is offline   Reply With Quote
Old 15th April 2019, 06:09   #5  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
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.
foxyshadis is offline   Reply With Quote
Old 22nd May 2019, 15:56   #6  |  Link
frank
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
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]
...
This meta data file can be loaded again with -i at encoding.

Last edited by frank; 22nd May 2019 at 16:01.
frank is offline   Reply With Quote
Old 22nd May 2019, 19:06   #7  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
@Nico8583

It depends, to rip DVD/BR I always suggest MakeMKV and mkvextract.
stax76 is offline   Reply With Quote
Old 22nd May 2019, 20:11   #8  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Won't talk about "best" but DGIndexNV can do the demuxing job as well.
videoh is offline   Reply With Quote
Old 23rd May 2019, 18:09   #9  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
@stax76 : I'll try it, thank you
@videoh : Thank you but I don't have a Nvidia graphic card :/
Nico8583 is offline   Reply With Quote
Old 31st May 2019, 01:30   #10  |  Link
an3k
Registered User
 
an3k's Avatar
 
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.
an3k is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:21.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.