NickvisionApps / Parabolic

Download web video and audio
https://flathub.org/apps/details/org.nickvision.tubeconverter
GNU General Public License v3.0
1.06k stars 56 forks source link

Opus file not moved to destination folder / Error Message given #112

Closed Tater-K7S5A closed 1 year ago

Tater-K7S5A commented 1 year ago

Thank you for your hard work on this application. I really do like it. However, right now it's being cranky.

I am running Linux Mint 21.1 Cinnamon with the Tube Converter version 2023.3.0 (Flatpak).

Since the last update I have been having trouble with opus files. If I put in a YouTube address and select OPUS it will fail and occasionally crash.

I was able to find the .opus file in /home/tate/.var/app/org.nickvision.tubeconverter/config/Nickvision/Nickvision Tube Converter/temp/847878cd-ab86-4017-a0b6-5c2fdc326bb7/ and it appears to be fine. It just wasn't moved to the destination set in the application. mp4, mp3 and FLAC all get moved at the end of the process.

Here is the log output from the application:

youtube] Extracting URL: https://www.youtube.com/watch?v=Zb8QXqevpx4
[youtube] Zb8QXqevpx4: Downloading webpage
[youtube] Zb8QXqevpx4: Downloading android player API JSON
[info] Zb8QXqevpx4: Downloading 1 format(s): 251
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /home/tate/.var/app/org.nickvision.tubeconverter/config/Nickvision/Nickvision Tube Converter/temp/847878cd-ab86-4017-a0b6-5c2fdc326bb7/Linux Saloon | 18 Mar 2023 | Open Mic Night, Qr Codes, Messaging Platforms, Linux Hardware.webp
[dashsegments] Total fragments: 10
[download] Destination: /home/tate/.var/app/org.nickvision.tubeconverter/config/Nickvision/Nickvision Tube Converter/temp/847878cd-ab86-4017-a0b6-5c2fdc326bb7/Linux Saloon | 18 Mar 2023 | Open Mic Night, Qr Codes, Messaging Platforms, Linux Hardware.webm

[download]   0.0% of ~ 100.00MiB at    5.47KiB/s ETA 05:12:01 (frag 0/10)
[download]   0.0% of ~ 100.00MiB at   15.90KiB/s ETA 01:47:18 (frag 0/10)
[download]   0.0% of ~ 100.00MiB at   36.33KiB/s ETA 46:58 (frag 0/10)   
[download]   0.0% of ~ 100.00MiB at   76.58KiB/s ETA 22:16 (frag 0/10)
[download]   0.0% of ~ 100.00MiB at  141.90KiB/s ETA 12:01 (frag 0/10)
[download]   0.1% of ~ 100.00MiB at  253.12KiB/s ETA 06:44 (frag 0/10)
[download]   0.1% of ~ 100.00MiB at  446.66KiB/s ETA 03:48 (frag 0/10)
[download]   0.2% of ~ 100.00MiB at  799.74KiB/s ETA 02:07 (frag 0/10)
[download]   0.5% of ~ 100.00MiB at    1.41MiB/s ETA 01:10 (frag 0/10)
[download]   1.0% of ~ 100.00MiB at    2.57MiB/s ETA 00:38 (frag 0/10)
[download]   2.0% of ~ 100.00MiB at    4.73MiB/s ETA 00:20 (frag 0/10)
[download]   4.0% of ~ 100.00MiB at    8.32MiB/s ETA 00:11 (frag 0/10)
[download]   8.0% of ~ 100.00MiB at   13.71MiB/s ETA 00:06 (frag 0/10)
[download]  10.0% of ~ 100.00MiB at   15.02MiB/s ETA 00:05 (frag 0/10)
[download]  10.0% of ~ 100.00MiB at   14.90MiB/s ETA 00:05 (frag 1/10)
[download]  10.0% of ~ 100.00MiB at    6.71KiB/s ETA 00:07 (frag 1/10)
[download]  10.0% of ~ 100.00MiB at   19.68KiB/s ETA 00:07 (frag 1/10)
[download]  10.0% of ~ 100.00MiB at   45.03KiB/s ETA 00:07 (frag 1/10)
[download]  10.0% of ~ 100.00MiB at   95.22KiB/s ETA 00:07 (frag 1/10)
[download]  10.0% of ~ 100.00MiB at  168.94KiB/s ETA 00:07 (frag 1/10)
[download]  10.1% of ~ 100.00MiB at  297.38KiB/s ETA 00:07 (frag 1/10)
[download]  10.1% of ~ 100.00MiB at  516.90KiB/s ETA 00:08 (frag 1/10)
[download]  10.2% of ~ 100.00MiB at  915.12KiB/s ETA 00:08 (frag 1/10)
[download]  10.5% of ~ 100.00MiB at    1.61MiB/s ETA 00:08 (frag 1/10)
[download]  11.0% of ~ 100.00MiB at    2.91MiB/s ETA 00:08 (frag 1/10)
[download]  12.0% of ~ 100.00MiB at    5.28MiB/s ETA 00:07 (frag 1/10)
[download]  14.0% of ~ 100.00MiB at    8.16MiB/s ETA 00:07 (frag 1/10)
[download]  18.0% of ~ 100.00MiB at   13.84MiB/s ETA 00:05 (frag 1/10)
[download]  20.0% of ~ 100.00MiB at   12.92MiB/s ETA 00:05 (frag 1/10)
[download]  20.0% of ~ 100.00MiB at   12.88MiB/s ETA 00:05 (frag 2/10)
[download]  20.0% of ~ 100.00MiB at    5.98KiB/s ETA 00:06 (frag 2/10)
[download]  20.0% of ~ 100.00MiB at   17.69KiB/s ETA 00:06 (frag 2/10)
[download]  20.0% of ~ 100.00MiB at   40.52KiB/s ETA 00:06 (frag 2/10)
[download]  20.0% of ~ 100.00MiB at   85.50KiB/s ETA 00:06 (frag 2/10)
[download]  20.0% of ~ 100.00MiB at  154.48KiB/s ETA 00:06 (frag 2/10)
[download]  20.1% of ~ 100.00MiB at  276.03KiB/s ETA 00:06 (frag 2/10)
[download]  20.1% of ~ 100.00MiB at  482.12KiB/s ETA 00:06 (frag 2/10)
[download]  20.2% of ~ 100.00MiB at  864.79KiB/s ETA 00:06 (frag 2/10)
[download]  20.5% of ~ 100.00MiB at    1.53MiB/s ETA 00:06 (frag 2/10)
[download]  21.0% of ~ 100.00MiB at    2.77MiB/s ETA 00:06 (frag 2/10)
[download]  22.0% of ~ 100.00MiB at    5.05MiB/s ETA 00:06 (frag 2/10)
[download]  24.0% of ~ 100.00MiB at    8.02MiB/s ETA 00:06 (frag 2/10)
[download]  28.0% of ~ 100.00MiB at   13.17MiB/s ETA 00:05 (frag 2/10)
[download]  30.0% of ~ 100.00MiB at   12.62MiB/s ETA 00:05 (frag 2/10)
[download]  30.0% of ~ 100.00MiB at   12.55MiB/s ETA 00:05 (frag 3/10)
[download]  30.0% of ~ 100.00MiB at    6.93KiB/s ETA 00:05 (frag 3/10)
[download]  30.0% of ~ 100.00MiB at   20.47KiB/s ETA 00:05 (frag 3/10)
[download]  30.0% of ~ 100.00MiB at   46.95KiB/s ETA 00:05 (frag 3/10)
[download]  30.0% of ~ 100.00MiB at   99.37KiB/s ETA 00:05 (frag 3/10)
[download]  30.0% of ~ 100.00MiB at  172.13KiB/s ETA 00:05 (frag 3/10)
[download]  30.1% of ~ 100.00MiB at  296.86KiB/s ETA 00:05 (frag 3/10)
[download]  30.1% of ~ 100.00MiB at  515.42KiB/s ETA 00:05 (frag 3/10)
[download]  30.2% of ~ 100.00MiB at  907.48KiB/s ETA 00:05 (frag 3/10)
[download]  30.5% of ~ 100.00MiB at    1.59MiB/s ETA 00:05 (frag 3/10)
[download]  31.0% of ~ 100.00MiB at    2.88MiB/s ETA 00:05 (frag 3/10)
[download]  32.0% of ~ 100.00MiB at    5.20MiB/s ETA 00:05 (frag 3/10)
[download]  34.0% of ~ 100.00MiB at    7.95MiB/s ETA 00:05 (frag 3/10)
[download]  38.0% of ~ 100.00MiB at   13.53MiB/s ETA 00:04 (frag 3/10)
[download]  40.0% of ~ 100.00MiB at   13.02MiB/s ETA 00:04 (frag 3/10)
[download]  40.0% of ~ 100.00MiB at   12.93MiB/s ETA 00:04 (frag 4/10)
[download]  40.0% of ~ 100.00MiB at    6.90KiB/s ETA 00:04 (frag 4/10)
[download]  40.0% of ~ 100.00MiB at   20.39KiB/s ETA 00:04 (frag 4/10)
[download]  40.0% of ~ 100.00MiB at   47.06KiB/s ETA 00:04 (frag 4/10)
[download]  40.0% of ~ 100.00MiB at   99.23KiB/s ETA 00:04 (frag 4/10)
[download]  40.0% of ~ 100.00MiB at  173.20KiB/s ETA 00:04 (frag 4/10)
[download]  40.1% of ~ 100.00MiB at  302.18KiB/s ETA 00:04 (frag 4/10)
[download]  40.1% of ~ 100.00MiB at  523.65KiB/s ETA 00:04 (frag 4/10)
[download]  40.2% of ~ 100.00MiB at  924.30KiB/s ETA 00:04 (frag 4/10)
[download]  40.5% of ~ 100.00MiB at    1.62MiB/s ETA 00:04 (frag 4/10)
[download]  41.0% of ~ 100.00MiB at    2.93MiB/s ETA 00:04 (frag 4/10)
[download]  42.0% of ~ 100.00MiB at    5.29MiB/s ETA 00:04 (frag 4/10)
[download]  44.0% of ~ 100.00MiB at    9.36MiB/s ETA 00:04 (frag 4/10)
[download]  48.0% of ~ 100.00MiB at   13.78MiB/s ETA 00:03 (frag 4/10)
[download]  50.0% of ~ 100.00MiB at   13.18MiB/s ETA 00:03 (frag 4/10)
[download]  50.0% of ~ 100.00MiB at   13.09MiB/s ETA 00:03 (frag 5/10)
[download]  50.0% of ~ 100.00MiB at    7.17KiB/s ETA 00:03 (frag 5/10)
[download]  50.0% of ~ 100.00MiB at   21.19KiB/s ETA 00:03 (frag 5/10)
[download]  50.0% of ~ 100.00MiB at   48.69KiB/s ETA 00:03 (frag 5/10)
[download]  50.0% of ~ 100.00MiB at  102.74KiB/s ETA 00:03 (frag 5/10)
[download]  50.0% of ~ 100.00MiB at  177.99KiB/s ETA 00:03 (frag 5/10)
[download]  50.1% of ~ 100.00MiB at  304.56KiB/s ETA 00:03 (frag 5/10)
[download]  50.1% of ~ 100.00MiB at  524.16KiB/s ETA 00:04 (frag 5/10)
[download]  50.2% of ~ 100.00MiB at  919.69KiB/s ETA 00:04 (frag 5/10)
[download]  50.5% of ~ 100.00MiB at    1.61MiB/s ETA 00:04 (frag 5/10)
[download]  51.0% of ~ 100.00MiB at    2.92MiB/s ETA 00:03 (frag 5/10)
[download]  52.0% of ~ 100.00MiB at    5.26MiB/s ETA 00:03 (frag 5/10)
[download]  54.0% of ~ 100.00MiB at    9.19MiB/s ETA 00:03 (frag 5/10)
[download]  58.0% of ~ 100.00MiB at   14.05MiB/s ETA 00:03 (frag 5/10)
[download]  60.0% of ~ 100.00MiB at   12.94MiB/s ETA 00:03 (frag 5/10)
[download]  60.0% of ~ 100.00MiB at   12.84MiB/s ETA 00:03 (frag 6/10)
[download]  60.0% of ~ 100.00MiB at    6.75KiB/s ETA 00:03 (frag 6/10)
[download]  60.0% of ~ 100.00MiB at   19.94KiB/s ETA 00:03 (frag 6/10)
[download]  60.0% of ~ 100.00MiB at   45.86KiB/s ETA 00:03 (frag 6/10)
[download]  60.0% of ~ 100.00MiB at   97.06KiB/s ETA 00:03 (frag 6/10)
[download]  60.0% of ~ 100.00MiB at  169.25KiB/s ETA 00:03 (frag 6/10)
[download]  60.1% of ~ 100.00MiB at  293.77KiB/s ETA 00:03 (frag 6/10)
[download]  60.1% of ~ 100.00MiB at  512.88KiB/s ETA 00:03 (frag 6/10)
[download]  60.2% of ~ 100.00MiB at  902.62KiB/s ETA 00:03 (frag 6/10)
[download]  60.5% of ~ 100.00MiB at    1.53MiB/s ETA 00:03 (frag 6/10)
[download]  61.0% of ~ 100.00MiB at    2.37MiB/s ETA 00:03 (frag 6/10)
[download]  62.0% of ~ 100.00MiB at    3.49MiB/s ETA 00:03 (frag 6/10)
[download]  64.0% of ~ 100.00MiB at    5.43MiB/s ETA 00:02 (frag 6/10)
[download]  68.0% of ~ 100.00MiB at    9.14MiB/s ETA 00:02 (frag 6/10)
[download]  70.0% of ~ 100.00MiB at    9.25MiB/s ETA 00:02 (frag 6/10)
[download]  70.0% of ~ 100.00MiB at    9.23MiB/s ETA 00:02 (frag 7/10)
[download]  70.0% of ~ 100.00MiB at    7.32KiB/s ETA 00:02 (frag 7/10)
[download]  70.0% of ~ 100.00MiB at   21.81KiB/s ETA 00:02 (frag 7/10)
[download]  70.0% of ~ 100.00MiB at   50.61KiB/s ETA 00:02 (frag 7/10)
[download]  70.0% of ~ 100.00MiB at  107.80KiB/s ETA 00:02 (frag 7/10)
[download]  70.0% of ~ 100.00MiB at  181.15KiB/s ETA 00:02 (frag 7/10)
[download]  70.1% of ~ 100.00MiB at  310.57KiB/s ETA 00:02 (frag 7/10)
[download]  70.1% of ~ 100.00MiB at  540.43KiB/s ETA 00:02 (frag 7/10)
[download]  70.2% of ~ 100.00MiB at  944.12KiB/s ETA 00:02 (frag 7/10)
[download]  70.5% of ~ 100.00MiB at    1.65MiB/s ETA 00:02 (frag 7/10)
[download]  71.0% of ~ 100.00MiB at    2.99MiB/s ETA 00:02 (frag 7/10)
[download]  72.0% of ~ 100.00MiB at    5.39MiB/s ETA 00:02 (frag 7/10)
[download]  74.0% of ~ 100.00MiB at    8.25MiB/s ETA 00:02 (frag 7/10)
[download]  78.0% of ~ 100.00MiB at   14.07MiB/s ETA 00:01 (frag 7/10)
[download]  80.0% of ~ 100.00MiB at   12.71MiB/s ETA 00:01 (frag 7/10)
[download]  80.0% of ~ 100.00MiB at   12.62MiB/s ETA 00:01 (frag 8/10)
[download]  80.0% of ~ 100.00MiB at    6.90KiB/s ETA 00:01 (frag 8/10)
[download]  80.0% of ~ 100.00MiB at   20.43KiB/s ETA 00:01 (frag 8/10)
[download]  80.0% of ~ 100.00MiB at   46.97KiB/s ETA 00:01 (frag 8/10)
[download]  80.0% of ~ 100.00MiB at   99.16KiB/s ETA 00:01 (frag 8/10)
[download]  80.0% of ~ 100.00MiB at  172.15KiB/s ETA 00:01 (frag 8/10)
[download]  80.1% of ~ 100.00MiB at  301.53KiB/s ETA 00:01 (frag 8/10)
[download]  80.1% of ~ 100.00MiB at  524.34KiB/s ETA 00:01 (frag 8/10)
[download]  80.2% of ~ 100.00MiB at  924.56KiB/s ETA 00:01 (frag 8/10)
[download]  80.5% of ~ 100.00MiB at    1.52MiB/s ETA 00:01 (frag 8/10)
[download]  81.0% of ~ 100.00MiB at    2.49MiB/s ETA 00:01 (frag 8/10)
[download]  82.0% of ~ 100.00MiB at    3.43MiB/s ETA 00:01 (frag 8/10)
[download]  84.0% of ~ 100.00MiB at    4.80MiB/s ETA 00:01 (frag 8/10)
[download]  88.0% of ~ 100.00MiB at    5.39MiB/s ETA 00:01 (frag 8/10)
[download]  90.0% of ~ 100.00MiB at    5.62MiB/s ETA 00:00 (frag 8/10)
[download]  90.0% of ~ 100.00MiB at    5.60MiB/s ETA 00:00 (frag 9/10)
[download]  93.2% of ~  96.54MiB at    6.81KiB/s ETA 00:00 (frag 9/10)
[download]  93.2% of ~  96.54MiB at   20.31KiB/s ETA 00:00 (frag 9/10)
[download]  93.2% of ~  96.54MiB at   47.11KiB/s ETA 00:00 (frag 9/10)
[download]  93.2% of ~  96.54MiB at  100.42KiB/s ETA 00:00 (frag 9/10)
[download]  93.3% of ~  96.54MiB at  170.22KiB/s ETA 00:00 (frag 9/10)
[download]  93.3% of ~  96.54MiB at  297.24KiB/s ETA 00:00 (frag 9/10)
[download]  93.4% of ~  96.54MiB at  516.20KiB/s ETA 00:00 (frag 9/10)
[download]  93.5% of ~  96.54MiB at  913.05KiB/s ETA 00:00 (frag 9/10)
[download]  93.7% of ~  96.54MiB at    1.55MiB/s ETA 00:00 (frag 9/10)
[download]  94.3% of ~  96.54MiB at    2.49MiB/s ETA 00:00 (frag 9/10)
[download]  95.3% of ~  96.54MiB at    3.24MiB/s ETA 00:00 (frag 9/10)
[download]  97.4% of ~  96.54MiB at    4.43MiB/s ETA 00:00 (frag 9/10)
[download] 100.0% of ~  96.54MiB at    5.06MiB/s ETA 00:00 (frag 9/10)
[download] 100.0% of ~  96.54MiB at    5.04MiB/s ETA 00:00 (frag 10/10)
[download] 100% of   96.54MiB in 00:00:09 at 10.11MiB/s                
[ExtractAudio] Destination: /home/tate/.var/app/org.nickvision.tubeconverter/config/Nickvision/Nickvision Tube Converter/temp/847878cd-ab86-4017-a0b6-5c2fdc326bb7/Linux Saloon | 18 Mar 2023 | Open Mic Night, Qr Codes, Messaging Platforms, Linux Hardware.opus
Deleting original file /home/tate/.var/app/org.nickvision.tubeconverter/config/Nickvision/Nickvision Tube Converter/temp/847878cd-ab86-4017-a0b6-5c2fdc326bb7/Linux Saloon | 18 Mar 2023 | Open Mic Night, Qr Codes, Messaging Platforms, Linux Hardware.webm (pass -k to keep)
[ThumbnailsConvertor] Converting thumbnail "/home/tate/.var/app/org.nickvision.tubeconverter/config/Nickvision/Nickvision Tube Converter/temp/847878cd-ab86-4017-a0b6-5c2fdc326bb7/Linux Saloon | 18 Mar 2023 | Open Mic Night, Qr Codes, Messaging Platforms, Linux Hardware.webp" to png
[EmbedThumbnail] mutagen: Adding thumbnail to "/home/tate/.var/app/org.nickvision.tubeconverter/config/Nickvision/Nickvision Tube Converter/temp/847878cd-ab86-4017-a0b6-5c2fdc326bb7/Linux Saloon | 18 Mar 2023 | Open Mic Night, Qr Codes, Messaging Platforms, Linux Hardware.opus"

I ran it from the terminal and it failed. I clicked the try again and it froze then crashed.

Terminal:

~$ flatpak run org.nickvision.tubeconverter

(NickvisionTubeConverter.GNOME:2): Gtk-CRITICAL **: 04:18:37.517: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(NickvisionTubeConverter.GNOME:2): Gtk-CRITICAL **: 04:18:37.517: gtk_widget_add_css_class: assertion 'GTK_IS_WIDGET (widget)' failed

(NickvisionTubeConverter.GNOME:2): Gtk-WARNING **: 04:19:35.097: Trying to snapshot AdwApplicationWindow 0x55c800a602b0 without a current allocation
fsobolev commented 1 year ago

I can reproduce this. yt-dlp clearly fails to move a file (otherwise there would be [MoveFiles] Moving file... in the end of a log), without showing an error. And it only affects opus... very weird 🤔

EDIT: disabling "Embed metadata" in settings makes the app download opus successfully. My guess is that some option that with pass to yt-dlp makes embedding a thumbnail fail. If we'll not find the root of problem, a solution will be to ignore "embed metadata" setting when downloading opus.

nlogozzo commented 1 year ago

My guess is that some option that with pass to yt-dlp makes embedding a thumbnail fail.

If this is the case instead of ignoring all embed metadata we can just change the option in MediaFileType.cs under GetSupportsThumbnails() and change OPUS from true to false. This will prevent OPUS from embedding a thumbnail, but at least still embed regular metadata.

nlogozzo commented 1 year ago

https://github.com/nlogozzo/NickvisionTubeConverter/releases/tag/2023.3.1