onEvent .Vout - problem with slomotion

This forum is about all development around libVLC.
a4tech
Blank Cone
Blank Cone
Posts: 25
Joined: 14 Aug 2020 16:55

onEvent .Vout - problem with slomotion

Postby a4tech » 01 Aug 2021 00:48

Hello,

I faced following problem:

1. I am playing Mpeg-ts file ( with FULL ACCELERATION - 2)
2. I am stopping it and releasing MediaPlayer, create MediaPlayer, set Hardware Acceleration to ( with DISABLE 0 )
3. Play new loaded mpeg-ts

The result is that switching between 2 movies is problematic because I notice that there is problem with

case MediaPlayer.Event.Vout:

It return that event 2x - why ?

In result video is playing little slower...

Any idea?

a4tech
Blank Cone
Blank Cone
Posts: 25
Joined: 14 Aug 2020 16:55

Re: onEvent .Vout - problem with slomotion

Postby a4tech » 01 Aug 2021 11:12

It looks like HW Acceleration switch between change movies is broken in VLC 3.X GIT version.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: onEvent .Vout - problem with slomotion

Postby mfkl » 02 Aug 2021 09:21

Hi,

Your message is missing a lot of key information. We do not know which platform you are using, which exact libvlc version, which binding and what is your code and device.
https://mfkl.github.io

a4tech
Blank Cone
Blank Cone
Posts: 25
Joined: 14 Aug 2020 16:55

Re: onEvent .Vout - problem with slomotion

Postby a4tech » 03 Aug 2021 00:49

Well,

Amlogic S905X2/X3
libVLC - latest from GIT
Sample APK with added NEXT/PREV button by RCU which do the Media() change and setHW option change,

a4tech
Blank Cone
Blank Cone
Posts: 25
Joined: 14 Aug 2020 16:55

Re: onEvent .Vout - problem with slomotion

Postby a4tech » 03 Aug 2021 15:07

Code: Select all

{ .657 8158-8361 D/VLC: [ceb351b0/20a9] libvlc decoder: mediacodec configured for adaptative playback .664 8158-8368 I/OMXClient: IOmx service obtained .688 8158-8367 D/SurfaceUtils: connecting to surface 0xd62da808, reason connectToSurface .690 8158-8367 E/SurfaceUtils: Failed to connect to surface 0xd62da808, err -22 .690 8158-8367 E/MediaCodec: nativeWindowConnect returned an error: Invalid argument (-22) .690 8158-8361 E/MediaCodec: configure failed with err 0xffffffea, resetting... .698 8158-8158 D/Test: [VlcVideoLib::onEvent]MediaPlayer.Event.Vout .700 8158-8158 D/Test: [TestVideoPlayerView::onVout]Player : Got Video to Out :boy_tone1: .732 8158-8368 I/OMXClient: IOmx service obtained .744 8158-8361 E/NdkMediaCodec: configure: err(-22), failed with format: AMessage(what = 0x00000000) = { int32_t encoder = 0 string mime = "video/avc" int32_t max-input-size = 0 int32_t width = 1920 int32_t height = 1088 int32_t rotation-degrees = 0 int32_t feature-adaptive-playback = 1 RefBase *native-window = 0xd62da800 } .745 8158-8361 E/NdkMediaCodec: sf error code: -22 .745 8158-8361 E/VLC: [ceb351b0/20a9] libvlc decoder: AMediaCodec.configure failed .756 8158-8361 E/libc: Access denied finding property "media.metrics.enabled" .764 8158-8361 D/VLC: [ceb351b0/20a9] libvlc decoder: MediaCodec via NDK closed .764 8158-8361 E/VLC: [ceb351b0/20a9] libvlc decoder: StartMediaCodec failed .764 8158-8361 D/VLC: [ceb351b0/20a9] libvlc decoder: MediaCodec via NDK closed .764 8158-8361 D/VLC: [ceb351b0/20a9] libvlc decoder: using ffmpeg Lavc58.134.100 .765 8158-8361 D/VLC: [ceb351b0/20a9] libvlc decoder: CPU flags: 0x0000003f .765 8158-8361 D/VLC: [ceb351b0/20a9] libvlc decoder: allowing 5 thread(s) for decoding .770 8158-8361 D/VLC: [ceb351b0/20a9] libvlc decoder: codec (h264) started .770 8158-8361 D/VLC: [ceb351b0/20a9] libvlc decoder: using frame thread mode with 5 threads .770 8158-8361 D/VLC: [ceb351b0/20a9] libvlc decoder: using video decoder module "avcodec" .776 8158-8375 D/VLC: [ceb351b0/20b7] libvlc decoder: available software decoder output format 0 (yuv420p) .780 8158-8366 D/VLC: [ce942c30/20ae] libvlc vout display: removing module "android_display" .781 8158-8366 D/VLC: [ce9fe530/20ae] libvlc video output: deinterlace -1, mode auto, is_needed 0 .782 8158-8366 D/VLC: [ce9fe530/20ae] libvlc video output: Opening vout display wrapper .782 8158-8366 D/VLC: [ce942c30/20ae] libvlc vout display: looking for vout display module matching "android_display,none": 5 candidates .782 8158-8366 E/VLC: [cecc3930/20ae] libvlc window: request 1 not implemented .782 8158-8366 D/VLC: [ce942c30/20ae] libvlc vout display: VoutDisplayEvent 'resize' 1280x720 .783 8158-8366 W/VLC: [ce942c30/20ae] libvlc vout display: Could not initialize NativeWindow Priv API. .783 8158-8366 D/VLC: [ce942c30/20ae] libvlc vout display: using ANW .784 8158-8366 D/VLC: [ce942c30/20ae] libvlc vout display: using vout display module "android_display" .784 8158-8366 D/VLC: [ce942c30/20ae] libvlc vout display: A filter to adapt decoder I420 to display RV16 is needed .784 8158-8366 D/VLC: [ce93ab30/20ae] libvlc filter: looking for video converter module matching "any": 16 candidates .784 8158-8366 D/VLC: [ce93ab30/20ae] libvlc filter: I420(1920x1080) to RV16(1920x1080) .784 8158-8366 D/VLC: [ce93ab30/20ae] libvlc filter: using video converter module "yuv_rgb_neon" .784 8158-8366 D/VLC: [ce942c30/20ae] libvlc vout display: Filter 'yuv_rgb_neon' (0xce93ab30) appended to chain .784 8158-8366 D/VLC: [ce942c30/20ae] libvlc vout display: PoolAlloc: request 3 frames .784 8158-8366 D/VLC: [ce942c30/20ae] libvlc vout display: PoolAlloc: got 1 frames .786 8158-8366 D/VLC: [ce9fe530/20ae] libvlc video output: original format sz 1920x1090, of (0,0), vsz 1920x1080, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 .787 8158-8366 E/VLC: [cecc3930/20ae] libvlc window: request 0 not implemented .787 8158-8375 D/VLC: [d62e5530/20b7] libvlc generic: reusing provided vout .787 8158-8366 E/VLC: [cecc3930/20ae] libvlc window: request 0 not implemented .843 8158-8366 D/VLC: [ce942c30/20ae] libvlc vout display: change display size: 1280x720 .843 8158-8366 E/VLC: [cecc3930/20ae] libvlc window: request 1 not implemented .866 8158-8158 D/Test: [VlcVideoLib::onEvent]MediaPlayer.Event.Vout .872 8158-8158 D/Test: [TestVideoPlayerView::onVout]Player : Got Video to Out : 2 `}


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 20 guests