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. |
13th February 2016, 12:10 | #2781 | Link |
Registered User
Join Date: May 2009
Location: Belgium
Posts: 1,744
|
Hi selur,
I have a question from someone who asked me how to join 2 chaptered mp4 files and keep chapters (and eventually change the container to get MKV, which is more common). Yamb and FFmpeg don't seem to be able to do this (or we didn't find how) thus I suggested him to try with Hybrid. But before to install it, he would like to know if Hybrid can do it. And as I don't have any chaptered mp4, I can't test myself. The only thing he can do is to collect the chapters timecodes with FFmpeg and this command ; Code:
ffmpeg -i input_video -f ffmetadata metadata.txt Code:
[CHAPTER] TIMEBASE=1/2997 START=0 END=1022098 title=Beginning [CHAPTER] TIMEBASE=1/2997 START=1022098 END=1922698 title=Chapter 1 [CHAPTER] TIMEBASE=1/2997 START=1922698 END=2861697 title=Chapter 2 [CHAPTER] TIMEBASE=1/2997 START=2861697 END=3800696 title=Chapter 3 [CHAPTER] TIMEBASE=1/2997 START=3800696 END=4833195 title=Chapter 4 Thanks |
13th February 2016, 12:21 | #2782 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Hybrid can remux mp4 to mkv without any problems (and keep the chapters).
Hybrid can't merge two files. But it's probably easier to use mkvmerge gui directly, iirc. mkvmerges append supports to append input mp4s and keep and append their chapters. (long time since I did something like that, but as far as I remember it should work) Looking at the chapter format, I think Hybrid doesn't support the timebase parameter in the chapter format. (but if you have an mp4 file with chapters Hybrid can import that and convert it to mkv) Last edited by Selur; 13th February 2016 at 12:23. |
13th February 2016, 12:57 | #2783 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Hybrid rev 2016.02.13.1:
*fixed*
Cu Selur Ps.: Dropped, Linux Qt 4.8 support since even my old Ubuntu 12.04 support Qt5 nowadays. If someone needs Qt4 build contact me the forum. |
13th February 2016, 13:31 | #2784 | Link | |
Registered User
Join Date: May 2009
Posts: 328
|
Quote:
|
|
13th February 2016, 13:56 | #2786 | Link |
Registered User
Join Date: May 2009
Posts: 328
|
thanks,
just installed, resetting defaults aswell and i get msg with avisynth prewiew Code:
Avisynth preview error: Script error: MDegrain1 does not have a named argument "lsb" https://www.dropbox.com/s/ps323wcu4x...utput.txt?dl=0 edit: QTGMC selected when previewing, other avisynth previews seem ok. |
13th February 2016, 14:00 | #2787 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Argh, forgot to update the MVTools version, try if using the mvtools version from http://forum.doom9.org/showpost.php?...59&postcount=3 helps.
|
13th February 2016, 14:22 | #2788 | Link | |
Registered User
Join Date: May 2009
Posts: 328
|
Quote:
https://www.dropbox.com/s/ps323wcu4x...utput.txt?dl=0 I do still have the `alternate` avsViewer in place (originally thought may have been that) but i assume you updated that with the installer anyhow.. Last edited by DJ-1; 13th February 2016 at 14:26. |
|
13th February 2016, 20:23 | #2791 | Link | |
Registered User
Join Date: May 2009
Location: Belgium
Posts: 1,744
|
Quote:
Do you mean that the mp4 chapters won't be kept because of the timebase parameter or they will be kept but without this parameter ? |
|
14th February 2016, 13:24 | #2794 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Nope, seems to be broken, reported it to: https://bugs.chromium.org/p/webm/issues/detail?id=1149
Last edited by Selur; 14th February 2016 at 13:37. |
14th February 2016, 14:59 | #2795 | Link |
Registered User
Join Date: May 2009
Location: Belgium
Posts: 1,744
|
Thanks Jamaika but I don't understand everything in your post, could you explain a little bit more each command and the utility of this process compared to the use of MKVmerge, as suggest by Selur ?
|
14th February 2016, 16:45 | #2796 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
@Jamaika: uploaded a vpxenc version to my GoogleDrive which fixes the issue by not including vp10 to the build.
|
14th February 2016, 17:08 | #2797 | Link | |
Registered User
Join Date: Jul 2015
Posts: 705
|
Thanks
Quote:
Code:
MP4box.exe -new -info -dref* -fps __.___** v0.5.2+1228 -add "video_1.h265:group=1" -add "audio_1.aac:group=1"*** -add "subtitle_1.srt:group=1"**** -add "chapter_ogg_1.txt:group=1"**** -catx "video_2.h265:group=2 +audio_2.aac:group=2 +subtitle_2.srt:group=2 +chapter_ogg_2.txt:group=2" -catx "video_3.h265:group=3 +audio_3.aac:group=3 +subtitle_3.srt:group=3 +chapter_ogg_3.txt:group=3" "joinedfile.mp4" MKVmerge.exe --default-duration 0:__.___p --cues 0:iframes v8.8.0 ( video_1.h265 video_2.h265 video_3.h265 )* --aac-is-sbr 0:1 ( audio_1.aac audio_2.aac audio_3.aac )* ( subtitle_1.srt subtitle_2.srt subtitle_3.srt )*** --chapters ( chapter_ogg_1.txt chapter_ogg_2.txt chapter_ogg_3.txt )*** --track-order 0:0,1:0,2:0 -o joinedfile.mkv ** framerate mode is always variable *** don't join conteiner ac3 **** bad join subtitles, chapters group and convert to ttxt * don't merge '+' track video and audio. Your video stalls. ** don't join conteiner ac3 *** bad join subtitles, chapters PS: Join only containers mp4 & mkv !!! I don't know how joing files using ffmpeg. Last edited by Jamaika; 19th February 2016 at 11:33. |
|
14th February 2016, 17:47 | #2798 | Link |
Registered User
Join Date: May 2009
Location: Belgium
Posts: 1,744
|
Thanks but I still don't really understand your message, and your 2 messages contain different informations, it's quite confusing.
But I guess your last code allows to join mp4 keeping and appending their chapters. |
14th February 2016, 22:17 | #2799 | Link | |
Registered User
Join Date: Apr 2007
Posts: 129
|
Quote:
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|