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 > Capturing and Editing Video > New and alternative a/v containers
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th December 2019, 18:07   #1  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,380
DiscShare

DiscShare is developed with the intention to share a chunk of a disc with a developer quickly.


Downloads:
Windows
Linux

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
Code:
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

Last edited by hubblec4; 24th December 2019 at 02:35.
hubblec4 is offline   Reply With Quote
Old 14th December 2019, 22:23   #2  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Way to go, hubblec4! Thank you.
videoh is offline   Reply With Quote
Old 14th December 2019, 22:39   #3  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,380
You are welcome.

I see a small issue in the picture for the command-line. "DiscShareGUI.exe" is wrong, should be "DiscShare.exe".
hubblec4 is offline   Reply With Quote
Old 23rd December 2019, 21:24   #4  |  Link
redbtn
Registered User
 
redbtn's Avatar
 
Join Date: Jan 2019
Location: Russia
Posts: 105
It will be helpful, thanks!
redbtn is offline   Reply With Quote
Old 24th December 2019, 02:33   #5  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,380
DiscShare rev0.01 is available.
Windows
Linux

Small cosmetics and a Linux version is now there.

Code:
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 is offline   Reply With Quote
Old 23rd April 2021, 21:35   #6  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,380
update rev0.02

DiscShare rev0.02 is available.
Windows
Linux

Code:
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
hubblec4 is offline   Reply With Quote
Reply


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 18:26.


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