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 > (HD) DVD, Blu-ray & (S)VCD > (HD) DVD & Blu-ray authoring

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th April 2017, 09:39   #1  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 269
H.264 Patcher and BD-Tools

BDTools is small set of simple command-line (CLI) utilities for displaying the structure of .mpls playlist and .clpi clip information files which are part of Bluray Disc navigation.

MPLS2JSON.exe
– converts .mpls playlist, .clpi clip information file or .bdjo BD-J object file into human&machine readable JSON file, or
– converts .json file into binary .mpls, .clpi or .bdjo file. This reverse operation can be used for modification of the content of the .mpls/.clip/.bdjo file.

MPLSDump.exe
– displays simplified list of all .m2ts files referred in given .mpls playlist

h264Modify.exe
- allows changes of some parameters of H.264 elementary video-stream.
Modifies frame-rate and sample-aspect-ratio of the H.264 encoded video without re-encoding!
- allows insertion or deletion of frame packing arrangement SEI messages (side-by-side, top-above-bottom, etc.)

h264Offset3D.exe
- tool for offset-metadata manipulation (subtitles in Bluray-3D)
- allows extract, delete, replace, insert offset-metadata from/into dependent view elementary stream of Bluray-3D.

AVCHDInfo
- displays recording date/time of each videoframe of AVCHD.MTS file extracted from vendor-specific information (if available)

BDTools executables and documentation can be downloaded from:
2017-08-24: BDTools version 2.30 - added AVCHDInfo
2017-08-02: BDTools version 2.20 - added h264Offset3D
2017-07-24: BDTools version 2.10
2017-06-16: BDTools version 2.00
2017-05-10: BDTools version 1.10
2017-04-29: BDTools version 1.00

Last edited by videofan3d; 24th August 2017 at 21:28. Reason: Version 2.30
videofan3d is offline   Reply With Quote
Old 29th April 2017, 10:17   #2  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,268
Very nice, thanks!

Stupid question: How to prevent the windows from immediately closing after displaying the result?

I put the link to the .exe into the "Send to" folder. It works but the window immediately closes.
Sharc is offline   Reply With Quote
Old 29th April 2017, 10:24   #3  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 4,847
Put a batch file into the send to folder. First line to call the program (with %1 parameter), second line "pause".

@videofan3d
Thanks for sharing.
sneaker_ger is offline   Reply With Quote
Old 29th April 2017, 12:12   #4  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,268
Odd, the called window (with the output) still closes .....
Sharc is offline   Reply With Quote
Old 29th April 2017, 13:06   #5  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 4,847
@videofan3d
Why does h264patch ask for admin rights?
sneaker_ger is offline   Reply With Quote
Old 29th April 2017, 16:14   #6  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 269
Quote:
Originally Posted by sneaker_ger View Post
@videofan3d
Why does h264patch ask for admin rights?
Rename the executable to whatever else than "*patch*.exe" and it will work.

Crazy Microsoft! If the exe-filename contains the word "patch" then it is considered as dangerous and requires administrator access... WTF!!!


I will rename it in next build to something else.

Hereby I'm opening discussion/your suggestions for new name recommendations !!!

Last edited by videofan3d; 29th April 2017 at 16:59.
videofan3d is offline   Reply With Quote
Old 29th April 2017, 16:46   #7  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 4,847
Thx.

@Sharc
Try again after renaming as explained by videofan3d.
sneaker_ger is offline   Reply With Quote
Old 29th April 2017, 22:42   #8  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,268
Yes, renaming the h264Patch.exe solved the issue. Thanks.
Sharc is offline   Reply With Quote
Old 30th April 2017, 10:01   #9  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,301
Quote:
Originally Posted by videofan3d View Post
Hereby I'm opening discussion/your suggestions for new name recommendations !!!
Maybe h264Mody (short of h264Modify).

Other metadata than can be changed is the Level, like CoolSoft H264 Level Editor.
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 1st May 2017, 22:11   #10  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 269
Quote:
Originally Posted by tebasuna51 View Post
Maybe h264Mody (short of h264Modify).

Other metadata than can be changed is the Level, like CoolSoft H264 Level Editor.
I will change the name to h264Modify (as I prefer regular, serious names).
I will add also change of profile_idc, constraint_setN_flag and level_idc.

Next release will be around 10 of May.
videofan3d is offline   Reply With Quote
Old 10th May 2017, 09:54   #11  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 269
BDTools 1.10

BDTools 1.10 released:

h264Patch
- renamed to h264Modify (due to Windows antivirus protection)
- added options -profile_idc, -constraint_flags, -level_idc
- renamed options -frame_rate, -sar_idc (for consistency with BD-documentation)

MPLS2JSON
- added experimental support for UHD Bluray (4K)
videofan3d is offline   Reply With Quote
Old 10th May 2017, 10:38   #12  |  Link
DenisRodman
Registered User
 
Join Date: Jul 2015
Posts: 24
videofan3d, Many thanks.

MPLS2JSON.exe -a great utility. Can you add conversion support also for file *.clpi ?

And what do you think about adding support for the new version of 300? Sample ver.300
DenisRodman is offline   Reply With Quote
Old 10th May 2017, 10:54   #13  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 269
Quote:
Originally Posted by DenisRodman View Post
videofan3d, Many thanks.

MPLS2JSON.exe -a great utility. Can you add conversion support also for file *.clpi ?

And what do you think about adding support for the new version of 300? Sample ver.300
re *.clip ... maybe in the future (for BD it is only matter of coding work)

Re: version 300 (UHD) ... some experimental support is already there - try it.
(To finalize it I need to get the complete UHD-BD specification.)
videofan3d is offline   Reply With Quote
Old 10th May 2017, 11:40   #14  |  Link
DenisRodman
Registered User
 
Join Date: Jul 2015
Posts: 24
Quote:
Originally Posted by videofan3d View Post
(... I need to get the complete UHD-BD specification.)
Maybe these documents will help BD-ROM Version 3.0 I found them on the internet.

I checked your new experimental version for all three types of files *.mpls, MovieObject.bdmv, index.bdmv Conversion and reverse
DenisRodman is offline   Reply With Quote
Old 4th June 2017, 10:26   #15  |  Link
mkver
Registered User
 
Join Date: May 2016
Posts: 40
Thanks for the tool. May I ask for another feature in h264modify? Can you allow it to change the SPS and PPS id-values (both of the actual SPS and PPS and of the frames using them)? This would improve the ability to join different videos (with incompatible SPS and PPS) without reencoding, because one would only need to set the SPS and PPS id to different values before joining them. (Yes, I know that this is unnecessary for Blu-ray authoring because on a Blu-ray the SPS and PPS are simply repeated and can therefore be easily overwritten, but for mp4 and mkv it would allow to use the more space-efficient "out-of-band" way of transmitting the SPS and PPS.)
mkver is offline   Reply With Quote
Old 5th June 2017, 23:02   #16  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 269
Quote:
Originally Posted by mkver View Post
Thanks for the tool. May I ask for another feature in h264modify? Can you allow it to change the SPS and PPS id-values (both of the actual SPS and PPS and of the frames using them)? This would improve the ability to join different videos (with incompatible SPS and PPS) without reencoding, because one would only need to set the SPS and PPS id to different values before joining them. (Yes, I know that this is unnecessary for Blu-ray authoring because on a Blu-ray the SPS and PPS are simply repeated and can therefore be easily overwritten, but for mp4 and mkv it would allow to use the more space-efficient "out-of-band" way of transmitting the SPS and PPS.)
Hi,

I'm working now on MPLS2JSON for .clpi files (requested somewhere above).
Once finished I will check also if SPS/PPS matter is somehow easily doable.
videofan3d is offline   Reply With Quote
Old 8th June 2017, 14:02   #17  |  Link
hubblec4
Matroska Dev-Helper
 
Join Date: Apr 2008
Posts: 765
Hi videofan3d

The MPLS2JSON is a nice tool.
I have made a small test and found a small issue.

I copyed a mpls file to the BD-Tools folder and use this commandline

Code:
F:\Download\BDTools_1.10\MPLS2JSON.exe 00001.mpls
Failed to open 00001.mpls
failed signature match:
found    ""
expected "MPLS"
      or "MOBJ"
      or "INDX"
Parse failed: 00001.mpls
Then I entered a full path to the MPLS and it works.
Code:
F:\Download\BDTools_1.10\MPLS2JSON.exe F:\Download\BDTools_1.10\00001.mpls

Last edited by hubblec4; 8th June 2017 at 14:06.
hubblec4 is offline   Reply With Quote
Old 8th June 2017, 18:06   #18  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 269
Quote:
Originally Posted by hubblec4 View Post
Hi videofan3d

The MPLS2JSON is a nice tool.
I have made a small test and found a small issue.

I copyed a mpls file to the BD-Tools folder and use this commandline

Code:
F:\Download\BDTools_1.10\MPLS2JSON.exe 00001.mpls
Failed to open 00001.mpls
failed signature match:
found    ""
expected "MPLS"
      or "MOBJ"
      or "INDX"
Parse failed: 00001.mpls
Then I entered a full path to the MPLS and it works.
Code:
F:\Download\BDTools_1.10\MPLS2JSON.exe F:\Download\BDTools_1.10\00001.mpls
Actually, what was your "current" directory when you performed the first command?
If it was NOT "F:\Download\BDTools_1.10", then it is logical that process could not find the first parameter.
MPLS2JSON doesn't change current directory, this is standard behavior of all command line programs in any
operation system (Unix, Windows DOS-prompt, Linux, ...)
You have specified full-path-qualification for executable program, thus operating system found it. But then executable MPLS2JSON tried to find 00001.mpls in current (and unchanged) directory, but it was not there. So it failed. In the second case you fully qualified the 00001.mpls file, thus process found it.

I will change the error message to explain more precisely the cause, but behavior itself is according OS standards.
videofan3d is offline   Reply With Quote
Old 8th June 2017, 21:21   #19  |  Link
hubblec4
Matroska Dev-Helper
 
Join Date: Apr 2008
Posts: 765
Thanks for these explanation.

I had used the console (windows 7) to enter the command line. With a file.bat it works all fine.

Last edited by hubblec4; 8th June 2017 at 21:25.
hubblec4 is offline   Reply With Quote
Old 16th June 2017, 09:21   #20  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 269
BDTools 2.00

BDTools 2.00 released:

MPLS2JSON - added support for .clpi clip information files


Please:
I don't have so many Blu-ray discs to check thoroughly all variants of .mpls and .clpi.
If you face some discrepancies or suspicious behavior, please provide me with relevant input file (.mpls/.clpi - both these are quite small to be send or attached) and I can fix it.
videofan3d 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 20:23.


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