linuxmint / nemo-extensions

A set of extensions for Nemo
410 stars 150 forks source link

Previews for some video files are working and for some are not #488

Open FromRightToLeft opened 1 year ago

FromRightToLeft commented 1 year ago

Distribution

Linux Mint 21.2 Cinnamon

Package version

nemo 5.8.4

Frequency

Always

Bug description

I tested all video formats I have ( MPEG, MPG, DIVIX, WMV, WEBM, AVI ) and they all show the preview. Only MP4 and some MKV files have this issue. I wasn’t able to pinpoint what is the common thing with MKV (some contain MP4 and some don’t and it’s a coin toss if they work or not, all MKVs with HAVC seem to have this problem with the preview function).

Steps to reproduce

When an MP4 file is selected and space bar pressed a window shows up showing no video, but progress bar indicates the appropriate video length as if the file was read.

Expected behavior

When an MP4 file is selected and space bar pressed a window shows up showing a preview of the video in question.

Additional information

Changing between intel, nvidia and hybrid graphics makes no difference. This problem coincided with a lot of dropped frames in Celluloid and my laptop used to play all the videos flawlessly.

Copy pasted from: https://forums.linuxmint.com/viewtopic.php?t=394550

rammjet commented 1 year ago

I have the same problem. AVI plays fine. MP4 and MKV do not play. I get the following when trying an MKV:

Mint 21.2, Graphics: Intel Iris Xe

Sep 10 15:33:58 rammjet-TH50 nemo-preview-st[15048]: Object Gtk.Label (0x55eca2a23330), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: == Stack trace for context 0x55eca1ff78e0 ==
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: #0   7ffc3a82d250 b   /usr/share/nemo-preview/js/viewers/gst.js:114 (2bec8c07d290 @ 124)
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: #1   7ffc3a82d300 b   /usr/share/nemo-preview/js/viewers/gst.js:127 (2bec8c07d330 @ 17)
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: #2   7ffc3a82d3f0 b   self-hosted:1121 (2bec8c073f60 @ 463)
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: #3   55eca27f5b60 i   /usr/share/nemo-preview/js/ui/main.js:57 (2bec8c0baa60 @ 287)
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: #4   55eca27f5ac8 i   ../src/main.c:2 (2bec8c0baa10 @ 38)
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: == Stack trace for context 0x55eca1ff78e0 ==
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: #0   7ffc3a82d250 b   /usr/share/nemo-preview/js/viewers/gst.js:103 (2bec8c07d240 @ 77)
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: #1   7ffc3a82d300 b   /usr/share/nemo-preview/js/viewers/gst.js:128 (2bec8c07d330 @ 32)
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: #2   7ffc3a82d3f0 b   self-hosted:1121 (2bec8c073f60 @ 463)
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: #3   55eca27f5b60 i   /usr/share/nemo-preview/js/ui/main.js:57 (2bec8c0baa60 @ 287)
Sep 10 15:33:58 rammjet-TH50 org.nemo.Preview[15048]: #4   55eca27f5ac8 i   ../src/main.c:2 (2bec8c0baa10 @ 38)
Sep 10 15:33:58 rammjet-TH50 nemo-preview-st[15048]: Object Gtk.Scale (0x55eca28ce320), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
Sep 10 15:33:58 rammjet-TH50 nemo-preview-st[15048]: gtk_adjustment_get_lower: assertion 'GTK_IS_ADJUSTMENT (adjustment)' failed
Sep 10 15:33:58 rammjet-TH50 nemo-preview-st[15048]: gtk_adjustment_set_value: assertion 'GTK_IS_ADJUSTMENT (adjustment)' failed
FromRightToLeft commented 1 year ago

Hi rammjet, I have done some reading and found out it's an old problem.

https://github.com/linuxmint/nemo-extensions/issues/459

deleting mint-meta-codecs and gstreamer1.0 vaapi fixes it for me

FromRightToLeft commented 1 year ago

sorry wrong button :disappointed:

rammjet commented 12 months ago

Thank you. I had found the previous issue but did not think it to be the same. However, just removed mint-meta-codecs and gstreamer1.0-vaapi and the video preview problem is solved