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: 709
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: Germany
Posts: 543
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).
__________________
Broadcast Encoder
LinkedIn
FranceBB is offline   Reply With Quote
Old 14th April 2019, 08:59   #3  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 709
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: Germany
Posts: 543
I never used it to extract chapters, only video and audio tracks, so I don't actually know.
__________________
Broadcast Encoder
LinkedIn
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,411
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.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order.
foxyshadis is offline   Reply With Quote
Old 22nd May 2019, 15:56   #6  |  Link
frank
Registered User
 
Join Date: Oct 2001
Location: Germany
Posts: 759
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
 
Join Date: Jun 2002
Location: Germany
Posts: 5,454
@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
Registered User
 
Join Date: Jul 2014
Posts: 691
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: 709
@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
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 01:03.


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