DGDemux (linux)

DG tools for linux

Moderator: Sherman

User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

DGDemux (linux)

Post by Rocky »

frankaboy wrote:
Wed Aug 09, 2023 1:02 pm
Adub mentioned the wrong version in Doom9 forum.
If you have a d9 account, feel free to answer Adub's post letting him know that upgrade work has begun. If you do so, please also ask him to say what features he's specifically looking for. I ask because most of the changes in the win version 231->249 are audio and demux-related, and the linux version does not do audio and demuxing.

https://forum.doom9.org/showthread.php? ... ost1990086

P.S.: Sherman is back in school after summer vacation, so I may jump in now and again.
User avatar
hubblec4
Posts: 221
Joined: Tue May 02, 2023 6:03 pm

DGDemux (linux)

Post by hubblec4 »

Hi Sherman

Thank you for the release, a big step for Linux users.
User avatar
frankaboy
Posts: 62
Joined: Wed May 17, 2023 4:24 am

DGDemux (linux)

Post by frankaboy »

Hello Rocky,
also from my side, many thanks for the dgdemux (linux) update. :salute:
Frankaboy
I enjoy 3D movies
:popcorn:
User avatar
Sherman
Posts: 578
Joined: Mon Jan 06, 2020 10:19 pm

DGDemux (linux)

Post by Sherman »

You're a good boy, Frankaboy. Thank you for being you, and not me. Just kidding. Patented Sherman humor. Use it if you want. Bye.

Thank you, too, hubblec4.

Posting from the school bathroom. Escape is near.
Sherman Peabody
Director of Linux Development
User avatar
frankaboy
Posts: 62
Joined: Wed May 17, 2023 4:24 am

DGDemux (linux)

Post by frankaboy »

Hi Sherman, :salute:
may you can add an option in dgdemux (linux), to extract depth values (aka 3D-Planes) from MVC stream?
I figured out a workflow on Linux, to create hardcoded subtitle with fixed depths for left and right eye. :)

To use the original depths from 3D Bluray, I have to extract the depth values from 3D plane.
Therefore it would be fine, if you can add this option.
Frankaboy
I enjoy 3D movies
:popcorn:
User avatar
Sherman
Posts: 578
Joined: Mon Jan 06, 2020 10:19 pm

DGDemux (linux)

Post by Sherman »

Hi Frankaboy. My understanding is that the plane info is relevant only for the subtitles, but could be wrong. DGDemux already provides that on the streams listing for the subs.

If I'm wrong about it, let me know. You're the expert on 3D movies.
Sherman Peabody
Director of Linux Development
User avatar
frankaboy
Posts: 62
Joined: Wed May 17, 2023 4:24 am

DGDemux (linux)

Post by frankaboy »

Hi Sherman, :salute:
you are right with both statements! :)
For example "Avatar Way of Water 3D", 00801.mpls.
DGDemux (linux) shows following content.
post_3dplanes.png
Depths for forced subtitle are stored in plane 1.
Using a windows tool to extract plane 1 from mvc stream, than I get a file with name "3D-Plane-01.ofs".
Upload currently not possible, due to wrong file extension.

It would be fine, when DGDemux (linux) is able to extract 3D planes, too.
Frankaboy
I enjoy 3D movies
:popcorn:
User avatar
Sherman
Posts: 578
Joined: Mon Jan 06, 2020 10:19 pm

DGDemux (linux)

Post by Sherman »

I don't know what you mean by "extract plane 1". I don't know what an ofs file is. I don't know what tool you are talking about.

If you want me to do anything you'll have to explain these things. Don't forget anything I ask for above. Thank you.

Are you looking for some data like this:

Code: Select all

Plane #00 :
Minimum depth : 5
Maximum depth : 5
Average depth : 5
First frame with a defined depth : 0
Last frame with a defined depth : 141767
Number of frames with undefined depth : 0
Identical planes : None
Warning: This plane has a fixed depth of 5

Plane #01 :
Minimum depth : 0
Maximum depth : 5
Average depth : 5
First frame with a defined depth : 0
Last frame with a defined depth : 87064
Number of frames with undefined depth : 54703
Identical planes : None
Or do you need depths for every frame, etc. You're the expert, you gotta tell me.
Sherman Peabody
Director of Linux Development
User avatar
frankaboy
Posts: 62
Joined: Wed May 17, 2023 4:24 am

DGDemux (linux)

Post by frankaboy »

Hi Sherman,
I am talking about windows tool "MVCPlanes2OFS.exe"
Syntax:
MVCPlanes2OFS.exe "full path to mvc stream" "full path to output folder".
The tool extract all 3D planes from mvc stream, using the file extension .ofs.
In .ofs files for each frame the depth for the subtitle is stored.
Yes, I need depths for every frame. 8-)
Attachments
ofs.png
Frankaboy
I enjoy 3D movies
:popcorn:
User avatar
Sherman
Posts: 578
Joined: Mon Jan 06, 2020 10:19 pm

DGDemux (linux)

Post by Sherman »

So if you have the tool, why do you need me to do anything? Asking for a friend.
Sherman Peabody
Director of Linux Development
User avatar
frankaboy
Posts: 62
Joined: Wed May 17, 2023 4:24 am

DGDemux (linux)

Post by frankaboy »

Hi Sherman, :salute:
sorry for late reply.
I was tired yesterday evening, because I currently renovate my apartment.

I do all my office stuff, Python programming, drawing and 2D encoding on Arch Linux OS.
Only for 3D encoding in use my Windows computer.

Rocky posted on 6. September last Year, that it could be possible now to port your DGMVCSource to Linux.
It was clear for me, that I have to take care for 3D hard coded subtitles by myself.
I spend much time to figure out, how I could do this task on Arch Linux.
As written before it works fine with fix depth.
When a 3D plane is available, I can create hard coded subtitles with original depths from Bluray.

I am happy with my own 3D subtitles with fixed depth.
But I am a quality junkie, so it would be the "cherry on the cake" ,
if I am able to create 3D subtitles with original depths on Arch Linux.

Honest answer:
I do not need to start Windows, just to extract 3D planes, then jumping back to Arch Linux to create hard coded 3D subtitles. Therefore I ask you for add this option in DGDemux (linux), if it is possible.

If you port one day your DGMVCSource to Linux, than I am fully independent from Windows.
But it is up to you, to decide if or if not.

Have a nice day
PS: Brush, roll and paint are waiting for me ;)
Frankaboy
I enjoy 3D movies
:popcorn:
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

DGDemux (linux)

Post by Rocky »

Could we just build MVCPlanes2OFS or OFSExtractor for linux?
User avatar
frankaboy
Posts: 62
Joined: Wed May 17, 2023 4:24 am

DGDemux (linux)

Post by frankaboy »

Hi Rocky,
this is a very good solution for me. :D
Please build MVCPlanes2OFS for Linux.
:hat:
Frankaboy
I enjoy 3D movies
:popcorn:
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

DGDemux (linux)

Post by Rocky »

When you get your flat painted c'mon over and do ours. We won't charge you much.
User avatar
frankaboy
Posts: 62
Joined: Wed May 17, 2023 4:24 am

DGDemux (linux)

Post by frankaboy »

Hi Rocky, hi Sherman, :salute:
I have finished my "painting nightmare" on Saturday evening. 8-)

Yesterday evening I visited the OFSExtractor homepage on GitHub.
I found a Python script with name "OFSExtractor.py".
I played around with this script and finally, with some modifications, I was able to extract 3D planes. :D

Building MVCPlanes2OFS for Linux is obsolete now.
Hope, you did not spend too much time for this task so far.

Many thanks for your help again. :hat:

Without your proposal, I had never looked deeper into OFSExtractor.
Frankaboy
I enjoy 3D movies
:popcorn:
User avatar
Sherman
Posts: 578
Joined: Mon Jan 06, 2020 10:19 pm

DGDemux (linux)

Post by Sherman »

Thanks for the update, Frankie. I just finished installing the 4090 and was going to fire up the linux machine but you have forestalled me. It's OK, I forgive you. Glad to hear you have a solution.

The 4090 gave a 33% gain over the 3090 in our use cases.

Later gator. After a while crocodile.
Sherman Peabody
Director of Linux Development
User avatar
hubblec4
Posts: 221
Joined: Tue May 02, 2023 6:03 pm

DGDemux (linux)

Post by hubblec4 »

Hi Sherman

I hope you are fine and you have time to make the 1.0.0.73 Linux version of DGDemux.
User avatar
Sherman
Posts: 578
Joined: Mon Jan 06, 2020 10:19 pm

DGDemux (linux)

Post by Sherman »

Sure, Mr. hubblec4. I'll get started on it today.
Sherman Peabody
Director of Linux Development
User avatar
hubblec4
Posts: 221
Joined: Tue May 02, 2023 6:03 pm

DGDemux (linux)

Post by hubblec4 »

Sherman wrote:
Wed Feb 14, 2024 8:58 am
I'll get started on it today.
Great news, thank you.
User avatar
Sherman
Posts: 578
Joined: Mon Jan 06, 2020 10:19 pm

DGDemux (linux)

Post by Sherman »

Required changes coded. Moving on to testing...
Sherman Peabody
Director of Linux Development
User avatar
Sherman
Posts: 578
Joined: Mon Jan 06, 2020 10:19 pm

DGDemux (linux)

Post by Sherman »

The first time I ran it I got a 382GB demux for COLUMBO 00006.mpls. :lol:

I fixed that so please test this:

https://rationalqm.us/misc/DGDemux_linux_hubblec4.zip

When you bless it I'll make a release.
Sherman Peabody
Director of Linux Development
User avatar
hubblec4
Posts: 221
Joined: Tue May 02, 2023 6:03 pm

DGDemux (linux)

Post by hubblec4 »

Hi Sherman

Thanks for the test release. I'm back very late this night and will test it.
User avatar
Sherman
Posts: 578
Joined: Mon Jan 06, 2020 10:19 pm

DGDemux (linux)

Post by Sherman »

No hurry Mr. hubblec4. Take your time.
Sherman Peabody
Director of Linux Development
User avatar
hubblec4
Posts: 221
Joined: Tue May 02, 2023 6:03 pm

DGDemux (linux)

Post by hubblec4 »

Looks good. Only 25min 29sec playtime of the demuxed files.
User avatar
Sherman
Posts: 578
Joined: Mon Jan 06, 2020 10:19 pm

DGDemux (linux)

Post by Sherman »

Thank you for your testing. I have asked Rocky to release it.
Sherman Peabody
Director of Linux Development
Post Reply