cbusillo / BD_to_AVP

3D Blu-ray to Apple Vision Pro converter
GNU General Public License v3.0
100 stars 5 forks source link

Inconsistent ripping errors #20

Closed mikemonello closed 5 months ago

mikemonello commented 5 months ago

I ripped an ISO of a film using the AI FX Upscale, which generated a beautiful but huge file. That one was done by v0.2.6.7. I ripped the exact same ISO file without the AI upscale selected using v0.2.70 and received this error:

🟢 Processing started at 01:06:50 PM on 2024-06-13 🟢 Processing /Volumes/3D_Movies/3DTorrents/Anselm 2023 3D.iso

Running Get disc and MVC video properties Finished Get disc and MVC video properties

Custom MakeMKV profile created at /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/custom_profile.mmcp.xml

Running Rip disc to MKV file. Finished Rip disc to MKV file.

Detecting crop parameters...

Getting subtitle tracks from /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm 3D_t00.mkv

Running ffmpeg to extract video, audio, and subtitles from MKV Finished ffmpeg to extract video, audio, and subtitles from MKV

Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm Running /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm 3D_subtitles.sup to SRT Conversion Finished /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm 3D_subtitles.sup to SRT Conversion

Running FRIM to split MVC to stereo. Finished FRIM to split MVC to stereo.

Running Combine stereo HEVC streams to MV-HEVC. Finished Combine stereo HEVC streams to MV-HEVC.

Running Mux video, audio, and subtitles. Error running command:

Mux video, audio, and subtitles.

[iso file] Unknown box type vexu in parent hvc1

[iso file] Unknown box type hfov in parent hvc1

[iso file] Unknown box type vexu in parent hvc1

[iso file] Unknown box type hfov in parent hvc1

IsoMedia import Anselm 3D_MV-HEVC.mov - track ID 1 - Video (size 1920 x 1080)

Importing ISO File: | | (00/100)

Importing ISO File: | | (01/100)

Importing ISO File: | | (02/100)

Importing ISO File: | | (03/100)

Importing ISO File: | | (04/100)

Importing ISO File: |= | (05/100)

Importing ISO File: |= | (06/100)

Importing ISO File: |= | (07/100)

Importing ISO File: |= | (08/100)

Importing ISO File: |= | (09/100)

Importing ISO File: |== | (10/100)

Importing ISO File: |== | (11/100)

Importing ISO File: |== | (12/100)

Importing ISO File: |== | (13/100)

Importing ISO File: |== | (14/100)

Importing ISO File: |=== | (15/100)

Importing ISO File: |=== | (16/100)

Importing ISO File: |=== | (17/100)

Importing ISO File: |=== | (18/100)

Importing ISO File: |=== | (19/100)

Importing ISO File: |==== | (20/100)

Importing ISO File: |==== | (21/100)

Importing ISO File: |==== | (22/100)

Importing ISO File: |==== | (23/100)

Importing ISO File: |==== | (24/100)

Importing ISO File: |===== | (25/100)

Importing ISO File: |===== | (26/100)

Importing ISO File: |===== | (27/100)

Importing ISO File: |===== | (28/100)

Importing ISO File: |===== | (29/100)

Importing ISO File: |====== | (30/100)

Importing ISO File: |====== | (31/100)

Importing ISO File: |====== | (32/100)

Importing ISO File: |====== | (33/100)

Importing ISO File: |====== | (34/100)

Importing ISO File: |======= | (35/100)

Importing ISO File: |======= | (36/100)

Importing ISO File: |======= | (37/100)

Importing ISO File: |======= | (38/100)

Importing ISO File: |======= | (39/100)

Importing ISO File: |======== | (40/100)

Importing ISO File: |======== | (41/100)

Importing ISO File: |======== | (42/100)

Importing ISO File: |======== | (43/100)

Importing ISO File: |======== | (44/100)

Importing ISO File: |========= | (45/100)

Importing ISO File: |========= | (46/100)

Importing ISO File: |========= | (47/100)

Importing ISO File: |========= | (48/100)

Importing ISO File: |========= | (49/100)

Importing ISO File: |========== | (50/100)

Importing ISO File: |========== | (51/100)

Importing ISO File: |========== | (52/100)

Importing ISO File: |========== | (53/100)

Importing ISO File: |========== | (54/100)

Importing ISO File: |=========== | (55/100)

Importing ISO File: |=========== | (56/100)

Importing ISO File: |=========== | (57/100)

Importing ISO File: |=========== | (58/100)

Importing ISO File: |=========== | (59/100)

Importing ISO File: |============ | (60/100)

Importing ISO File: |============ | (61/100)

Importing ISO File: |============ | (62/100)

Importing ISO File: |============ | (63/100)

Importing ISO File: |============ | (64/100)

Importing ISO File: |============= | (65/100)

Importing ISO File: |============= | (66/100)

Importing ISO File: |============= | (67/100)

Importing ISO File: |============= | (68/100)

Importing ISO File: |============= | (69/100)

Importing ISO File: |============== | (70/100)

Importing ISO File: |============== | (71/100)

Importing ISO File: |============== | (72/100)

Importing ISO File: |============== | (73/100)

Importing ISO File: |============== | (74/100)

Importing ISO File: |=============== | (75/100)

Importing ISO File: |=============== | (76/100)

Importing ISO File: |=============== | (77/100)

Importing ISO File: |=============== | (78/100)

Importing ISO File: |=============== | (79/100)

Importing ISO File: |================ | (80/100)

Importing ISO File: |================ | (81/100)

Importing ISO File: |================ | (82/100)

Importing ISO File: |================ | (83/100)

Importing ISO File: |================ | (84/100)

Importing ISO File: |================= | (85/100)

Importing ISO File: |================= | (86/100)

Importing ISO File: |================= | (87/100)

Importing ISO File: |================= | (88/100)

Importing ISO File: |================= | (89/100)

Importing ISO File: |================== | (90/100)

Importing ISO File: |================== | (91/100)

Importing ISO File: |================== | (92/100)

Importing ISO File: |================== | (93/100)

Importing ISO File: |================== | (94/100)

Importing ISO File: |=================== | (95/100)

Importing ISO File: |=================== | (96/100)

Error writing data (No space left on device): 83592 blocks to write but 0 blocks written

Failure while importing media: I/O Error

Error importing /Volumes/3DAVP_Movies/BD_To_AVP_GUI_OUTPUT/Anselm 3D/Anselm 3D_MV-HEVC.mov: I/O Error



Finished Mux video, audio, and subtitles.

mikemonello commented 5 months ago

Re: �[31mError writing data (No space left on device): 83592 blocks to write but 0 blocks written

There are 2TB free on the drive to which I saved the ripped file.

cbusillo commented 5 months ago

If you look at the last line it is saying your disc is full. Can you check that? Make sure to empty trash. If you have Time Machine setup, sometimes it doesn't release the space until the backup is complete.

mikemonello commented 5 months ago

The drive I was saving to had/has 2TB free space, so it's not that. I checked to ensure there was nothing in the trash when I saw that error. Does the app store any files or require space on the system HD? I don't use Time Machine for backups, so it's not that either.

cbusillo commented 5 months ago

I believe everything I create is in the output root folder. I don't think any of the tools use a temp dir outside of that. Do you know how to use ncdu or set calculate all sizes in finder? We can use that to track down if you have excessive space used on your main drive.

cbusillo commented 5 months ago

@mikemonello I've found a few small things that used the system drive for temporary files, but it was only tens of MB. I have moved them to the output folder on the next release. If you are able to help me find anything else that may be saving to the main drive, I will fix it.

mikemonello commented 5 months ago

I'm having more successful rips than failures now with he previous version, but I'm getting this error installing 0.2.103. I haven't done anything to Wine. <img width="628" alt="Screenshot 2024-06-17 at 10 19 09 PM"

Screenshot 2024-06-17 at 10 22 13 PM

src="https://github.com/cbusillo/BD_to_AVP/assets/164604018/52aeee26-6dc9-4d71-bc8a-723a845f5544">

mikemonello commented 5 months ago
Screenshot 2024-06-17 at 10 19 09 PM
cbusillo commented 5 months ago

Right click Wine Stable in Applications and click open, see if that allows Wine to open and the program to run. I'll have to figure out a better way to install.

kalanihelekunihi commented 5 months ago

It appears that the v0.2.101 may be missing the mkvmerge dependency.

Below is from a clean install of macOS 14.5, Xcode 15.4 + CLI Utils, Homebrew, and then ran the "quick install" terminal command.

kalani@MacBook-Pro ~ % bd-to-avp Installed bd-to-avp version: 0.2.101 Code bd-to-avp version: 0.2.101

Processing /Users/kalani/Downloads/Ready Player One 2018 3D.iso Running command: /Applications/MakeMKV.app/Contents/MacOS/makemkvcon --robot info /Users/kalani/Downloads/Ready Player One 2018 3D.iso Finished Get disc and MVC video properties in 3 seconds Custom MakeMKV profile created at /Users/kalani/Movies/Ready Player One/custom_profile.mmcp.xml Running command: /Applications/MakeMKV.app/Contents/MacOS/makemkvcon --profile=/Users/kalani/Movies/Ready Player One/custom_profile.mmcp.xml mkv iso:/Users/kalani/Downloads/Ready Player One 2018 3D.iso 1 "/Users/kalani/Movies/Ready Player One" Finished Rip disc to MKV file. in 56 seconds Detecting crop parameters... Running command: ffmpeg -i /Users/kalani/Movies/Ready Player One/Ready Player One_t01.mkv -map 0:a:0 -c pcm_s24le file:/Users/kalani/Movies/Ready Player One/Ready Player One_audio_PCM.mov -map 0:v:0 -bsf h264_mp4toannexb -c copy file:/Users/kalani/Movies/Ready Player One/Ready Player One_mvc.h264 Finished ffmpeg to extract video, audio, and subtitles from MKV in a minute Downloading eng.traineddata Running Sup subtitles extraction and SRT conversion 🌑Traceback (most recent call last): File "/Users/kalani/.bd_to_avp_venv/lib/python3.12/site-packages/bd_to_avp/gui/processing.py", line 37, in run start_process() File "/Users/kalani/.bd_to_avp_venv/lib/python3.12/site-packages/bd_to_avp/modules/process.py", line 85, in start_process process() File "/Users/kalani/.bd_to_avp_venv/lib/python3.12/site-packages/bd_to_avp/modules/process.py", line 35, in process process_each() File "/Users/kalani/.bd_to_avp_venv/lib/python3.12/site-packages/bd_to_avp/modules/process.py", line 60, in process_each audio_output_path, video_output_path = create_mvc_audio_and_subtitle_files( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/kalani/.bd_to_avp_venv/lib/python3.12/site-packages/bd_to_avp/modules/container.py", line 61, in create_mvc_audio_and_subtitle_files extract_subtitle_to_srt(mkv_output_path, output_folder) File "/Users/kalani/.bd_to_avp_venv/lib/python3.12/site-packages/bd_to_avp/modules/sub.py", line 42, in extract_subtitle_to_srt mkv_file = Mkv(mkv_path.as_posix()) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/kalani/.bd_to_avp_venv/lib/python3.12/site-packages/pgsrip/mkv.py", line 81, in init metadata = json.loads(check_output(['mkvmerge', '-i', '-F', 'json', path])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 466, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 548, in run with Popen(popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 1955, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'mkvmerge'

If I then manually run brew install mkvtoolnix, the proper dependency is installed and able to continue.

cbusillo commented 5 months ago

Thank you, I have added it back and am pushing a prerelease test package now.

cbusillo commented 5 months ago

New release should be up that fixes that issue.

kalanihelekunihi commented 5 months ago

I can confirm that the new change addresses the dependency issues.

mikemonello commented 5 months ago

I'm still getting errors with Wine when trying to install 0.2.108. See screengrabs.

Screenshot 2024-06-18 at 11 26 26 AM Screenshot 2024-06-18 at 11 26 43 AM Screenshot 2024-06-18 at 11 27 05 AM
mikemonello commented 5 months ago

I opened Wine Stable.app directly and gave it permissions, then re-installed v 0.2.108 and it seems to have worked, even updating Wine.

I'm going to run some rips now.

cbusillo commented 5 months ago

Ok, so I am trying out a change now. I am detecting if it's quarantined and using the brew reinstall flag. It should remove the quarantine. Feel free to test out the next prerelease. It should be up in a bit. I hope this solves both sides of not being installed or being installed but not working.

mikemonello commented 5 months ago

It seems to have installed fine, I'm going to test it out now.

mikemonello commented 5 months ago

I received a similar error for MakeMKV when trying the first rip. I opened it from finder and gave permissions, now it seems to be ripping.

Screenshot 2024-06-18 at 3 43 35 PM
cbusillo commented 5 months ago

I missed something. Hopefully fixed in the next prerelease.

cbusillo commented 5 months ago

@mikemonello did you ever figure out why you were getting the error that opened this issue? Error writing data (No space left on device):

mikemonello commented 5 months ago

I made more space on my internal hard drive and that solved the problem, so I think it ran out of temp storage space. Haven't seen that issue since.

cbusillo commented 5 months ago

@mikemonello the only thing I could find using the main drive was the sub temp drive. I moved it to output folder. Can you check your /tmp folder on your main drive to make sure there isn’t a pipe file in there?

cbusillo commented 5 months ago

looks like this is taken care of