[packman] Problems with vidcutter

Carlos E. R. robin.listas at telefonica.net
Wed Nov 29 23:30:03 CET 2017


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Wednesday, 2017-11-29 at 16:09 +0100, Luigi Baldoni wrote:
> On Wed Nov 29 13:55:44 CET 2017, Carlos E. R. wrote:

...

>> I was told to download and install python3-typing-3.6.2-10.2.noarch.rpm
>> from repo devel:languages:python. I did.
>>
>> I suppose the package should have a dependency on that other package.
>
> Done.

:-)


>> But vidcutter still doesn't work. I managed to tell it to open a video
>> file, it did nothing, the timeline displays nothing, it does not play the
>> video, it is impossible to cut anything.
>>
>> If I give the name of the video file on the commandline, it crashes.
>>
>> I have currently "vidcutter-5.0.0-3.2.x86_64".
>
> Probably a missing codec. Make sure you're using the ffmpeg from packman

AFAIK, yes. Let me see:

cer at Telcontar:~/Fusion/Hacer/Trek> rpm -qi ffmpeg
Name        : ffmpeg
Version     : 3.3.4
Release     : 6.18.1
...
Packager    : packman at links2linux.de
Vendor      : http://packman.links2linux.de


Yes, correct.


> and to find out what's wrong launch vidcutter with the --debug switch.

Done :-)

cer at Telcontar:~/Fusion/Hacer/Trek> vidcutter --debug
QML debugging is enabled. Only use this in a safe environment.
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] mpv 0.25.0 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] built on May  9 2017
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] ffmpeg library versions:
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] libavutil       55.58.100
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] libavcodec      57.89.100
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] libavformat     57.71.100
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] libswscale      4.6.100
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] libavfilter     6.82.100
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] libswresample   2.7.100
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] ffmpeg version: 3.3.4
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] 
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] Configuration: ./waf configure --prefix=/usr --bindir=/usr/bin --mandir=/usr/share/man --libdir=/usr/lib64 --docdir=/usr/share/doc/packages/mpv --confdir=/etc/mpv --enable-cdda --enable-libmpv-shared --enable-zsh-comp --enable-manpage-build --enable-libarchive --disable-sdl1 --disable-sdl2 --disable-build-date --disable-debug
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] List of enabled features: 52 alsa asm atomics audio-input avutil-imgcpy-uc caca cdda cplayer cuda-hwaccel dlopen drm dvbin egl-helpers egl-x11 encoding fchmod gcc-tls gl gl-wayland gl-x11 glibc-thread-name glob gnuc iconv is_ffmpeg jack jpeg lcms2 libarchive libass libass-osd libav libavcodec libavdevice libbluray libdl libm libmpv-shared librt libsmbclient libv4l2 linux-fstatfs lua nanosleep optimize oss-audio oss-audio-native plain-gl posix posix-or-mingw posix-spawn pthreads pulse shm subprocess termios tv tv-v4l2 vaapi vaapi-egl vaapi-glx vaapi-hwaccel vaapi-hwaccel-new vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vdpau-hwaccel vdpau-hwaccel-new videodev vt.h wayland x11 xv zlib zsh-comp
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [global] config path: '' -> '-'
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] Setting option 'opengl-hwdec-interop' = "auto" (flags = 64) -> 0
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] GL_VERSION='3.3.0 NVIDIA 340.102'
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Detected desktop OpenGL 3.3.
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] GL_VENDOR='NVIDIA Corporation'
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] GL_RENDERER='GeForce 9500 GT/PCIe/SSE2'
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] GL_SHADING_LANGUAGE_VERSION='3.30 NVIDIA via Cg compiler'
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loaded extension GL_ARB_get_program_binary.
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loaded extension GL_NV_vdpau_interop.
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loaded extension GL_ARB_debug_output.
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] 16 bit texture depth: 16.
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Testing FBO format 0x805b
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Create FBO: 16x16 (16x16)
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Using FBO format 0x805b.
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] No advanced processing required. Enabling dumb mode.
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loading hwdec driver 'vaapi-egl'
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loading failed.
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loading hwdec driver 'vaapi-glx'
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb/vaapi-glx] Not using this by default.
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loading failed.
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loading hwdec driver 'vdpau-glx'
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Reported display depth: 8
2017-11-29 23:17 - vidcutter.libs.videoservice - INFO - /usr/bin/ffprobe -hide_banner -v error -show_streams -show_format -of json "/home/cer/Fusion/Hacer/Trek/Cine  Star Trek.mpeg"
2017-11-29 23:17 - vidcutter.libs.videoservice - ERROR - Error decoding ffprobe JSON output
Traceback (most recent call last):
   File "/usr/lib64/python3.4/site-packages/vidcutter/libs/videoservice.py", line 458, in probe
     self.media = Munch.fromDict(json.loads(json_data))
   File "/usr/lib64/python3.4/site-packages/simplejson/__init__.py", line 516, in loads
     return _default_decoder.decode(s)
   File "/usr/lib64/python3.4/site-packages/simplejson/decoder.py", line 370, in decode
     obj, end = self.raw_decode(s)
   File "/usr/lib64/python3.4/site-packages/simplejson/decoder.py", line 400, in raw_decode
     return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 2 (char 1)
2017-11-29 23:17 - root - CRITICAL -   File "/usr/lib64/python3.4/site-packages/vidcutter/videocutter.py", line 657, in openMedia
     self.loadMedia(filename)
   File "/usr/lib64/python3.4/site-packages/vidcutter/videocutter.py", line 798, in loadMedia
     self.videoService.setMedia(self.currentMedia)
   File "/usr/lib64/python3.4/site-packages/vidcutter/libs/videoservice.py", line 91, in setMedia
     self.probe(source)
   File "/usr/lib64/python3.4/site-packages/vidcutter/libs/videoservice.py", line 458, in probe
     self.media = Munch.fromDict(json.loads(json_data))
   File "/usr/lib64/python3.4/site-packages/simplejson/__init__.py", line 516, in loads
     return _default_decoder.decode(s)
   File "/usr/lib64/python3.4/site-packages/simplejson/decoder.py", line 370, in decode
     obj, end = self.raw_decode(s)
   File "/usr/lib64/python3.4/site-packages/simplejson/decoder.py", line 400, in raw_decode
     return self.scan_once(s, idx=_w(s, idx).end())

2017-11-29 23:17 - root - CRITICAL - <class 'simplejson.scanner.JSONDecodeError'>: Expecting value: line 1 column 2 (char 1)
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] flushing shader cache
2017-11-29 23:17 - vidcutter.libs.mpvwidget - INFO - [cplayer] Run command: quit, flags=0, args=[0]
cer at Telcontar:~/Fusion/Hacer/Trek>

I create a hardlink "p.mpeg" to the sample video I have (in case spaces in name are an issue). Then:


cer at Telcontar:~/Fusion/Hacer/Trek> l
total 26585820
drwxr-xr-x 2 cer users        115 Nov 29 23:24 ./
drwxr-xr-x 6 cer users         59 Nov 22  2016 ../
- -rw-r--r-- 2 cer users 7824365232 Nov 17  2016 Cine  Star Trek.mpeg
- -rw-r--r-- 1 cer users 9245273556 Jul 21  2016 Star Trek  La pelicula.mpeg
- -rw-r--r-- 1 cer users 2329869900 Dec 22  2015 Star Trek  Nemesis (FP).mpeg
- -rw-r--r-- 2 cer users 7824365232 Nov 17  2016 p.mpeg
cer at Telcontar:~/Fusion/Hacer/Trek> vidcutter p.mpg
QML debugging is enabled. Only use this in a safe environment.

ERROR: File not found: /home_aux/cer/Fusion/Hacer/Trek/p.mpg
Traceback (most recent call last):
   File "/usr/lib64/python3.4/site-packages/vidcutter/__main__.py", line 343, in closeEvent
     self.console.deleteLater()
AttributeError: 'MainWindow' object has no attribute 'console'
Aborted (core dumped)
cer at Telcontar:~/Fusion/Hacer/Trek>


It coredumped on a wrong filename!

cer at Telcontar:~/Fusion/Hacer/Trek> vidcutter p.mpeg 
QML debugging is enabled. Only use this in a safe environment.
cer at Telcontar:~/Fusion/Hacer/Trek>

(closes silently)

cer at Telcontar:~/Fusion/Hacer/Trek> vidcutter --debug p.mpeg 
QML debugging is enabled. Only use this in a safe environment.
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] mpv 0.25.0 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] built on May  9 2017
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] ffmpeg library versions:
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] libavutil       55.58.100
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] libavcodec      57.89.100
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] libavformat     57.71.100
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] libswscale      4.6.100
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] libavfilter     6.82.100
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] libswresample   2.7.100
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] ffmpeg version: 3.3.4
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] 
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] Configuration: ./waf configure --prefix=/usr --bindir=/usr/bin --mandir=/usr/share/man --libdir=/usr/lib64 --docdir=/usr/share/doc/packages/mpv --confdir=/etc/mpv --enable-cdda --enable-libmpv-shared --enable-zsh-comp --enable-manpage-build --enable-libarchive --disable-sdl1 --disable-sdl2 --disable-build-date --disable-debug
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] List of enabled features: 52 alsa asm atomics audio-input avutil-imgcpy-uc caca cdda cplayer cuda-hwaccel dlopen drm dvbin egl-helpers egl-x11 encoding fchmod gcc-tls gl gl-wayland gl-x11 glibc-thread-name glob gnuc iconv is_ffmpeg jack jpeg lcms2 libarchive libass libass-osd libav libavcodec libavdevice libbluray libdl libm libmpv-shared librt libsmbclient libv4l2 linux-fstatfs lua nanosleep optimize oss-audio oss-audio-native plain-gl posix posix-or-mingw posix-spawn pthreads pulse shm subprocess termios tv tv-v4l2 vaapi vaapi-egl vaapi-glx vaapi-hwaccel vaapi-hwaccel-new vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vdpau-hwaccel vdpau-hwaccel-new videodev vt.h wayland x11 xv zlib zsh-comp
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [global] config path: '' -> '-'
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [cplayer] Setting option 'opengl-hwdec-interop' = "auto" (flags = 64) -> 0
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] GL_VERSION='3.3.0 NVIDIA 340.102'
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Detected desktop OpenGL 3.3.
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] GL_VENDOR='NVIDIA Corporation'
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] GL_RENDERER='GeForce 9500 GT/PCIe/SSE2'
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] GL_SHADING_LANGUAGE_VERSION='3.30 NVIDIA via Cg compiler'
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loaded extension GL_ARB_get_program_binary.
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loaded extension GL_NV_vdpau_interop.
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loaded extension GL_ARB_debug_output.
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] 16 bit texture depth: 16.
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Testing FBO format 0x805b
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Create FBO: 16x16 (16x16)
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Using FBO format 0x805b.
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] No advanced processing required. Enabling dumb mode.
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loading hwdec driver 'vaapi-egl'
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loading failed.
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loading hwdec driver 'vaapi-glx'
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb/vaapi-glx] Not using this by default.
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loading failed.
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Loading hwdec driver 'vdpau-glx'
2017-11-29 23:27 - vidcutter.libs.mpvwidget - INFO - [opengl-cb] Reported display depth: 8
2017-11-29 23:27 - vidcutter.libs.videoservice - INFO - /usr/bin/ffprobe -hide_banner -v error -show_streams -show_format -of json "/home_aux/cer/Fusion/Hacer/Trek/p.mpeg"
2017-11-29 23:27 - vidcutter.libs.videoservice - ERROR - Error decoding ffprobe JSON output
Traceback (most recent call last):
   File "/usr/lib64/python3.4/site-packages/vidcutter/libs/videoservice.py", line 458, in probe
     self.media = Munch.fromDict(json.loads(json_data))
   File "/usr/lib64/python3.4/site-packages/simplejson/__init__.py", line 516, in loads
     return _default_decoder.decode(s)
   File "/usr/lib64/python3.4/site-packages/simplejson/decoder.py", line 370, in decode
     obj, end = self.raw_decode(s)
   File "/usr/lib64/python3.4/site-packages/simplejson/decoder.py", line 400, in raw_decode
     return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 2 (char 1)
2017-11-29 23:27 - root - CRITICAL -   File "/usr/bin/vidcutter", line 9, in <module>
     load_entry_point('vidcutter==5.0.0', 'gui_scripts', 'vidcutter')()
   File "/usr/lib64/python3.4/site-packages/vidcutter/__main__.py", line 378, in main
     win = MainWindow()
   File "/usr/lib64/python3.4/site-packages/vidcutter/__main__.py", line 73, in __init__
     self.file_opener(self.video)
   File "/usr/lib64/python3.4/site-packages/vidcutter/__main__.py", line 89, in file_opener
     self.cutter.loadMedia(filename)
   File "/usr/lib64/python3.4/site-packages/vidcutter/videocutter.py", line 798, in loadMedia
     self.videoService.setMedia(self.currentMedia)
   File "/usr/lib64/python3.4/site-packages/vidcutter/libs/videoservice.py", line 91, in setMedia
     self.probe(source)
   File "/usr/lib64/python3.4/site-packages/vidcutter/libs/videoservice.py", line 458, in probe
     self.media = Munch.fromDict(json.loads(json_data))
   File "/usr/lib64/python3.4/site-packages/simplejson/__init__.py", line 516, in loads
     return _default_decoder.decode(s)
   File "/usr/lib64/python3.4/site-packages/simplejson/decoder.py", line 370, in decode
     obj, end = self.raw_decode(s)
   File "/usr/lib64/python3.4/site-packages/simplejson/decoder.py", line 400, in raw_decode
     return self.scan_once(s, idx=_w(s, idx).end())

2017-11-29 23:27 - root - CRITICAL - <class 'simplejson.scanner.JSONDecodeError'>: Expecting value: line 1 column 2 (char 1)
cer at Telcontar:~/Fusion/Hacer/Trek>



I hope this helps :-)

- -- 
Cheers,
        Carlos E. R.
        (from openSUSE 42.2 x86_64 "Malachite" at Telcontar)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlofNPEACgkQtTMYHG2NR9Xj2QCcC23UG8IhM+VX9o9w7n25OPw5
N3gAoJdggifZ0/4eJyMRBEE+Vc1nbPBm
=S4iq
-----END PGP SIGNATURE-----




More information about the Packman mailing list