Log in

View Full Version : DiscShare


hubblec4
14th December 2019, 18:07
DiscShare is developed with the intention to share a chunk of a disc with a developer quickly.
https://forum.videohelp.com/attachments/51094-1576342173/DS.JPG

Downloads:
Windows (https://forum.videohelp.com/attachments/51194-1577151018/DiscShare-W(rev0.01).7z)
Linux (https://forum.videohelp.com/attachments/51195-1577151018/DiscShare-L(rev0.01).7z)

Note, there are no upload or download functions!
This tool shrinks a disc only.

The disc structure is copied and all the selected m2ts files.
A chunk of a m2ts file will be created (20mb).

There is a CLI and GUI version.
// GUI
After loading a disc folder you can play the mpls and m2ts files from the lists by a double click.
Drag and drop is supported. GUI detects if a disc structure is present and use the input as source otherwise as target.


// CLI

DiscShare
-----------------------------------------------------------------
Syntax
DiscShare.exe [Param1 [Value1 [Param2 Value2 ... ...]]] "Source"
-----------------------------------------------------------------
Parameter
-h > Show this Help

-f > Full structure: the entire folder structure is copied

-F > Full structure and all m2ts files: all what "-f" does and
cut all m2ts to chunk files

-p > Playlist files: a comma separted array of mpls numbers
a mpls number consists of 5 digits

-m > M2TS files: a comma separted array of m2ts numbers
a m2ts number consists of 5 digits

-t > Target folder: folder will be created if not present

-r > Prepare disc restore: this mode split the m2ts files in 3 chunks
a chunk from the beginning, middle and the end

-R > Restore disc: this restores a disc backup which was created
with the "-r" parameter

".." > Source file: MUST be the last parameter! Path to source folder

@".." > Path to a parameter file: MUST be the first parameter!
The parameter file should be a simple text file
You can use any name and extension for the file name
Only source folder parameter can be used additionally
-----------------------------------------------------------------
Parameter file
Each line is used as a parameter
If you don't set a source path in the parameter file,
the source path is read from the command-line.
You can use a root parameter file called "params.txt"
Exists this file in the root folder of DiscShare, it is used automatically.
If the "params.txt" is empty, it will be ignored.
-----------------------------------------------------------------
Command
You can send a command while DiscShare is running.
Command will be executed after pressing the ENTER key

"e" > User Exit: stops DiscShare
-----------------------------------------------------------------
Exit codes
DiscShare sends at the end an exit code

0 - all OK
1 - no source folder
2 - no disc structure found
3 - no target folder (not found or could not created)
4 - no restore file found
7 - parameter file not found
8 - parameter file is empty (only if used with the cli parameter)
9 - wrong parameters
99 - internal Lazarus error
-1 - User Exit
-----------------------------------------------------------------
Examples
DiscShare: shrink disc
DiscShare.exe -t "Target\Path" "Source BD folder"
only important BD folders are copied, no m2ts chunks

DiscShare.exe -f -t "Target\Path" "Source BD folder"
all BD folders are copied, no m2ts chunks

DiscShare.exe -F -t "Target\Path" "Source BD folder"
all BD folders and m2ts chunks are copied

DiscShare.exe -f -m 00000,00002 -t "Target\Path" "Source BD folder"
all BD folders are copied and 2 m2ts chunks

DiscShare.exe -f -p 00000,00002 -t "Target\Path" "Source BD folder"
all BD folders are copied and all m2ts chunks from the 2 mpls files

DiscShare.exe -f -p 00000,00002 -m 00001 -t "Target\Path" "Source BD folder"
all BD folders are copied and all m2ts chunks from the 2 mpls files
00001.m2ts is additionally used if not used in the mpls files

DiscShare.exe -r -f -p 00000,00002 -t "Target\Path" "Source BD folder"
all BD folders are copied and all m2ts files from the 2 mpls files
are prepared for later restoring.

DiscShare: restore disc
DiscShare.exe -R "Path\prepared disc folder"
this restores the file size of all m2ts files

videoh
14th December 2019, 22:23
Way to go, hubblec4! Thank you.

hubblec4
14th December 2019, 22:39
You are welcome.

I see a small issue in the picture for the command-line. "DiscShareGUI.exe" is wrong, should be "DiscShare.exe".

redbtn
23rd December 2019, 21:24
It will be helpful, thanks!

hubblec4
24th December 2019, 02:33
DiscShare rev0.01 is available.
Windows (https://forum.videohelp.com/attachments/51194-1577151018/DiscShare-W(rev0.01).7z)
Linux (https://forum.videohelp.com/attachments/51195-1577151018/DiscShare-L(rev0.01).7z)

Small cosmetics and a Linux version is now there.


Change DiscShare

added &
fixed *
improved #
changed %


rev0.01 2019-12-24
// CLI
* delete double lines in help text

// GUI
* Command-line info used the wrong .exe, DiscShare.exe is now shown

hubblec4
23rd April 2021, 21:35
DiscShare rev0.02 is available.
Windows (https://forum.videohelp.com/attachments/58569-1619209920/DiscShare-W(rev0.02).7z)
Linux (https://forum.videohelp.com/attachments/58570-1619209920/DiscShare-L(rev0.02).7z)


Change DiscShare

added &
fixed *
improved #
changed %


rev0.02 2021-04-23
// CLI
& -s switch -> Chunk-Size-Factor, a byte value from 1 to 255, def=10 (almost 20MB)
- base size of a chunk is 2046KB (almost 2MB)

// GUI
& support for the new -s switch

& settings ini
- form: width, heigth, left, top
- Target path

% increased form width to 590