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. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#681 | Link | |
Registered User
Join Date: Jul 2023
Posts: 5
|
Quote:
In order to accelerate conversions from MKV to MP4 I customized your script so that you can pass a folder instead of a file path to allow for batch conversion of files. MP4all.rar Changes include:
NOTE:
I created this because I often have multiple files in one folder all waiting to be converted and it can be very tedious to do it one by one. You should feel free to add this script to your rar release, either as a replacement of the DDVT_MKVTOMP4 script or as a separate command. One thing that I wanted to ask you about. As you know, right now conversion fails if there is an image based subtitle track in the MKV. Should we just strip the subtitles when this is detected? It seems to me we could use something like this in the script so that no conversion would fail? Code:
# remove all subtitles (copy none) mkvmerge -o output.mkv --no-subtitles input.mkv ![]() Last edited by puremind; 26th July 2023 at 08:13. |
|
![]() |
![]() |
![]() |
#686 | Link | ||
Registered User
Join Date: Jul 2023
Posts: 1
|
Hi -QfG-
thanks for those nice scripts ![]() I mostly use the MKV2MP4 Convert to have DV play on my LG TV. However, the MP4 File has the wrong audio language tag. Every track will become tagged as ENGLISH, unfortunately. That even happens If you don't change/convert the audio track. MKV: Quote:
After MP4 conversion: Quote:
Thanks! Tom |
||
![]() |
![]() |
![]() |
#688 | Link |
Registered User
Join Date: Nov 2020
Posts: 1
|
Excellent tools.Thanx for your hard work.
Anyone know here how to fix forwarding/rewarding issue on dolby vision video file. When i merge audio or subtitle using with mkvmerge video won't forward or reward, it pause the video on Nova Video Player streaming via Jellyfin. Also why the after crop factor issue video file size doesn't match with the original file? |
![]() |
![]() |
![]() |
#690 | Link |
Registered User
Join Date: Dec 2013
Posts: 646
|
Why don't you set check by typing C and then start checking cropping values by typing S ? See what happens.
Maybe RPU from 4K is used for HD? You can also manually check border values by opening a screenshot in an image editor. Last edited by von Suppé; 8th August 2023 at 10:01. |
![]() |
![]() |
![]() |
#691 | Link | |
Registered User
Join Date: Mar 2020
Posts: 13
|
Quote:
-With Encodec version from 4K 3840x2160 to 2K 1920x1012. Right now I have no way to match the RPU with the Video file, maybe because I don't understand the working process of the App -Thank you very much! |
|
![]() |
![]() |
![]() |
#692 | Link |
Registered User
Join Date: Dec 2013
Posts: 646
|
I have no experience with crossinjecting P7 RPU into 2K encodes. I do wonder why one would do such. Perhaps it's because of your playback device/software capabilities. In case of a resize & HDR encode, I imagine P7 RPU can be used - probably with some adaptation.
If you need to convert to 2K SDR, a tonemap from HDR to SDR has to be applied prior to resizing & encoding. I guess then P7 metadata has no use whatsoever. But I can be dead wrong here and totally missing something. In your 3rd screenshot at MOVIE INPUT, I don't know why the tool returns with "Failed px". Don't know what it would mean; maybe it can't determine the borders properly. I ALWAYS do this manually. By taking a screenshot whilst playing the file and have a look in an image editor. Your target resolution being 1920x1012 I assume that you already determined the black bars and that they are cropped out in the encode. Then you have to "crop" RPU, which resets the L5 values to zero. L5 values represent the number of source-pixels of the widths/heights of surrounding black borders (which in your case are all zero, if my assumption is correct). It may help when you'd explain why you want to do this. |
![]() |
![]() |
![]() |
#693 | Link | |
Registered User
Join Date: Mar 2020
Posts: 13
|
Quote:
-But for movies with 2 black bands on the top and bottom, cutting the RPU in DEMUXER or INJECTOR does not match. The movie has removed the border |
|
![]() |
![]() |
![]() |
#694 | Link | |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,817
|
Quote:
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
|
![]() |
![]() |
![]() |
#695 | Link | |
Registered User
Join Date: Dec 2013
Posts: 646
|
Quote:
What's tickling me is why the downscale. I know DV can be 2K and can have HDR10/HLG/SDR fallback. I am wondering if there'd be DV compatible players/displays that would be limited to 2K. Or maybe OP just wants to save harddrive space? |
|
![]() |
![]() |
![]() |
#696 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,817
|
I think the idea is just to save space, I do the same all the time with both HD and UHD sources.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
![]() |
![]() |
![]() |
#697 | Link | |
Registered User
Join Date: Jul 2023
Posts: 5
|
Quote:
I found we can use mkvextract: mkvextract file.mkv tracks [tracknumber] file.srt I think your script already saves key information using media info, so all you would have to do is store information about on which track each language is found, then ask the user which subtitles they want to extract and do the extraction command on the tracks that the user selected and put them in the same folder as the source folder. This would allow srt subtitles to be preserved on all episodes of a same video within MP4all.cmd. Is there a way to extrac them in a different format and then add them to an MP4 container? |
|
![]() |
![]() |
![]() |
#698 | Link | |
Moderator
![]() Join Date: Jan 2006
Location: Portland, OR
Posts: 4,997
|
Quote:
Downscaling doesn't have a huge impact, but the low-pass filter nature of downscaling can reduce a frame's peak brightness quite a bit if it is coming from single points, like stars. Worst case would be white single pixels on a black background. If they were 1000 nits at 4K, they'd only be 250 nits at 2K, as each white pixel would be averaged out with three black pixels. |
|
![]() |
![]() |
![]() |
#699 | Link |
Registered User
Join Date: Feb 2002
Posts: 776
|
Is there an up-to-date step by step guide on how to re-encode a Dolby Vision file?
Update: well that was easier than I thought. Didn't even need to learn anything! All I did was extract RPU, encode normally like an HDR file and inject RPU and it worked! Maybe it helped that the original was a hybrid! Question, I tried both cropped RPU and no crop RPU and made 2 files, both look the same to my eyes. Is cropping RPU really make a huge difference? Last edited by Atlantis; 8th September 2023 at 21:12. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|