MediaGun / QuickVLC

Vlc and Qt (Qml) integration library
Other
8 stars 2 forks source link

MacOS no video #3

Closed AlexeyGromov closed 2 years ago

AlexeyGromov commented 2 years ago

There is no video on MacOS. Only sound. There are many console messages during playback:

[000000012972e400] videotoolbox decoder: Using Video Toolbox to decode 'h264' [00000001684b10d0] main video output error: video output display creation failed [000000012972e400] videotoolbox decoder: Using Video Toolbox to decode 'h264' [00000001684b10d0] main video output error: video output display creation failed [000000012972e400] videotoolbox decoder: Using Video Toolbox to decode 'h264' [00000001684b10d0] main video output error: video output display creation failed [000000012972e400] videotoolbox decoder: Using Video Toolbox to decode 'h264' [000000012972e400] main decoder error: buffer deadlock prevented

chubinou commented 2 years ago

Hi,

It looks like you have a few issues:

chubinou commented 2 years ago

FYI MR 2061 has been merged upstream

AlexeyGromov commented 2 years ago

Hi,

But I still have no video issue. Correct me if I missed something. Thanks in advance.

[image: Bamboo Agile] https://bambooagile.eu/ [image: Linkedin] https://www.linkedin.com/company/bambooagile/mycompany/ [image: Twitter] https://twitter.com/BambooAgile [image: Clutch] https://clutch.co/profile/bamboo-agile#reviews Alexey Gromov Lead iOS Engineer [image: phone] +375 <+37255509797>29 5395540 [image: email] @. @.> [image: website] bambooagile.eu

пн, 13 июн. 2022 г. в 10:41, chubinou @.***>:

FYI MR 2061 https://code.videolan.org/videolan/vlc/-/merge_requests/2061 has been merged upstream

— Reply to this email directly, view it on GitHub https://github.com/bambooagile/QuickVLC/issues/3#issuecomment-1153582547, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATGIP2O53KER5NFKUAMP3CTVO3Q2XANCNFSM5X66MD4A . You are receiving this because you authored the thread.Message ID: @.***>

-- This e-mail and any attachments to it may contain CONFIDENTIAL OR PROPRIETARY INFORMATION of group of companies Bamboo Group intended solely for the recipient. If you have received this e-mail by mistake please notify the sender immediately by telephone or reply this e-mail and DELETE the original message and any attachments to it without making a COPY. You are hereby notified that any unauthorized review, use, copying or distribution of this message and attachments to it is strictly prohibited. This e-mail and attachments to it may not be retransmitted to any party outside of the recipient's organization without the prior written consent of the sender.

chubinou commented 2 years ago

I confirm that the libgl_plugin is present in the artifacts (both the dmg and the SDK).

But I still have no video issue. Correct me if I missed something. Thanks in advance.

without detailed logs, I can't tell

AlexeyGromov commented 2 years ago

I copied all libs from VLC app bundle to our app bundle and now have a crash:

[000000013a050c00] videotoolbox decoder error: 'mpgv' is not supported [000000013a050c00] videotoolbox decoder error: 'mpgv' is not supported Assertion failed: (!"GL_INVALID_ENUM"), function vout_display_opengl_New, file vout_helper.c, line 150. [image: Bamboo Agile] https://bambooagile.eu/ [image: Linkedin] https://www.linkedin.com/company/bambooagile/mycompany/ [image: Twitter] https://twitter.com/BambooAgile [image: Clutch] https://clutch.co/profile/bamboo-agile#reviews Alexey Gromov Lead iOS Engineer [image: phone] +375 <+37255509797>29 5395540 [image: email] @. @.> [image: website] bambooagile.eu

пн, 13 июн. 2022 г. в 12:58, chubinou @.***>:

I confirm that the libgl_plugin is present in the artifacts (both the dmg and the SDK).

But I still have no video issue. Correct me if I missed something. Thanks in advance.

without detailed logs, I can't tell

— Reply to this email directly, view it on GitHub https://github.com/bambooagile/QuickVLC/issues/3#issuecomment-1153718489, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATGIP2OR2Y3SM7AMTVMXDWLVO4A4ZANCNFSM5X66MD4A . You are receiving this because you authored the thread.Message ID: @.***>

-- This e-mail and any attachments to it may contain CONFIDENTIAL OR PROPRIETARY INFORMATION of group of companies Bamboo Group intended solely for the recipient. If you have received this e-mail by mistake please notify the sender immediately by telephone or reply this e-mail and DELETE the original message and any attachments to it without making a COPY. You are hereby notified that any unauthorized review, use, copying or distribution of this message and attachments to it is strictly prohibited. This e-mail and attachments to it may not be retransmitted to any party outside of the recipient's organization without the prior written consent of the sender.

chubinou commented 2 years ago

please send detailed logs (add "-vvvv" to libvlc parametters).

If this happens with a particular media can you me the media as well ?

AlexeyGromov commented 2 years ago

It happens with any media. Here is detailed logs:

[0000600003562c60] main libvlc debug: VLC media player - 4.0.0-dev Otto Chriek [0000600003562c60] main libvlc debug: Copyright © 1996-2022 the VideoLAN team [0000600003562c60] main libvlc debug: revision 4.0.0-dev-19764-g53f09b1c6d [0000600003562c60] main libvlc debug: configured with /Users/videolanci/builds/iHxegY-y/1/videolan/vlc/extras/package/macosx/../../../configure '--prefix=/' '--enable-macosx' '--enable-merge-ffmpeg' '--enable-osx-notifications' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-shout' '--enable-ncurses' '--enable-twolame' '--enable-libass' '--enable-macosx-avfoundation' '--disable-skins2' '--disable-xcb' '--disable-caca' '--disable-pulse' '--disable-vnc' '--without-x' '--build=aarch64-apple-darwin19' '--host=aarch64-apple-darwin19' '--with-macosx-version-min=10.11' '--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' 'build_alias=aarch64-apple-darwin19' 'host_alias=aarch64-apple-darwin19' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-g -arch arm64' 'LDFLAGS=-arch arm64' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-g -arch arm64' 'OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-g -arch arm64' [0000600003562c60] main libvlc debug: searching plug-in modules [0000600003562c60] main libvlc debug: loading plugins cache file /Users/aliakseihromau/Documents/GitHub/build-mediagun-app-Qt_6_3_0_for_macOS-Debug/src/MediaGun.app/Contents/Frameworks/plugins/plugins.dat [0000600003562c60] main libvlc debug: recursively browsing /Users/aliakseihromau/Documents/GitHub/build-mediagun-app-Qt_6_3_0_for_macOS-Debug/src/MediaGun.app/Contents/Frameworks/plugins' [0000600003562c60] main libvlc debug: plug-ins loaded: 515 modules [000000016ba058b0] main generic debug: looking for logger module matching "any": 3 candidates [000000016ba058b0] main generic debug: using logger module "console" [000000016ba05890] main generic debug: looking for tracer module matching "none": 0 candidates [000000016ba05890] main generic debug: no tracer modules matched with name none [0000600003562c60] main libvlc debug: translation test: code is "C" [000000016ba05860] main generic debug: looking for keystore module matching "memory": 1 candidates [000000016ba05860] main generic debug: using keystore module "memory" [0000600003562c60] main libvlc debug: CPU has capabilities FPU [0000600003562c60] main libvlc warning: Key "Command+0" bound to multiple actions Using libvlc version: "4.0.0-dev Otto Chriek" [000000015e440b60] main player debug: creating audio output [000000016ba05890] main generic debug: looking for audio output module matching "any": 1 candidates [000000015e440860] auhal audio output debug: Rebuild device list [000000015e440860] auhal audio output debug: found 5 audio device(s) [000000015e440860] auhal audio output debug: DevID: 68 DevName: Q27P1B [000000015e440860] auhal audio output debug: supported format: [48000.000000][mcpl][4][8][1][8][2][24] [000000015e440860] auhal audio output debug: supported format: [48000.000000][mcpl][4][8][1][8][2][20] [000000015e440860] auhal audio output debug: supported format: [48000.000000][mcpl][12][4][1][4][2][16] [000000015e440860] auhal audio output debug: DevID: 63 DevName: External Microphone [000000015e440860] auhal audio output debug: this 'External Microphone' is INPUT only. skipping... [000000015e440860] auhal audio output debug: DevID: 56 DevName: External Headphones [000000015e440860] auhal audio output debug: supported format: [96000.000000][mcpl][9][8][1][8][2][32] [000000015e440860] auhal audio output debug: supported format: [88200.000000][mcpl][9][8][1][8][2][32] [000000015e440860] auhal audio output debug: supported format: [48000.000000][mcpl][9][8][1][8][2][32] [000000015e440860] auhal audio output debug: supported format: [44100.000000][mcpl][9][8][1][8][2][32] [000000015e440860] auhal audio output debug: DevID: 51 DevName: MacBook Pro Microphone [000000015e440860] auhal audio output debug: this 'MacBook Pro Microphone' is INPUT only. skipping... [000000015e440860] auhal audio output debug: DevID: 44 DevName: MacBook Pro Speakers [000000015e440860] auhal audio output debug: supported format: [96000.000000][mcpl][9][8][1][8][2][32] [000000015e440860] auhal audio output debug: supported format: [88200.000000][mcpl][9][8][1][8][2][32] [000000015e440860] auhal audio output debug: supported format: [48000.000000][mcpl][9][8][1][8][2][32] [000000015e440860] auhal audio output debug: supported format: [44100.000000][mcpl][9][8][1][8][2][32] [000000016ba05890] main generic debug: using audio output module "auhal" [000000015e440b60] main player debug: keeping audio output [0000000122d13a00] main input debug: Creating an input for 'Indiana Jones mpeg-2.mpg' [0000000122d13a00] main input debug: using timeshift granularity of 50 MiB [0000000122d13a00] main input debug: using default timeshift path [0000000122d13a00] main input debug:file:///Users/aliakseihromau/Downloads/Media%20files/Indiana%20Jones%20mpeg-2.mpg' gives access file' demuxany' path /Users/aliakseihromau/Downloads/Media%20files/Indiana%20Jones%20mpeg-2.mpg' [0000600003c1be90] main access debug: creating access: file:///Users/aliakseihromau/Downloads/Media%20files/Indiana%20Jones%20mpeg-2.mpg [0000600003c1be90] main access debug: (path: /Users/aliakseihromau/Downloads/Media files/Indiana Jones mpeg-2.mpg) [000000016d086b90] main generic debug: looking for access module matching "file": 4 candidates qml: playpreview Volume set 0.4 [000000016d086b90] main generic debug: using access module "filesystem" [000000016d086bc0] main generic debug: looking for stream_filter module matching "prefetch,cache": 3 candidates [0000600003c19930] cache_read stream filter debug: Using stream method for AStream* [0000600003c19930] cache_read stream filter debug: starting pre-buffering [0000600003c19930] cache_read stream filter debug: received first data after 0 ms [0000600003c19930] cache_read stream filter debug: pre-buffering done 1024 bytes in 0s - 28571 KiB/s [000000016d086bc0] main generic debug: using stream_filter module "cache_read" [000000016d086c50] main generic debug: looking for stream_filter module matching "any": 7 candidates [000000016d086c50] main generic debug: no stream_filter modules matched with name any [000000016d086bf0] main generic debug: looking for stream_directory module matching "any": 1 candidates [000000016d086bf0] main generic debug: no stream_directory modules matched with name any [0000000122d13a00] main input debug: attachment of directory-extractor failed for file:///Users/aliakseihromau/Downloads/Media%20files/Indiana%20Jones%20mpeg-2.mpg [000000016d086c20] main generic debug: looking for stream_filter module matching "record": 1 candidates [000000016d086c20] main generic debug: using stream_filter module "record" [0000000122d13a00] main input debug: creating demux "any", URL: file:///Users/aliakseihromau/Downloads/Media%20files/Indiana%20Jones%20mpeg-2.mpg, path: /Users/aliakseihromau/Downloads/Media files/Indiana Jones mpeg-2.mpg [000000016d086c50] main generic debug: looking for demux module matching "ext-mpg": 63 candidates [000000016d086860] main generic debug: looking for xml reader module matching "any": 1 candidates [000000016d086860] main generic debug: using xml reader module "xml" [000060000223a0d0] main xml reader debug: removing module "xml" [0000600003c5ad80] webvtt demux debug: subtitle demux discarded [0000600003c5ad80] ts demux debug: TS module discarded (lost sync) [0000600003c5ad80] mod demux debug: MOD validation failed (ext=mpg) [000000016d086c50] main generic debug: using demux module "ps" [0000000122d13a00] main input debug: looking for a subtitle file in /Users/aliakseihromau/Downloads/Media files/ [000000016d086e20] main generic debug: looking for meta reader module matching "any": 2 candidates [0000600003c5ae50] main access debug: creating access: file:///Users/aliakseihromau/Downloads/Media%20files/Indiana%20Jones%20mpeg-2.mpg [0000600003c5ae50] main access debug: (path: /Users/aliakseihromau/Downloads/Media files/Indiana Jones mpeg-2.mpg) [000000016d086710] main generic debug: looking for access module matching "file": 4 candidates [000000016d086710] main generic debug: using access module "filesystem" [000000016d0867c0] main generic debug: looking for stream_filter module matching "prefetch,cache": 3 candidates [0000600003c5af20] cache_read stream filter debug: Using stream method for AStream* [0000600003c5af20] cache_read stream filter debug: starting pre-buffering [0000600003c5af20] cache_read stream filter debug: received first data after 0 ms [0000600003c5af20] cache_read stream filter debug: pre-buffering done 1024 bytes in 0s - 35714 KiB/s [000000016d0867c0] main generic debug: using stream_filter module "cache_read" [0000600003c5af20] main stream filter debug: removing module "cache_read" [0000600003c5ae50] main access debug: removing module "filesystem" [0000600001e11180] lua demux meta debug: Trying Lua scripts in /Users/aliakseihromau/Library/Application Support/com.mediagun.app/lua/meta/reader [0000600001e11180] lua demux meta debug: Trying Lua scripts in /Users/aliakseihromau/Documents/GitHub/build-mediagun-app-Qt_6_3_0_for_macOS-Debug/src/MediaGun.app/Contents/Frameworks/lua/meta/reader [0000600001e11180] lua demux meta debug: Trying Lua playlist script /Users/aliakseihromau/Documents/GitHub/build-mediagun-app-Qt_6_3_0_for_macOS-Debug/src/MediaGun.app/Contents/Frameworks/lua/meta/reader/filename.luac [0000600001e11180] lua demux meta debug: Trying Lua scripts in /Users/aliakseihromau/Documents/GitHub/build-mediagun-app-Qt_6_3_0_for_macOS-Debug/src/MediaGun.app/Contents/Resources/share/lua/meta/reader [000000016d086e20] main generic debug: no meta reader modules matched with name any [0000000122d13a00] main input debug:file:///Users/aliakseihromau/Downloads/Media%20files/Indiana%20Jones%20mpeg-2.mpg' successfully opened [0000600003c5ad80] ps demux warning: garbage at input, trying to resync... [0000600003c5ad80] ps demux warning: found sync code [0000600003c5ad80] ps demux debug: we found a length of: 77s [0000000122d13a00] main input debug: selecting program id=0 [0000000122d13a00] main input debug: ES track added: 'video/auto/0' (fourcc: 'mpgv') [000000016d086810] main generic debug: looking for packetizer module matching "any": 25 candidates [000000016d086810] main generic debug: using packetizer module "mpegvideo" [000000016d086810] main generic debug: looking for video decoder module matching "any": 14 candidates [000000011338b000] videotoolbox decoder error: 'mpgv' is not supported [000000011338b000] main decoder debug: vout: none found [000000016d086270] main generic debug: looking for text renderer module matching "any": 2 candidates [000000016d086270] main generic debug: using text renderer module "freetype" [000000016d0862c0] main generic debug: looking for video converter module matching "any": 17 candidates [000000015e446cc0] swscale scale debug: 32x32 (32x32) chroma: YUVA colorspace: Undefined -> 16x16 (16x16) chroma: RGBA colorspace: Undefined with scaling using Bicubic (good quality) [000000016d0862c0] main generic debug: using video converter module "swscale" [000000016d0862c0] main generic debug: looking for video converter module matching "any": 17 candidates [000000015e30c580] yuvp scale debug: YUVP to YUVA converter [000000016d0862c0] main generic debug: using video converter module "yuvp" [000000015dffcfb0] main video output debug: Deinterlacing available [000000015dffcfb0] main video output debug: deinterlace -1, mode auto, is_needed 0 [000000016d086340] main generic debug: looking for vout window module matching "wextern": 5 candidates [000000016d086340] main generic debug: using vout window module "wextern" [000000016d0862c0] main generic debug: looking for inhibit module matching "any": 1 candidates [000000016d0862c0] main generic debug: using inhibit module "iokit_inhibit" [000000016d086570] main generic debug: looking for decoder device module matching "any": 1 candidates [000000016d086570] main generic debug: using decoder device module "videotoolbox" [000000011338b000] videotoolbox decoder warning: vt session error: 'kVTCouldNotFindVideoDecoderErr' [000000011338b000] avcodec decoder debug: using ffmpeg Lavc58.134.100 [000000011338b000] avcodec decoder debug: CPU flags: 0x00000068 [000000011338b000] avcodec decoder debug: allowing 6 thread(s) for decoding [000000011338b000] avcodec decoder debug: codec (mpeg2video) started [000000016d086810] main generic debug: using video decoder module "avcodec" [0000000122d13a00] main input debug: ES track selected: 'video/auto/0' (fourcc: 'mpgv') [0000000122d13a00] main input debug: program(0): using clock source: 'audio' [0000000122d13a00] main input debug: Buffering 0% [0000000122d13a00] main input debug: ES track added: 'audio/auto/1' (fourcc: 'mpga') [000000016d086810] main generic debug: looking for packetizer module matching "any": 25 candidates [000000016d086810] main generic debug: using packetizer module "mpegaudio" [000000016d086810] main generic debug: looking for audio decoder module matching "any": 18 candidates [00000001129cf200] mpg123 decoder debug: mpga->f32l, bits per sample: 32 [000000016d086810] main generic debug: using audio decoder module "mpg123" [0000000122d13a00] main input debug: ES track selected: 'audio/auto/1' (fourcc: 'mpga') [000000015e30df30] mpegaudio packetizer debug: MPGA channels:2 samplerate:48000 bitrate:224 [00000001129cf200] main decoder debug: restarting module due to input format change [00000001129cf200] main decoder debug: removing module "mpg123" [000000016d3aacd0] main generic debug: looking for audio decoder module matching "any": 18 candidates [00000001129cf200] mpg123 decoder debug: mpga->f32l, bits per sample: 32 [000000016d3aacd0] main generic debug: using audio decoder module "mpg123" [0000000122d13a00] main input debug: Buffering 1% [0000000122d13a00] main input debug: Buffering 2% [0000000122d13a00] main input debug: Buffering 3% [0000000122d13a00] main input debug: Buffering 4% [0000000122d13a00] main input debug: Buffering 5% [0000000122d13a00] main input debug: Buffering 6% [0000000122d13a00] main input debug: Buffering 7% [0000000122d13a00] main input debug: Buffering 8% [0000000122d13a00] main input debug: Buffering 9% [0000000122d13a00] main input debug: Buffering 10% [0000000122d13a00] main input debug: Buffering 11% [0000000122d13a00] main input debug: Buffering 12% [0000000122d13a00] main input debug: Buffering 13% [0000000122d13a00] main input debug: Buffering 14% [00000001127ef6a0] mpegvideo packetizer debug: size 720x576/720x576 fps 25:1 [000000011338b000] main decoder debug: restarting module due to input format change [000000011338b000] main decoder debug: removing module "avcodec" [0000000122d13a00] main input debug: Buffering 15% [000000016d29ecd0] main generic debug: looking for video decoder module matching "any": 14 candidates [000000011338b000] videotoolbox decoder error: 'mpgv' is not supported [000000011338b000] main decoder debug: vout change: decoder size [000000011338b000] main decoder debug: vout change: visible size [0000000122d13a00] main input debug: Buffering 16% [000000011338b000] videotoolbox decoder warning: vt session error: 'kVTCouldNotFindVideoDecoderErr' [000000011338b000] avcodec decoder debug: using ffmpeg Lavc58.134.100 [0000000122d13a00] main input debug: Buffering 17% [000000011338b000] avcodec decoder debug: CPU flags: 0x00000068 [000000011338b000] avcodec decoder debug: allowing 6 thread(s) for decoding [000000011338b000] avcodec decoder debug: codec (mpeg2video) started [000000016d29ecd0] main generic debug: using video decoder module "avcodec" [0000000122d13a00] main input debug: Buffering 18% [0000000122d13a00] main input debug: Buffering 19% [0000000122d13a00] main input debug: Buffering 20% [0000000122d13a00] main input debug: Buffering 21% [0000000122d13a00] main input debug: Buffering 22% [000000011338b000] avcodec decoder debug: available hardware decoder output format 160 (videotoolbox_vld) [000000011338b000] avcodec decoder debug: available software decoder output format 0 (yuv420p) [0000000122d13a00] main input debug: Buffering 23% [0000000122d13a00] main input debug: Buffering 24% [000000015e440b60] main player debug: reusing audio output [000000015e440860] main audio output debug: VLC is looking for: 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes [000000015e440860] auhal audio output debug: attempting to use device 0 [mpeg2video @ 0x1133d4000] Format yuv420p chosen by get_format(). [0000000122d13a00] main input debug: Buffering 25% [000000015e440860] auhal audio output debug: using default audio device 56 [000000015e440860] auhal audio output debug: Current device has a latency of 1520 us [0000000122d13a00] main input debug: Buffering 26% [0000000122d13a00] main input debug: Buffering 27% [0000000122d13a00] main input debug: Buffering 28% [0000000122d13a00] main input debug: Buffering 29% [0000000122d13a00] main input debug: Buffering 30% [0000000122d13a00] main input debug: Buffering 31% [000000011338b000] main decoder debug: vout change: chroma [000000011338b000] main decoder debug: vout change: SAR [00006000032000a0] main window debug: requested window size: 1024x576 [0000600000bb3720] iokit_inhibit inhibit debug: Inhibiting display sleep [0000000122d13a00] main input debug: Buffering 32% [0000000122d13a00] main input debug: Buffering 33% [0000000122d13a00] main input debug: Buffering 34% [0000000122d13a00] main input debug: Buffering 35% [0000000122d13a00] main input debug: Buffering 36% [0000000122d13a00] main input debug: Buffering 37% [000000015dffcfb0] main video output debug: deinterlace -1, mode auto, is_needed 0 [000000015dffcfb0] main video output debug: Opening vout display wrapper [000000015dffcfb0] main video output warning: window size missing [000000015d19b140] main vout display debug: looking for vout display module matching "gl": 1 candidates [0000000122d13a00] main input debug: Buffering 38% [0000000122d13a00] main input debug: Buffering 39% [0000000122d13a00] main input debug: Buffering 40% [0000000122d13a00] main input debug: Buffering 41% [0000000122d13a00] main input debug: Buffering 42% [0000000122d13a00] main input debug: Buffering 43% [0000000122d13a00] main input debug: Buffering 44% [0000000122d13a00] main input debug: Buffering 45% [0000000122d13a00] main input debug: Buffering 46% [0000000122d13a00] main input debug: Buffering 47% [0000000122d13a00] main input debug: Buffering 48% [0000000122d13a00] main input debug: Buffering 49% [0000000122d13a00] main input debug: Buffering 50% [0000000122d13a00] main input debug: Buffering 51% [0000000122d13a00] main input debug: Buffering 52% [0000000122d13a00] main input debug: Buffering 53% [000000016d29e120] main generic debug: looking for opengl module matching "vgl": 1 candidates [0000000122d13a00] main input debug: Buffering 54% [0000000122d13a00] main input debug: Buffering 55% [0000000122d13a00] main input debug: Buffering 56% [0000000122d13a00] main input debug: Buffering 57% [0000000122d13a00] main input debug: Buffering 58% [0000000122d13a00] main input debug: Buffering 59% [0000000122d13a00] main input debug: Buffering 60% [0000000122d13a00] main input debug: Buffering 61% [0000000122d13a00] main input debug: Buffering 62% [0000000122d13a00] main input debug: Buffering 63% [0000000122d13a00] main input debug: Buffering 64% [0000000122d13a00] main input debug: Buffering 65% [0000000122d13a00] main input debug: Buffering 66% [0000000122d13a00] main input debug: Buffering 67% [0000000122d13a00] main input debug: Buffering 68% [0000000122d13a00] main input debug: Buffering 69% [0000000122d13a00] main input debug: Buffering 70% [0000000122d13a00] main input debug: Buffering 71% [0000000122d13a00] main input debug: Buffering 72% [0000000122d13a00] main input debug: Buffering 73% [0000000122d13a00] main input debug: Buffering 74% [000000016d29e120] main generic debug: using opengl module "vgl" [0000000122d13a00] main input debug: Buffering 75% [0000000122d13a00] main input debug: Buffering 76% [0000000122d13a00] main input debug: Buffering 77% [0000000122d13a00] main input debug: Buffering 78% [0000000122d13a00] main input debug: Buffering 79% [0000000122d13a00] main input debug: Buffering 80% [0000000122d13a00] main input debug: Buffering 81% [0000000122d13a00] main input debug: Buffering 82% [0000000122d13a00] main input debug: Buffering 83% [0000000122d13a00] main input debug: Buffering 84% [0000000122d13a00] main input debug: Buffering 85% [0000000122d13a00] main input debug: Buffering 86% [000000015e440860] auhal audio output debug: output layout of AUHAL is Stereo [000000015e440860] auhal audio output debug: selected 2 physical channels for device output [000000015e440860] auhal audio output debug: VLC will output: Stereo [0000000122d13a00] main input debug: Buffering 87% [0000000122d13a00] main input debug: Buffering 88% [0000000122d13a00] main input debug: Buffering 89% [0000000122d13a00] main input debug: Buffering 90% [000000015e440860] auhal audio output debug: Current AU format: [48000.000000][mcpl][9][8][1][8][2][32] [0000000122d13a00] main input debug: Buffering 91% [0000000122d13a00] main input debug: Buffering 92% [0000000122d13a00] main input debug: Buffering 93% [0000000122d13a00] main input debug: Buffering 94% [0000000122d13a00] main input debug: Buffering 95% [0000000122d13a00] main input debug: Buffering 96% [0000000122d13a00] main input debug: Buffering 97% [0000000122d13a00] main input debug: Buffering 98% [0000000122d13a00] main input debug: Buffering 99% [0000000122d13a00] main input debug: Stream buffering done (1000 ms in 25 ms) [000000015e440860] auhal audio output debug: analog output successfully opened [000000015e440860] main audio output debug: output 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes [000000016d3aab60] main generic debug: looking for audio volume module matching "any": 2 candidates [000000016d3aab60] main generic debug: using audio volume module "float_mixer" [000000015e440860] main audio output debug: input 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes [000000016d3aa910] main generic debug: looking for audio filter module matching "scaletempo": 1 candidates [0000000162c08190] scaletempo audio filter debug: format: 48000 rate, 2 nch, 4 bps, fl32 [0000000162c08190] scaletempo audio filter debug: params: 30 stride, 0.200 overlap, 14 search [0000000162c08190] scaletempo audio filter debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode [000000016d3aa910] main generic debug: using audio filter module "scaletempo" [000000015e440860] main audio output debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo [000000015e440860] main audio output debug: conversion pipeline complete [000000015e440860] main audio output debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo [000000015e440860] main audio output debug: conversion pipeline complete [000000016d3aa990] main generic debug: looking for audio resampler module matching "any": 3 candidates [0000000162c092c0] soxr audio resampler debug: Using SoX Resampler with 'cr32' engine and 'Medium 16-bit with medium roll-off' quality to convert f32l/48000Hz to f32l/48000Hz. [000000016d3aa990] main generic debug: using audio resampler module "soxr" Assertion failed: (!"GL_INVALID_ENUM"), function vout_display_opengl_New, file vout_helper.c, line 150.

chubinou commented 2 years ago

Hi,

I haven't been able to reproduce your issue so far, I tested with these configurations

I tested with different kind of medias, ones that uses VideoToolbox (accelerated hw) and ones that uses software decoder (a mpgv like in your sample logs)

Here is my compilation process:

before starting the executable, I setup these environment variables

#where are VLC plugins installed
export VLC_PLUGIN_PATH=/Users/pierre/install/lib/vlc/plugins/
#where are QuickVLC qml plugins installed
export QML2_IMPORT_PATH=/Users/pierre/install/qml
#force opengl backend for Qt
export QSG_RHI_BACKEND=gl
AlexeyGromov commented 2 years ago

Hi, I am trying to follow your steps. Get a lot of errors when build a QuickVLC-example.

In file included from /Users/aliakseihromau/Documents/GitHub/QuickVLC-example/main.cpp:1: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtWidgets.framework/Headers/QApplication:1: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtWidgets.framework/Headers/qapplication.h:43: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtWidgets.framework/Headers/qtwidgetsglobal.h:43: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtGui.framework/Headers/qtguiglobal.h:43: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtCore.framework/Headers/qglobal.h:45: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/type_traits:420: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/cstddef:37: /Users/aliakseihromau/Documents/GitHub/QuickVLC-example/version:1:1: error: expected unqualified-id 1.0.0 ^ In file included from /Users/aliakseihromau/Documents/GitHub/QuickVLC-example/main.cpp:1: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtWidgets.framework/Headers/QApplication:1: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtWidgets.framework/Headers/qapplication.h:43: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtWidgets.framework/Headers/qtwidgetsglobal.h:43: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtGui.framework/Headers/qtguiglobal.h:43: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtCore.framework/Headers/qglobal.h:45: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/type_traits:421: /Users/aliakseihromau/Documents/GitHub/QuickVLC-example/version:1:1: error: expected unqualified-id 1.0.0 In file included from /Users/aliakseihromau/Documents/GitHub/QuickVLC-example/main.cpp:1: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtWidgets.framework/Headers/QApplication:1: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtWidgets.framework/Headers/qapplication.h:43: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtWidgets.framework/Headers/qtwidgetsglobal.h:43: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtGui.framework/Headers/qtguiglobal.h:43: In file included from /Users/aliakseihromau/Qt/6.3.0/macos/lib/QtCore.framework/Headers/qglobal.h:51: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/assert.h:44: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/stdlib.h:93: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/stdlib.h:66: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/wait.h:110: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:202:2: error: unknown type name 'uint8_t' uint8_t ri_uuid[16]; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:216:2: error: unknown type name 'uint8_t' uint8_t ri_uuid[16]; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:236:2: error: unknown type name 'uint8_t' uint8_t ri_uuid[16]; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:258:2: error: unknown type name 'uint8_t' uint8_t ri_uuid[16]; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:289:2: error: unknown type name 'uint8_t' uint8_t ri_uuid[16]; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:328:2: error: unknown type name 'uint8_t' uint8_t ri_uuid[16];

AlexeyGromov commented 2 years ago

Have you faced this?

chubinou commented 2 years ago

oh yeah, somehow osx is trying to include this file (because it's case insensitive), https://github.com/bambooagile/QuickVLC/blob/master/VERSION I removed it locally

chubinou commented 2 years ago

I meant this file https://github.com/bambooagile/QuickVLC-example/blob/master/VERSION probably because of this set(CMAKE_INCLUDE_CURRENT_DIR ON)

AlexeyGromov commented 2 years ago

Thank you very much, it helped. I confirm QuickVLC-example works without crash. Now I will try to understand why QuickVLC crashes in our main project.

chubinou commented 2 years ago

from the error log messages, it reports that there was an opengl error at some point (that's what cause the assertion), but the glGetError can't really tell where the error originated. maybe you're making some "illegal" operations with the opengl context of VLC, and it remains silent up to this point.

maybe try to install an opengl logger to find out what's the issue https://doc.qt.io/qt-6/qopengldebuglogger.html

AlexeyGromov commented 2 years ago

Hi, I found the root of the issue. We use WebEngine in our project. Try to add these lines to CMakeLists.txt: find_package(Qt6 COMPONENTS WebEngineCore WebEngineWidgets WebEngineQuick REQUIRED) And Qt6::WebEngineQuick Qt6::WebEngineCore Qt6::WebEngineWidgets in target_link_libraries.

chubinou commented 2 years ago

I don't have access to a MacOS computer today, I'll test this next week

chubinou commented 2 years ago

Hi,

from what I understand QtWebEngine changes the default OpenGL format when the application starts (see here) this resulted in the use of an incompatible opengl format.

After a lot of tinkering I managed to find that changing the configuration like this before creating the QApplication worked for me

QSurfaceFormat format = QSurfaceFormat::defaultFormat();
format.setProfile(QSurfaceFormat::CompatibilityProfile);
QSurfaceFormat::setDefaultFormat(format);

/// [...]

QApplication app(argc, argv);
AlexeyGromov commented 2 years ago

Thank you very much! It helped! You are genius!