Sutitleeditor and m2ts files

Hello,

I’d like to use subtitleeditor with m2ts files.
I installed subtitleeditor 0.54.0-6.2
Previously I installed the media packages as explained in the first post.

Now when I open a m2ts file I get the error message: “GStreamer plugins missing The playback of the movie requires the decoder audio/x-private-ts-lpcm decoder”
I can’t find anything related to “private” or “lpcm” in the packages list.

What should I do to fix this issue?

Thank you

could you tell us your repo list?

zypper lr -d

anyhow the audio/x-private-ts-lpcm decoder is included in the gstreamer bad plugins package
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad/html/gst-plugins-bad-plugins-tsdemux.html
I’d suggest you install the gstreamer-plugins-bad from packman which includes libgstmpegtsdemux.so

zypper in gstreamer-plugins-bad

also do a full vendor change to packman

ps if you haven’t already you should also install the gstreamer-plugins-ugly and the gstreamer-plugins-libav packages

zypper lr -d
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                               | Name                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                       | Service
---+-------------------------------------+-----------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------------------------+--------
 1 | download.nvidia.com-leap            | nVidia Graphics Drivers     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/42.3                                            |        
 2 | download.opensuse.org-non-oss       | Main Repository (NON-OSS)   | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.3/repo/non-oss/                         |        
 3 | download.opensuse.org-non-oss_1     | Update Repository (Non-Oss) | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.3/non-oss/                                    |        
 4 | download.opensuse.org-oss           | Main Repository (OSS)       | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.3/repo/oss/                             |        
 5 | download.opensuse.org-oss_1         | Main Update Repository      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.3/oss                                         |        
 6 | http-download.opensuse.org-0ffdd9f2 | devel:libraries:c_c++       | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/libraries:/c_c%2B%2B/openSUSE_Leap_42.3/ |        
 7 | http-download.opensuse.org-20e33d2c | home:ecsos:messenger:tox    | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/home:/ecsos:/messenger:/tox/openSUSE_Leap_42.3/ |        
 8 | http-download.opensuse.org-40a07015 | utilities                   | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/utilities/openSUSE_Leap_42.3/                   |        
 9 | http-download.opensuse.org-9bc5ce62 | multimedia:libs             | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/multimedia:/libs/openSUSE_Leap_42.3/            |        
10 | http-download.opensuse.org-d90cad41 | home:qantas94heavy          | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/home:/qantas94heavy/openSUSE_Leap_42.3/         |        
11 | http-download.opensuse.org-ebbf0662 | home:szotsaki               | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/home:/szotsaki/openSUSE_Leap_42.3/              |        
12 | opensuse-guide.org-repo             | Libdvdcss Repository        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_42.3/                                        |        
13 | opensuse-multimedia-apps            | opensuse-multimedia-apps    | No      | ----      | ----    |   99     | rpm-md | http://ftp.gwdg.de/pub/opensuse/repositories/multimedia:/apps/openSUSE_Leap_42.3/         |        
14 | packman.inode.at-suse               | Packman Repository          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_42.3/                                          |        

Please could you tell me if I should remove “home:/xxx…” repositories after install or disable and Not auto-refresh is enough?

also do a full vendor change to packman

This is done for long

zypper in gstreamer-plugins-bad
Loading repository data...
Reading installed packages...
'gstreamer-plugins-bad' is already installed.
No update candidate for 'gstreamer-plugins-bad-1.8.3-8.14.x86_64'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.

And more

zypper se -si gstreamer
Loading repository data...
Reading installed packages...

S  | Name                              | Type        | Version     | Arch   | Repository            
---+-----------------------------------+-------------+-------------+--------+-----------------------
i+ | GStreamer Multimedia Codecs       | application |             | noarch | (System Packages)     
i+ | PackageKit-gstreamer-plugin       | package     | 1.1.3-5.3.1 | x86_64 | Main Update Repository
i+ | gstreamer                         | package     | 1.8.3-4.13  | x86_64 | Main Repository (OSS) 
i+ | gstreamer-lang                    | package     | 1.8.3-4.13  | noarch | Main Repository (OSS) 
i+ | gstreamer-libnice                 | package     | 0.1.13-6.3  | x86_64 | Main Repository (OSS) 
i+ | gstreamer-plugin-gstclutter-3_0   | package     | 3.0.18-3.3  | x86_64 | Main Repository (OSS) 
i+ | gstreamer-plugins-bad             | package     | 1.8.3-8.14  | x86_64 | Packman Repository    
i+ | gstreamer-plugins-bad-lang        | package     | 1.8.3-8.14  | noarch | Packman Repository    
i+ | gstreamer-plugins-bad-orig-addon  | package     | 1.8.3-8.14  | x86_64 | Packman Repository    
i+ | gstreamer-plugins-base            | package     | 1.8.3-7.16  | x86_64 | Main Repository (OSS) 
i+ | gstreamer-plugins-base-lang       | package     | 1.8.3-7.16  | noarch | Main Repository (OSS) 
i+ | gstreamer-plugins-cogl            | package     | 1.22.2-3.17 | x86_64 | Main Repository (OSS) 
i+ | gstreamer-plugins-farstream       | package     | 0.2.8-3.4   | x86_64 | Main Repository (OSS) 
i+ | gstreamer-plugins-good            | package     | 1.8.3-8.1   | x86_64 | Main Repository (OSS) 
i+ | gstreamer-plugins-good-extra      | package     | 1.8.3-8.1   | x86_64 | Main Repository (OSS) 
i+ | gstreamer-plugins-good-lang       | package     | 1.8.3-8.1   | noarch | Main Repository (OSS) 
i+ | gstreamer-plugins-libav           | package     | 1.8.3-3.11  | x86_64 | Packman Repository    
i+ | gstreamer-plugins-ugly            | package     | 1.8.3-10.5  | x86_64 | Packman Repository    
i+ | gstreamer-plugins-ugly-orig-addon | package     | 1.8.3-10.5  | x86_64 | Packman Repository    
i+ | libgstreamer-1_0-0                | package     | 1.8.3-4.13  | x86_64 | Main Repository (OSS) 
i+ | libgstreamer-1_0-0-32bit          | package     | 1.8.3-4.13  | x86_64 | Main Repository (OSS) 
i+ | libgstreamermm-1_0-1              | package     | 1.10.0-10.8 | x86_64 | (System Packages)     
i+ | phonon-backend-gstreamer          | package     | 4.8.2-6.2   | x86_64 | Main Repository (OSS) 
i+ | vlc-codec-gstreamer               | package     | 2.2.6-8.6   | x86_64 | Packman Repository    

it looks fine all I can suggest is redoing

zypper dup --from 14

Unfortunatly

zypper dup --from 14
Loading repository data...
Reading installed packages...
Computing distribution upgrade...

Nothing to do.

I don’t have an m2ts file and subs to test but according to the gstreamer developers decoding of audio/x-private-ts-lpcm is done by /usr/lib64/gstreamer-1.0/libgstmpegtsdemux.so so check if you have that file

ls /usr/lib64/gstreamer-1.0/libgstmpegtsdemux.so

I would recommend cleaning the gstreamer cache as that could cause plugin issues

rm -r ~/cache/gstreamer-1.0/

a lot of codec patents ended recently in turn the gstreamer-plugins-bad package from opensuse contains support for more formats inc mpeg2 so you could try switching that package to the opensuse one

zypper in -f gstreamer-plugins-bad --from 2

I really think the packman build should work, and aside from corrupt gstreamer cache (which does happen quite regularly) I can’t think of a reason for your issue, the only fix I can think of is cleaning the cache and if that doesn’t work maybe trying gstreamer-plugins-bad from OSS

ls /usr/lib64/gstreamer-1.0/libgstmpegtsdemux.so
/usr/lib64/gstreamer-1.0/libgstmpegtsdemux.so

~ # rm -r ~/cache/gstreamer-1.0/
rm: cannot remove '/root/cache/gstreamer-1.0/': No such file or directory
loja:~ # ls /usr/lib64/gstreamer-1.0/libgstmpegtsdemux.so

For some reason there is an error in the last command, I can’t find why, any idea?

zypper in -f gstreamer-plugins-bad --from 2
Loading repository data...
Reading installed packages...
'-from' is not a package name or capability.

Maybe this could help

zypper in -f download.opensuse.org-non-oss:gstreamer-plugins-bad
Loading repository data...
Reading installed packages...
Package 'download.opensuse.org-non-oss:gstreamer-plugins-bad' not found in specified repositories.
Resolving package dependencies...

Nothing to do.

zypper in -f download.opensuse.org-oss:gstreamer-plugins-bad
Loading repository data...
Reading installed packages...
Forcing installation of 'gstreamer-plugins-bad-1.8.3-7.4.x86_64' from repository 'Main Repository (OSS)'.
Resolving package dependencies...

The following package is going to be downgraded:
  gstreamer-plugins-bad

The following package is going to change vendor:
  gstreamer-plugins-bad  http://packman.links2linux.de -> openSUSE

1 package to downgrade, 1 to change vendor.
Overall download size: 1.3 MiB. Already cached: 0 B. After the operation, additional 4.0 KiB will be used.
Continue? [y/n/...? shows all options] (y): n

zypper in -f packman.inode.at-suse:gstreamer-plugins-bad
Loading repository data...
Reading installed packages...
Forcing installation of 'gstreamer-plugins-bad-1.8.3-8.14.x86_64' from repository 'Packman Repository'.
Resolving package dependencies...

The following package is going to be reinstalled:
  gstreamer-plugins-bad

1 package to reinstall.
Overall download size: 1.3 MiB. Already cached: 0 B. No additional space will be used or freed after the operation.
Continue? [y/n/...? shows all options] (y): n

  • Syntax with --from doesn’t work
  • After reinstall the same version => nothing better
  • Should I downgrade?

BTW, VLC 2.2.6 doesn’t play m2ts files. Error message:

ts demux: HDMV registration not implemented for pid 0x1101 type 0x81
core demux error: option sub-original-fps does not exist
QObject::connect: invalid null parameter

Hope this will help. Thanks

you’re executing

rm -r ~/.cache/gstreamer-1.0

as root I never said do it as root do it as an ordinary user or in dolphin select show hidden files and go to ~/.cache/gstreamer-1.0/ and delete all files from there
regarding the plugin switch according to the zypper man that’s the way to do it
https://en.opensuse.org/SDB:Zypper_manual_(plain)

           --from alias|name|#|URI
               Select packages from specified repository. If strings specified as arguments to the install command
               match packages in repositories specified in this option, they will be marked for installation. This
               option currently implies --name, but allows using wildcards for specifying packages.

you can always do the switch with yast

I’m really not sure what to tell you the packman package should decode m2ts files
what does mediainfo say about that file maybe it’s courrupt
install mediainfo then run it with that file

sudo zypper in mediainfo
mediainfo /path/to/m2ts/file.ts

apparently subs inside ts files are more complex then regular srt/vob see this post for more info and a possible fix

I did “rm -r ~/.cache/gstreamer-1.0” from normal user. No answer, looks like rm removed the cache.

I have seen the manual link and tried all options for --from unsuccessfully.
I found this doc

https://doc.opensuse.org/documentation/leap/archive/42.1/reference/html/book.opensuse.reference/cha.sw_cl.html

by repository alias and package name
zypper install mozilla:MozillaFirefox
Where mozilla is the alias of the repository from which to install.

For some reason --from is still not working.

New!: Now, for some reason, Subtitleeditor can’t play none of m2ts nor mkv files. Not good at all.

I’ll wipe and reinstall. Could you tell me the best way to uninstall all the media/video packages and reinstall them. From where I should reinstall?
Should I remove repo from my list (see above)?
Thanks

OK let’s not nitpick on needless things
after removing the gstreamer cache can you play the ts file?
I’d recommend removing the vlc-codec-gstreamer and use vlc’s native multimedia engine (this might be the cause of your vlc issue)

zypper rm vlc-codec-gstreamer

have you tried running that file thru ffmpeg (ffprobe) to see if it’s OK

ffprobe /path/to/ts/file.ts

afaik most ts use bitmap subs and those can’t be edited directly you’d need to extract the bitmap subs and use an OCR engine to convert them to a text based format like srt the link above has a nice article about how to remove bitmat subs from a ts file with ffmpeg and convert them to srt using avidemux
but before going that far remove vlc-codec-gstreamer and see if vlc will play that file you should also try it with ffprobe and mediainfo (if you installed mediainfo)

Nothing better with SubtitleEditor, Version is 0.54.0-6.3
VLC plays the files fine

have you tried running that file thru ffmpeg (ffprobe) to see if it’s OK

On the whole, this is not a file issue. I tried tens of .mkv and .m2ts with SubtitleEditor, none want to open the black screen for video in the application.

Few months ago I installed SubtitleEditor on another desktop, version 0.54.0-6.1. It has vlc-codec-gstreamer 2.2.6-3.1
SubtitleEditor plays all the files, mkv
However for the m2ts it displays the same error message “Gstreamer plugins missing. The playback of the movie requires the following decoders which are not installed: audio/x-private-ts-lpcm decoder”
but it plays them fine!

Should I try to downgrade to the version 0.54.0-6.1?

Subtitle Editor has not build for LEAP 42.3 it is available in the extra multimedia repo but there seams to have been a build issue
when I try to install it I get

:~> sudo zypper in subtitleeditor
[sudo] password for root: 
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides libgstreamermm-1.0.so.1()(64bit) needed by subtitleeditor-0.54.0-6.3.x86_64
 Solution 1: do not install subtitleeditor-0.54.0-6.3.x86_64
 Solution 2: break subtitleeditor-0.54.0-6.3.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c): 


how did you install subtitle editor did you ignore the dependency?
it would seam that libgstreamermm-1.0.so.1()(64bit) is not available in the main repo or in the multimedia:apps repo (from where you got Subtitle Editor)
libgstreamermm-1.0.so.1 can be found in the multimedia:libs repo but you have it disabled so enable it and install libgstreamermm-1_0-1

zypper mr -e 9
zypper in libgstreamermm-1_0-1

after re-enabeling the multimedia:libs repo I’d suggest you go in yast ->software management and from the menu select Dependencies-> Check Now
or with zypper do

sudo zypper verify

but a suggestion LEAP 15 will be out soon and it includes Subtitle Editor in the Main OSS repo why not upgrade to 15 now as more or less it’s stable (the official release should be next week) if you upgrade now while it’s in RC you can update to the release when it’s published as it will use the same repos

I don’t remember how I installed it but for sure I didn’t break/ignore.

I’ll not worry about the issue. I’ll wait for the new Leap 15 and install it when released. There is no rush.

Could you let me know, when I will upgrade to Leap 15, should I remove all the non official repos ? Should I remove the non official packages?

Thanks

the way I upgrade is I temporally disable the extra repo’s (you don’t have to remove them) change all my repo’s to point to LEAP 15
basicly change 42.3 to 15.0 in all my repo files located at
/etc/zypp/repos.d/
then I run

zypper dup

15 will be officially out this Friday but it’s more or less ready now