1

Приветствую!
Народ, помогите приложение запустить.
Есть программка tsmuxer, у неё на сайте есть загрузчик для линукса. Скачал с сайта AppImage, сделал для неё chmod u+x.
При запуске выдаёт ошибку:

Консоль: user
[user@localhost ~]$ ./tsMuxerGUI-a4cc39f-x86_64.AppImage
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Аварийный останов (стек памяти сброшен на диск)


По инету поискал, попробовал несколько советов, ничего не поменялось.

2 (2020-02-06 20:18:23 отредактировано algri14)

Берс⇓ пишет:

Скачал с сайта AppImage, сделал для неё chmod u+x

Сначала покажите вывод:

Консоль: user
[user@localhost ~]$ ls -l /путь_до_файла/tsMuxerGUI-a4cc39f-x86_64.AppImage

почему у Вас стоит точка перед слешем?
Второй момент - откуда качали файл, ссылку в студию

3

Берс, вам запустить AppImage нужно или, все таки,  запустить программу? Если второе, то есть готовый пакет https://debian.pkgs.org/sid/multimedia- … 4.deb.html. Конвертируйте его в rpm с помощью alien и установите.

4

kvv-vp пишет:

Берс, вам запустить AppImage нужно или, все таки,  запустить программу? Если второе, то есть готовый пакет https://debian.pkgs.org/sid/multimedia- … 4.deb.html. Конвертируйте его в rpm с помощью alien и установите.

Это первое, что я сделал. Только полученный rpm не работает. Да и выходят Nightly сборки каждые два дня, deb пакеты так быстро не собираются. А в новых сборках разработчик подключает всё, что связано с нынешними UHD 4K форматами. Так что, чем новее сборка тем лучше.

algri14 пишет:

почему у Вас стоит точка перед слешем?

Потому что, если точку убрать, то я получу сообщение "bash: /tsMuxerGUI-a4cc39f-x86_64.AppImage: Нет такого файла или каталога". При этом запуск я произвожу в консоли из каталога, в котором AppImage находится. С точкой всё запускается. Не знаю как правильно, но у меня все такие сборки только через ./ запускаются, уже начиная с Mageia3. Думаю, что и на более ранних Mageia у меня всё бы запускалось также, просто необходимости не было.

algri14 пишет:

Второй момент - откуда качали файл, ссылку в студию

С офф сайта, где tsmuxer представлен. https://www.videohelp.com/software/tsMuxeR Нужна версия 2.6.15. Более ранняя не подходит, т.к. несколько лет была без улучшений и поддержки UHD не имеет.
Сама ссылка на сборку вот https://bintray.com/justdan96/tsMuxer/d … -08-59.zip За неё ручаюсь только на ближайшие пару часов, дальше версия может поменяться и соответственно ссылка станет битой.

algri14 пишет:

Сначала покажите вывод:

Если делать как Вы написали, без точки, то опять ошибка:

Консоль: user
[user@localhost ~]$ ls -l /tsMuxerGUI-a4cc39f-x86_64.AppImage
ls: невозможно получить доступ к '/tsMuxerGUI-a4cc39f-x86_64.AppImage': Нет такого файла или каталога

если с точкой, то:
Консоль: user
[user@localhost ~]$ ls -l ./tsMuxerGUI-a4cc39f-x86_64.AppImage
-rwxr-xr-x 1 oleg oleg 33378280 янв 12 04:04 ./tsMuxerGUI-a4cc39f-x86_64.AppImage*

5

Берс пишет:

Если делать как Вы написали, без точки, то опять ошибка:

https://pingvinus.ru/answers/819

6

Берс⇓ пишет:

Если делать как Вы написали, без точки, то опять ошибка:

Берс, мне это как-то не требовалось, но после Вашего случая разобрался, kvv-vp дал ссылку, но там короткий ответ, а я чуть раньше уже прочёл более детальное пояснение — Путь к файлу в Linux

Что касается tsMuxerGUI-a4cc39f-x86_64.AppImage, то скорее всего авторы сборки что-то не учли, то ли rpm-системы , то ли зависимости недоложили, у меня он тоже не запустился. В винде запускается, как работает не знаю, в подробности не вдавался
Напишите автору об этом

7

algri14⇓ пишет:

kvv-vp дал ссылку, но там короткий ответ, а я

Я просто Берсу хотел намекнуть , что "./" и "/"две большие разницы, поэтому и у него ошибка при 

Берс⇓ пишет:

ls -l /tsMuxerGUI-a4cc39f-x86_64.AppImage

В данной конструкции "/" -корневой каталог.

8

Ну раз AppImage нет возможности запустить, может поможете попробовать собрать rpm из исходников?

9 (2020-02-13 09:52:01 отредактировано alex_q_2000)

Берс⇓ пишет:

Ну раз AppImage нет возможности запустить, может поможете попробовать собрать rpm из исходников?

Пакет (tsmuxer + tsMuxerGUI): https://cloud.mail.ru/public/34mQ/2SgZmERis
После установки возможен запуск tsmuxer в консоли или через гуй tsMuxer (Меню "Приложения"-"Аудио-Видео"-"tsMuxer")

Список доступных ключей в консоли:

Spoiler

tsMuxeR version 2.6.16-dev. github.com/justdan96/tsMuxer

tsMuxeR is a simple program to mux video to TS/M2TS files or create BD disks.
tsMuxeR does not use external filters (codecs).

Examples:
    tsMuxeR <media file name>
    tsMuxeR <meta file name> <out file/dir name>

tsMuxeR can be run in track detection mode or muxing mode. If tsMuxeR is run
with only one argument, then the program displays track information required to
construct a meta file. When running with two arguments, tsMuxeR starts the
muxing or demuxing process.

Meta file format:
File MUST have the .meta extension and be encoded in UTF-8 (but see README.md).
This file defines the files you want to multiplex.
The first line of a meta file contains additional parameters that apply to all
tracks. In this case the first line should begin with the word MUXOPT.

The following lines form a list of tracks and their parameters.  The format is
as follows:   <code name>,   <file name>,   <parameters>   Parameters are
separated with commas, with each parameter consisting of a name and a value,
separated with an equals sign.
Example of META file:

MUXOPT --blu-ray
V_MPEG4/ISO/AVC, D:/media/test/stream.h264, fps=25
A_AC3, D:/media/test/stream.ac3, timeshift=-10000ms

In this example one AC3 audio stream and one H264 video stream are multiplexed
into BD disc. The input file name can reference an elementary stream or a track
located inside a container.

Supported input containers:
- TS/M2TS/MTS
- EVO/VOB/MPG/MPEG
- MKV
- MOV/MP4
- MPLS (Blu-ray media play list file)

Names of codecs in the meta file:
- V_MPEGH/ISO/HEVC  H.265/HEVC
- V_MPEG4/ISO/AVC   H.264/AVC
- V_MPEG4/ISO/MVC   H.264/MVC
- V_MS/VFW/WVC1     VC1
- V_MPEG-2          MPEG2
- A_AC3             AC3/AC3+/TRUE-HD
- A_AAC             AAC
- A_DTS             DTS/DTS-Express/DTS-HD
- A_MP3             MPEG audio layer 1/2/3
- A_LPCM            raw pcm data or PCM WAV file
- S_HDMV/PGS        Presentation graphic stream (BD subtitle format)
- S_TEXT/UTF8       SRT subtitle format.  Encoding MUST be  UTF-8/UTF-16/UTF-32

Each track may have additional parameters. Track parameters do not have dashes.
If a parameter's value consists of several words, it must be enclosed in quotes.

Common additional parameters for any type of track:
- track             track number if input file is a container.
- lang              track language. MUST contain exactly 3 letters.

Additional parameters for audio tracks:
- timeshift         Shift audio track by the given number of milliseconds.
                    Can be negative.
- down-to-dts       Available only for DTS-HD tracks. Filter out HD part.
- down-to-ac3       Available only for TRUE-HD tracks. Filter out HD part.
- secondary         Mux as secondary audio. Available for DD+ and DTS-Express.
- default           Mark this track as the default when muxing to Blu-ray.

Additional parameters for video tracks:
- fps               The number of frames per second. If not defined, the value
                    is auto detected if available in the source stream. If not,
                    it defaults to 23.976.
- delPulldown       Remove pulldown from the track, if it exists. If the
                    pulldown is present, the FPS value is changed from 30 to 24.
- ar                Override video aspect ratio. 16:9, 4:3 e.t.c.

Additional parameters for H.264 video tracks:
- level             Overwrite the level in the H264 stream. Do note that this
                    option only updates the headers and does not reencode the
                    stream, which may not meet the requirements for a lower
                    level.
- insertSEI         If the original stream does not contain SEI picture timing,
                    SEI buffering period or VUI parameters, add this data to
                    the stream. This option is recommended for BD muxing.
- forceSEI          Add SEI picture timing, buffering period and VUI parameters
                    to the stream and rebuild this data if it already exists.
- contSPS           If the original video doesn't contain repetitive SPS/PPS,
                    then SPS/PPS will be added to the stream before each key
                    frame. This option is recommended for BD muxing.
- subTrack          Used for combined AVC/MVC tracks only. TsMuxeR always
                    demultiplexes such tracks to separate AVC and MVC streams.
                    Setting this to 1 sets the reference to the AVC part, while
                    2 sets it to the MVC part.
- secondary         Mux as secondary video (PIP).
- pipCorner         Corner for PIP video. Allowed values: "TopLeft","TopRight",
                    "BottomRight", "BottomLeft".
- pipHOffset        PIP window horizontal offset from the corner in pixels.
- pipVOffset        PIP window vertical offset from the corner in pixels.
- pipScale          PIP window scale factor. Allowed values: "1", "1/2", "1/4",
                    "1.5", "fullScreen".
- pipLumma          Allow the PIP window to be transparent. Transparent colors
                    are lumma colors in range [0..pipLumma].

Additional parameters for PG and SRT tracks:

- video-width       The width of the video in pixels.
- video-height      The height of the video in pixels.
- default           Mark this track as the default when muxing to Blu-ray.
                    Allowed values are "all" which causes all subtitles to be
                    shown, and "forced" which shows only elements marked as
                    "forced" in the subtitle stream.
- fps               Video fps. It is recommended to define this parameter in
                    order to enable more careful timing processing.
- 3d-plane          Defines the number of the '3D offset track' which is placed
                    inside the MVC track. Each message has an individual 3D
                    offset. This information is stored inside 3D offset track.

Additional parameters for SRT tracks:

- font-name         Font name to render.
- font-color        Font color, defined as a hexadecimal or decimal number.
                    24-bit long numbers (for instance 0xFF00FF) define RGB
                    components, while 32-bit long ones (for instance
                    0x80FF00FF) define ARGB components.
- font-size         Font size in pixels.
- font-italic       Italic display text.
- font-bold         Bold display text.
- font-underline    Underlined text.
- font-strikeout    Strikethrough text.
- bottom-offset     Distance from the lower edge while displaying text.
- font-border       Outline width.
- fadein-time       Time in ms for smooth subtitle appearance.
- fadeout-time      Time in ms for smooth subtitle disappearance.
- line-spacing      Interval between subtitle lines. Default value is 1.0.

tsMuxeR supports additional tags inside SRT tracks. The syntax and parameters
coincide with HTML: <b>, <i>, <u>, <strike>, <font>. Default relative font size
(used in these tags) is 3.  For example:

<b><font size=5 color="deepskyblue" name="Arial"><u>Test</u>
<font size= 4 color="#806040">colored</font>text</font>
</b>

Global additional parameters are placed in the first line of the META file,
which must begin with the MUXOPT token.
All parameters in this group start with two dashes:

--pcr-on-video-pid  Do not allocate a separate PID for PCR and use the existing
                    video PID.
--new-audio-pes     Use bytes 0xfd instead of 0xbd for AC3, True-HD, DTS and
                    DTS-HD. Activated automatically for BD muxing.
--vbr               Use variable bitrate.
--minbitrate        Sets the lower limit of the VBR bitrate. If the stream has
                    a smaller bitrate, NULL packets will be inserted to
                    compensate.
--maxbitrate        The upper limit of the vbr bitrate.
--cbr               Muxing mode with a fixed bitrate. --vbr and --cbr must not
                    be used together.
--vbv-len           The  length  of the  virtual  buffer  in milliseconds.  The
                    default value  is 500.  Typically, this  option  is used
                    together with --cbr. The parameter is similar to  the value
                    of  vbv-buffer-size  in  the  x264  codec,  but  defined in
                    milliseconds instead of kbit.
--no-asyncio        Do not  create  a separate thread  for writing. This option
                    also disables the FILE_FLAG_NO_BUFFERING flag on Windows
                    when writing.
                    This option is deprecated.
--auto-chapters     Insert a chapter every <n> minutes. Used only in BD/AVCHD
                    mode.
--custom-chapters   A semicolon delimited list of hh:mm:ss.zzz strings,
                    representing the chapters' start times.
--demux             Run in demux mode : the selected audio and video tracks are
                    stored as separate files. The output name must be a folder
                    name. All selected effects (such as changing the level of
                    a H264 stream) are processed. When demuxing, certain types
                    of tracks are always changed :
                    - Subtitles in a Presentation Graphic Stream are converted
                      into sup format.
                    - PCM audio is saved as WAV files.
--blu-ray           Mux as a BD disc. If the output file name is a folder, a
                    Blu-Ray folder structure is created inside that folder.
                    SSIF files for BD3D discs are not created in this case. If
                    the output name has an .iso extension, then the disc is
                    created directly as an image file.
--blu-ray-v3        As above - except mux to UHD BD discs.
--avchd             Mux to AVCHD disc.
--cut-start         Trim the beginning of the file. The value should be followed
                    by the time unit : "ms" (milliseconds), "s" (seconds) or
                    "min" (minutes).
--cut-end           Trim the end of the file. Same rules as --cut-start apply.
--split-duration    Split the output into several files, with each of them being
                    <n> seconds long.
--split-size        Split the output into several files, with each of them
                    having a given maximum size. KB, KiB, MB, MiB, GB and GiB
                    are accepted as size units.
--right-eye         Use base video stream for right eye. Used for 3DBD only.
--start-time        Timestamp of the first video frame. May be defined as 45Khz
                    clock (just a number) or as time in hh:mm:ss.zzz format.
--mplsOffset        The number of the first MPLS file.  Used for BD disc mode.
--m2tsOffset        The number of the first M2TS file.  Used for BD disc mode.
--insertBlankPL     Add an additional short playlist. Used for cropped video
                    muxed to BD disc.
--blankOffset       Blank playlist number.
--label             Disk label when muxing to ISO.
--extra-iso-space   Allocate extra space in 64K units for ISO metadata (file
                    and directory names). Normally, tsMuxeR allocates this space
                    automatically, but if split condition generates a lot
                    of small files, it may be required to define extra space.

Похоже, что эта штука работает в присутствии уже предустановленных ffmpeg, x264, x265 и возможно ещё каких кодеров/декодеров, подробно не смотрел и в зависимости пакета их не ставил. В депенденсах находятся пакеты для запуска tsMuxerGUI и tsmuxer (lib64qt5widgets5 lib64qt5multimedia5 zlib freetype2). Так что нужные кодеки ставьте сами. Для установки x264 и x265 требуется подключить репозиторий tainted.

p.s. Честно говоря, понятия не имею, будет ли всё это работать; собралось вроде нормально. Удачи. Пошёл я спать... smile

Спасибо сказали: algri141

10

Берс⇓ пишет:

может поможете попробовать собрать rpm из исходников?

Какой смысл "бету" опакечивать? Если пакет получится нерабочий, то кто виноват, кривая сборка или кривая программа?

11

alex_q_2000⇓ пишет:

Пакет (tsmuxer + tsMuxerGUI): https://cloud.mail.ru/public/34mQ/2SgZmERis

Спасибо огромное. Работает.

alex_q_2000⇓ пишет:

Похоже, что эта штука работает в присутствии уже предустановленных ffmpeg, x264, x265 и возможно ещё каких кодеров/декодеров

С этим разберёмся.

Попробовал согласно инструкции собрать. Дошёл до получения бинарников tsmuxer и tsmuxergui. Подскажите, как дальше это всё в rpm собрать?

kvv-vp⇓ пишет:

Какой смысл "бету" опакечивать? Если пакет получится нерабочий, то кто виноват, кривая сборка или кривая программа?

Дело в том, что эта программа может быть всю жизнь бетой. А вот полезность её для работы с видео формата Blu-ray очень высокая.

12 (2020-02-13 09:52:43 отредактировано alex_q_2000)

Берс⇓ пишет:

Попробовал согласно инструкции собрать. Дошёл до получения бинарников tsmuxer и tsmuxergui. Подскажите, как дальше это всё в rpm собрать?

Обрисовать структуру rpm и последовательность создания пакета? Ок...

1. Установить пакет tsmuxer-2.6.16-0.mga7.x86_64.rpm
2. Установить RPMCreator нужной разрядности (ярлык ставится в "Утилиты"-"Системные")
3. Загрузить в него проект tsmuxer-x86_64.prj

В проекте можно добавить зависимости кодеров/декодеров (ffmpeg x264 x265 flac) + изменить релиз будущего пакета, допустим на 1.mga7, чтобы старый был замещен новым после установки

4. Нажать кнопку "Собрать RPM-пакет"

Вся "анатомия" rpm-пакета представлена путями к его файлам и папкам (список на вкладке "Основное"), которые были заранее разложены в нужные места системы и затем собраны в rpm (~/rpmbuild/RPMS/архитектура/пакет.rpm) RPMCreator-ом. Дополнительная информация на вкладке "HELP".

Примечание:
---
Данный метод быстрого создания rpm имел массу небезосновательных нареканий со стороны сообщества ввиду того, что компиляция софта проводится отдельно, т.е. вне spec-а, что нарушает стандарты. Спек, который создаёт RPMCreator содержит только пути к уже установленным в нужные места системы, готовым к употреблению файлам и папкам. Он делает "снимок" их расположения и сжимает в формат rpm. Это может быть как один единственный скрипт, так и полноценная прога с гуём.

13

Собрать rpm получилось.
Ещё вопрос. Я правильно понимаю, что можно не собирать каждый раз новый rpm, а просто заменять файлы /usr/bin/tsmuxer и /usr/bin/tsmuxergui на новые, которые будут собраны из новых сырцов?

14 (2020-02-11 22:33:46 отредактировано alex_q_2000)

Берс⇓ пишет:

Я правильно понимаю, что можно не собирать каждый раз новый rpm, а просто заменять файлы /usr/bin/tsmuxer и /usr/bin/tsmuxergui на новые, которые будут собраны из новых сырцов?

Всё верно, если автор tsmuxer + tsMuxerGUI не будет менять названия своих программ или расширять их функционал, что косвенно может потребовать включения дополнительных зависимостей. В первом случае понадобится изменить содержимое ярлыка в строке Exec=tsMuxerGUI.

/usr/share/applications/tsmuxer.desktop

Spoiler

[Desktop Entry]
Name=tsMuxer
Comment=Transport stream muxer for remuxing/muxing streams
Icon=tsMuxerGUI
Exec=tsMuxerGUI
Type=Application
Categories=AudioVideo;Audio;Video;Player;TV;
Terminal=false

А во втором добавить необходимые зависимости в уже существующий проект и пересобрать пакет, если планируется держать его "в тонусе".

Спасибо сказали: Берс1

15

Здесь оставлю, на всякий: вышел новый OpenShot 2.5.0. Для запуска его Appimage доустановил policycoreutils-python3.

Mageia 8. KDE.