openshot-qt icon indicating copy to clipboard operation
openshot-qt copied to clipboard

swscaler errors and broken play-back when OpenShot starts to play video clip.

Open stolk opened this issue 1 month ago • 3 comments

Describe the bug: On certain video clips, when OpenShot starts to play them, I get swscaler errors, and from then on, all playback is broken. This does not happen on pre-built binary, only when built from source code.

Steps to reproduce the behavior:

  1. Build libopenshot and libopenshotaudio from source on Ubuntu 25.04
  2. python3 ./src/launch.py
  3. Import video clips.
  4. Add to timeline.
  5. Press play
  6. For some videos, the swscaler errors will show, and from then on leave OpenShot in a bad state unable to play back anything.
[swscaler @ 0x72aea7f9e640] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af88a9d940] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea954bcc0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea954bcc0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea954bcc0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea954bcc0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea954bcc0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea9d47a80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af891b5c80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af891b5c80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af891b5c80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af891b5c80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af891b5c80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af891b5c80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af891b5c80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea9d47a80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea9d47a80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea9d47a80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea9d47a80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea9d47a80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea9d47a80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea9d47a80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aea9d47a80] deprecated pixel format used, make sure you did set range correctly
[SWR @ 0x72af8917d1c0] Input channel layout "" is invalid or unsupported.
[SWR @ 0x72af8917d1c0] Context has not been initialized
[swscaler @ 0x72af802f5d00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aec7effe00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af802ba100] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af802ba100] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af802ba100] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af802ba100] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af802ba100] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af802b95c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af802b95c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72af802b95c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aeac793d40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x72aeac793d40] deprecated pixel format used, make sure you did set range correctly
[SWR @ 0x72af83ea2040] Input channel layout "" is invalid or unsupported.
[SWR @ 0x72af83ea2040] Context has not been initialized
INFO main_window: ---------------- Shutting down -----------------
INFO thumbnail: Shutting down thumbnail server: ('127.0.0.1', 51413)
INFO logger_libopenshot: Shutting down libopenshot logger
INFO updates: Remove listener from UpdateManager: <windows.preview_thread.PreviewParent object at 0x72b0907d4440>
[swscaler @ 0x23d9e940] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x23d9e940] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x23d9e940] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x23d9e940] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x23d9e940] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x23d9e940] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x23d9e940] deprecated pixel format used, make sure you did set range correctly
INFO app:             OpenShot's session ended            
INFO app:             Sun Nov 16 08:20:39 2025            
INFO app: ================================================

Expected behavior: Working play back.

System Details:

  • OpenShot Version 3.3.0 built from source.
  • Operating System / Distro: Ubuntu 25.04

Log Files:

08:20:20 INFO sentry: No sentry_sdk module detected (error reporting is disabled)
08:20:20 INFO app: ------------------------------------------------
08:20:20 INFO app:             Sun Nov 16 08:20:20 2025
08:20:20 INFO app:               Starting new session
08:20:20 INFO app: ------------------------------------------------
08:20:20 INFO app:             OpenShot (version 3.3.0)
08:20:20 INFO app: ------------------------------------------------
08:20:20 INFO app: openshot-qt version: 3.3.0
08:20:20 INFO app: libopenshot version: 0.4.0
08:20:20 INFO app: platform: Linux-6.14.0-35-generic-x86_64-with-glibc2.41
08:20:20 INFO app: processor: x86_64
08:20:20 INFO app: machine: x86_64
08:20:20 INFO app: python version: 3.13.3
08:20:20 INFO app: qt5 version: 5.15.15
08:20:20 INFO app: pyqt5 version: 5.15.11
08:20:20 INFO project_data: Setting profile to 2.5K WQHD 1440p 29.97 fps
08:20:20 INFO project_data: Apply default audio playback settings: 44100, 2 channels
08:20:20 INFO app: checking babl_ext_path: /home/bram/src/openshot-qt/src/lib/babl-ext
08:20:20 INFO language: Qt Detected Languages: ['en-CA', 'en-Latn-CA', 'en', 'en-US', 'en-Latn-US']
08:20:20 INFO language: LANG Environment Variable: en_CA.UTF-8
08:20:20 INFO language: LOCALE Environment Variable:
08:20:20 INFO language: OpenShot Preference Language: Default
08:20:20 INFO ui_util: Initializing UI for MainWindow
08:20:20 INFO thumbnail: Starting thumbnail server listening on ('127.0.0.1', 51413)
08:20:20 INFO webengine: WebEngine backend initializing
08:20:20 INFO transition_model: updating transitions model.
08:20:20 INFO logger_libopenshot: Connecting to libopenshot with debug port: 5556
08:20:20 INFO effects_model: updating effects model.
08:20:20 INFO emoji_model: updating emoji model.
08:20:20 INFO main_window: InitCacheSettings
08:20:20 INFO main_window: cache-mode: CacheMemory
08:20:20 INFO main_window: cache-limit-mb: 250
08:20:20 INFO main_window: cache-ahead-percent: 0.7
08:20:20 INFO main_window: cache-preroll-min-frames: 24
08:20:20 INFO main_window: cache-preroll-max-frames: 48
08:20:20 INFO main_window: cache-max-frames: 600
08:20:20 INFO main_window: Creating CacheMemory object with 262144000 byte limit
08:20:20 INFO preview_thread: QThread Start Method Invoked
08:20:20 INFO main_window: Cleared temporary files: /home/bram/.openshot_qt/thumbnail
08:20:20 INFO main_window: Cleared temporary files: /home/bram/.openshot_qt/blender
08:20:20 INFO main_window: Cleared temporary files: /home/bram/.openshot_qt/title
08:20:20 INFO base: Setting font to /home/bram/src/openshot-qt/src/images/fonts/Ubuntu-R.ttf
08:20:20 INFO ui_util: Initializing UI for MainWindow
08:20:20 INFO theme: Setting Fusion dark palette
08:20:20 INFO version: Found current version: {'trans_rate_unstable': 0.001, 'openshot_version': '3.3.0', 'error_rate_stable': 0.1, 'error_rate_unstable': 0.05, 'trans_rate_stable': 0.01}
08:20:20 INFO main_window: recover_backup
08:20:20 INFO project_data: Setting profile to 2.5K WQHD 1440p 29.97 fps
08:20:20 INFO project_data: Apply default audio playback settings: 44100, 2 channels
08:20:20 INFO video_widget: Load: Set video widget display aspect ratio to: 1.7777777910232544
08:20:20 INFO video_widget: Set video widget pixel aspect ratio to: 1.0
08:20:20 INFO sentry: No sentry_sdk module detected (error reporting is disabled)
08:20:20 INFO webengine: Registering WebChannel connection with WebEngine
08:20:21 INFO timeline: Adjusting max size of preview image: 880x494
08:20:21 INFO timeline: Qt Ready
08:20:21 INFO timeline: Angular Ready
08:20:27 INFO settings: reducing file: /home/bram/Videos/ShallowDoF.osp to dir: /home/bram/Videos
08:20:27 INFO main_window: Cleared temporary files: /home/bram/.openshot_qt/thumbnail
08:20:27 INFO main_window: Cleared temporary files: /home/bram/.openshot_qt/blender
08:20:27 INFO main_window: Cleared temporary files: /home/bram/.openshot_qt/title
08:20:27 INFO project_data: Setting profile to 2.5K WQHD 1440p 29.97 fps
08:20:27 INFO project_data: Apply default audio playback settings: 44100, 2 channels
08:20:27 INFO project_data: Loading project file: /home/bram/Videos/ShallowDoF.osp
08:20:27 INFO project_data: checking project files...
08:20:27 INFO project_data: checking file /home/bram/Videos/DSCF8028.MOV
08:20:27 INFO project_data: checking file /home/bram/Videos/output.mp4
08:20:27 INFO project_data: Project data: openshot 3.3.0, libopenshot 0.4.0
08:20:27 INFO project_data: Setting profile to 2.5K WQHD 1440p 29.97 fps
08:20:27 INFO project_data: Apply default audio playback settings: 44100, 2 channels
08:20:27 INFO video_widget: Load: Set video widget display aspect ratio to: 1.7777777910232544
08:20:27 INFO video_widget: Set video widget pixel aspect ratio to: 1.0
08:20:27 INFO timeline: Adjusting max size of preview image: 881x644
08:20:27 INFO main_window: Loaded project /home/bram/Videos/ShallowDoF.osp
08:20:39 INFO main_window: ---------------- Shutting down -----------------
08:20:39 INFO thumbnail: Shutting down thumbnail server: ('127.0.0.1', 51413)
08:20:39 INFO logger_libopenshot: Shutting down libopenshot logger
08:20:39 INFO updates: Remove listener from UpdateManager: <windows.preview_thread.PreviewParent object at 0x72b0907d4440>
08:20:39 INFO app:             OpenShot's session ended
08:20:39 INFO app:             Sun Nov 16 08:20:39 2025
08:20:39 INFO app: ================================================

Exception / Stacktrace:

NA

Screenshots: (Optional)

NA

stolk avatar Nov 16 '25 16:11 stolk

The stream that triggers this:

Image

The libswresample version on Ubuntu is:

ii  libswresample-dev:amd64                       7:7.1.1-1ubuntu1.2                         amd64        FFmpeg library for audio resampling, rematrixing etc. - development files
ii  libswresample5:amd64                          7:7.1.1-1ubuntu1.2                         amd64        FFmpeg library for audio resampling, rematrixing etc. - runtime files

See attached file with cmake-generated build config.

CMakeCache.txt

stolk avatar Nov 16 '25 16:11 stolk

This is beyond my expertiese so I am going to assign it to the lead developer. However, if you could, try downloading v3.4.0-Release-Candidate from openshot.org/download/#daily and see if that works.

I am a novice Linux user. I do have Ubuntu 25.10 in an Oracle Virtualbox environment and v3.4.0-RC AppImage works fine for me.

Colorjet3 avatar Nov 16 '25 17:11 Colorjet3

This is beyond my expertiese so I am going to assign it to the lead developer. However, if you could, try downloading v3.4.0-Release-Candidate from openshot.org/download/#daily and see if that works.

I am a novice Linux user. I do have Ubuntu 25.10 in an Oracle Virtualbox environment and v3.4.0-RC AppImage works fine for me.

The pre-built binaries do not have this issue. This is only if I build from source code.

stolk avatar Nov 16 '25 18:11 stolk