Search Unity

[Released] AVPro Video - complete video playback solution

Discussion in 'Assets and Asset Store' started by AndrewRH, Feb 12, 2016.

  1. Debashishb06

    Debashishb06

    Joined:
    Feb 7, 2013
    Posts:
    8
    Hi, getting trouble on Alpha Packing please help me
    upload_2020-3-3_16-24-21.png
     
  2. TopPlay

    TopPlay

    Joined:
    Jul 8, 2014
    Posts:
    15
    Error Message:
    2020-03-05 18:27:06.743 13203-13833/com.TopPlay.Panoramic3D E/GraphicBufferAllocator: Failed to allocate (4096 x 900) layerCount 1 format 17 usage 402b00: 5
    2020-03-05 18:27:06.743 13203-13833/com.TopPlay.Panoramic3D E/BufferQueueProducer: [SurfaceTexture-66-13203-26] dequeueBuffer: createGraphicBuffer failed
    2020-03-05 18:27:06.743 13203-13833/com.TopPlay.Panoramic3D E/ACodec: dequeueBuffer failed: Out of memory (12)
    2020-03-05 18:27:06.743 13203-13833/com.TopPlay.Panoramic3D E/ACodec: Failed to allocate buffers after transitioning to IDLE state (error 0xfffffff4)
    2020-03-05 18:27:06.743 13203-13833/com.TopPlay.Panoramic3D E/ACodec: signalError(omxError 0x80001001, internalError -12)
    2020-03-05 18:27:06.743 13203-13831/com.TopPlay.Panoramic3D E/MediaCodec: Codec reported err 0xfffffff4, actionCode 0, while in state 5
    2020-03-05 18:27:06.747 13203-13831/com.TopPlay.Panoramic3D D/SurfaceUtils: disconnecting from surface 0x78f24008, reason disconnectFromSurface
    2020-03-05 18:27:06.755 13203-13833/com.TopPlay.Panoramic3D W/AHierarchicalStateMachine: Warning message AMessage(what = 'omxI') = {
    int32_t type = 0
    int32_t event = 0
    int32_t data1 = 0
    int32_t data2 = 1
    } unhandled in root state.
    2020-03-05 18:27:06.761 13203-13823/com.TopPlay.Panoramic3D E/ExoPlayerImplInternal: Playback error.
    com.google.android.exoplayer2.ExoPlaybackException
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.throwDecoderInitError(MediaCodecRenderer.java:450)
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:437)
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:929)
    at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:506)
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:566)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:518)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:301)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:193)
    at android.os.HandlerThread.run(HandlerThread.java:65)
    Caused by: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.amlogic.hevc.decoder.awesome, Format(1, null, video/hevc, -1, null, [6400, 900, -1.0], [-1, -1])
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:437)
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:929)
    at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:506)
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:566)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:518)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:301)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:193)
    at android.os.HandlerThread.run(HandlerThread.java:65)
    Caused by: android.media.MediaCodec$CodecException: start failed
    at android.media.MediaCodec.native_start(Native Method)
    at android.media.MediaCodec.start(MediaCodec.java:2068)
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:430)
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:929)
    at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:506)
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:566)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:518)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:301)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:193)
    at android.os.HandlerThread.run(HandlerThread.java:65)
    2020-03-05 18:27:06.761 13203-13831/com.TopPlay.Panoramic3D W/MediaCodec: stop: state is not INITIALIZED: mState=0, mReclaiming=0
    2020-03-05 18:27:06.767 13203-13823/com.TopPlay.Panoramic3D E/ExoPlayerImplInternal: Stop failed.
    java.lang.IllegalStateException
    at android.media.MediaCodec.native_stop(Native Method)
    at android.media.MediaCodec.stop(MediaCodec.java:2084)
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.releaseCodec(MediaCodecRenderer.java:527)
    at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.releaseCodec(MediaCodecVideoRenderer.java:477)
    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onDisabled(MediaCodecRenderer.java:483)
    at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onDisabled(MediaCodecVideoRenderer.java:365)
    at com.google.android.exoplayer2.BaseRenderer.disable(BaseRenderer.java:153)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.disableRenderer(ExoPlayerImplInternal.java:972)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.resetInternal(ExoPlayerImplInternal.java:768)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.stopInternal(ExoPlayerImplInternal.java:731)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:343)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:193)
    at android.os.HandlerThread.run(HandlerThread.java:65)

    Device:
    X96Air_P2, Droidlogic,
    OS:
    Android API28
    Dev:
    Unity 2019.2.21f1
    Media:
    Resolution:6400*900
    Codec:H265
    Frame Rate:25
     
  3. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Umm....I'm not sure :) Mouse control isn't really a part of AVPro Video :) We have a demo component called SphereDemo.cs which contains some mouse-look code for the sphere demo scene. Perhaps this is what you're using? If so, I'm not sure why the mouse control would stop working. You could follow through the code and see what's happening. The mouse control code isn't run when there is a XR device present. You could modify this logic if you want. It's only there for demo purposes.

    Hmm.....No we don't support dynamic device switching I'm afraid.... Unless you set the Audio Output option (in Platform Specific > Windows) to Unity, and then use the AudioOutput component to pipe the audio to Unity instead of the Default Speaker. Then it should play audio to whichever device Unity uses.

    I hope this information helps you.

    Thanks,
     
  4. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Hmm, did you try enabling the option in Player Settings to allow Write Access to External? I think that may be required...
     
  5. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Yup - looks like you're trying to use a H.264 video file....those will never contain alpha information, so the FFMPEG can't find any alpha channel.
    Try exporting your video using the Animation codec and then you should have Alpha channel and can use the script.

    Thanks,
     
  6. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    This is an out of memory error......Perhaps you're pushing the hardware too hard. Unity itself has memory overheads....
    Try a lower video resolution perhaps?
     
  7. shuchisinglainno

    shuchisinglainno

    Joined:
    Apr 5, 2019
    Posts:
    2
    hi can i play video from memory bytes by using this plugin
     
  8. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    That is not supported
     
  9. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    What about
    bool OpenVideoFromBuffer (byte[] buffer)
    ?
     
  10. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Ahhh true....I forgot about that :)
    That is supported, but only on Windows, and only when switching the Video API to DirectShow
     
    fffMalzbier likes this.
  11. Parallax

    Parallax

    Joined:
    May 23, 2015
    Posts:
    39
    Will this asset capture 360 stereo animations in Unity 2019.3 with DX12?
     
  12. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    AVPro Video is a video playback system - not for video capture.
    We have another plugin called AVPro Movie Capture which can do 360 stereo captures, but it's based on DX11 not DX12
     
  13. rbrodt

    rbrodt

    Joined:
    Aug 4, 2017
    Posts:
    4
    Problem description:

    Trying to migrate existing, working project from Unity 5.6.2, AVProVideo 1.6.12 to Unity 2019.x and AvProVideo 1.10.1...

    Debugging through ...\Assets\AVProVideo\Scripts\Internal\AndroidMediaPlayer.cs line 97:
    s_Interface = new AndroidJavaObject("com.RenderHeads.AVProVideo.AVProMobileVideo");
    fails with this exception:

    Code (csharp):
    1.  
    2. "java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file \"/data/app/com.bsphd.demo-J6_7YSxCVvqhcnvCXfIhZA==/base.apk\"],nativeLibraryDirectories=[/data/app/com.bsphd.demo-J6_7YSxCVvqhcnvCXfIhZA==/lib/arm64, /data/app/com.bsphd.demo-J6_7YSxCVvqhcnvCXfIhZA==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find \"libAVProLocal.so\"
    3. at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
    4. at java.lang.System.loadLibrary(System.java:1657)
    5. at com.RenderHeads.AVProVideo.AVProMobileVideo.<clinit>(AVProMobileVideo.java:488)
    6. at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    7. at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
    8. at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
    9. at android.os.Handler.dispatchMessage(Handler.java:102)
    10. at android.os.Looper.loop(Looper.java:164)
    11. at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
    12. at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0
    13. at UnityEngine.AndroidJNISafe.NewObject (System.IntPtr clazz, System.IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in <00000000000000000000000000000000>:0
    14. at UnityEngine.AndroidJavaObject._AndroidJavaObject (System.String className, System.Object[] args) [0x00000] in <00000000000000000000000000000000>:0
    15. at UnityEngine.AndroidJavaObject..ctor (System.String className, System.Object[] args) [0x00000] in <00000000000000000000000000000000>:0
    16. at RenderHeads.Media.AVProVideo.AndroidMediaPlayer.InitialisePlatform () [0x00000] in <00000000000000000000000000000000>:0
    17. at RenderHeads.Media.AVProVideo.MediaPlayer.CreatePlatformMediaPlayer () [0x00000] in <00000000000000000000000000000000>:0
    18. at RenderHeads.Media.AVProVideo.MediaPlayer.Initialise () [0x00000] in <00000000000000000000000000000000>:0
    19. at RenderHeads.Media.AVProVideo.MediaPlayer.Start () [0x00000] in <00000000000000000000000000000000>:0 "
    20.  

    $ apkanalyzer files list 'C:\Users\bbrodt\UnityProjects\Tokyo Olympics\Sample.apk'
    /
    /resources.arsc
    /res/
    /res/mipmap-mdpi-v4/
    /res/mipmap-mdpi-v4/ic_launcher_foreground.png
    /res/mipmap-mdpi-v4/ic_launcher_background.png
    /res/mipmap-mdpi-v4/app_icon.png
    /res/mipmap-anydpi-v26/
    /res/mipmap-anydpi-v26/app_icon_round.xml
    /res/mipmap-anydpi-v26/app_icon.xml
    /lib/
    /lib/arm64-v8a/
    /lib/arm64-v8a/libunity.so
    /lib/arm64-v8a/libtracking_module.so
    /lib/arm64-v8a/libtobii_stream_engine.so
    /lib/arm64-v8a/libtobii_hec.so
    /lib/arm64-v8a/libtobii_g2om.so
    /lib/arm64-v8a/libnative.so
    /lib/arm64-v8a/libmain.so
    /lib/arm64-v8a/libil2cpp.so
    /lib/arm64-v8a/libPvr_UnitySDK.so
    /com/
    /com/picovr/
    /com/picovr/picovrlib/
    /com/picovr/picovrlib/hummingbird/
    /com/picovr/picovrlib/hummingbird/HummingBirdAIDLService.aidl
    /classes5.dex
    /classes4.dex
    /classes3.dex
    /classes2.dex
    /classes.dex
    /assets/
    /assets/res.json
    /assets/bin/
    /assets/bin/Data/
    /assets/bin/Data/unity default resources
    /assets/bin/Data/data.unity3d
    /assets/bin/Data/boot.config
    /assets/bin/Data/Managed/
    /assets/bin/Data/Managed/etc/
    /assets/bin/Data/Managed/etc/mono/
    /assets/bin/Data/Managed/etc/mono/mconfig/
    /assets/bin/Data/Managed/etc/mono/mconfig/config.xml
    /assets/bin/Data/Managed/etc/mono/config
    /assets/bin/Data/Managed/etc/mono/browscap.ini
    /assets/bin/Data/Managed/etc/mono/4.5/
    /assets/bin/Data/Managed/etc/mono/4.5/web.config
    /assets/bin/Data/Managed/etc/mono/4.5/settings.map
    /assets/bin/Data/Managed/etc/mono/4.5/machine.config
    /assets/bin/Data/Managed/etc/mono/4.5/DefaultWsdlHelpGenerator.aspx
    /assets/bin/Data/Managed/etc/mono/4.5/Browsers/
    /assets/bin/Data/Managed/etc/mono/4.5/Browsers/Compat.browser
    /assets/bin/Data/Managed/etc/mono/4.0/
    /assets/bin/Data/Managed/etc/mono/4.0/web.config
    /assets/bin/Data/Managed/etc/mono/4.0/settings.map
    /assets/bin/Data/Managed/etc/mono/4.0/machine.config
    /assets/bin/Data/Managed/etc/mono/4.0/DefaultWsdlHelpGenerator.aspx
    /assets/bin/Data/Managed/etc/mono/4.0/Browsers/
    /assets/bin/Data/Managed/etc/mono/4.0/Browsers/Compat.browser
    /assets/bin/Data/Managed/etc/mono/2.0/
    /assets/bin/Data/Managed/etc/mono/2.0/web.config
    /assets/bin/Data/Managed/etc/mono/2.0/settings.map
    /assets/bin/Data/Managed/etc/mono/2.0/machine.config
    /assets/bin/Data/Managed/etc/mono/2.0/DefaultWsdlHelpGenerator.aspx
    /assets/bin/Data/Managed/etc/mono/2.0/Browsers/
    /assets/bin/Data/Managed/etc/mono/2.0/Browsers/Compat.browser
    /assets/bin/Data/Managed/Resources/
    /assets/bin/Data/Managed/Resources/mscorlib.dll-resources.dat
    /assets/bin/Data/Managed/Metadata/
    /assets/bin/Data/Managed/Metadata/global-metadata.dat
    /assets/LoadingRes/
    /assets/LoadingRes/config.txt
    /assets/AVProVideoSamples/
    /assets/AVProVideoSamples/SampleSubtitles.srt
    /assets/AVProVideoSamples/SampleCube.mp4
    /assets/AVProVideoSamples/Sample180.mp4
    /assets/AVProVideoSamples/FantasyStereoFB360.mkv
    /assets/AVProVideoSamples/BigBuckBunny_720p30.mp4
    /assets/AVProVideoSamples/BigBuckBunny_360p30.mp4
    /assets/AVProVideoSamples/BigBuckBunny_360p30.mp3
    /assets/AVProVideoSamples/AlphaTopBottom.mp4
    /assets/AVProVideoSamples/AlphaLeftRight.mp4
    /META-INF/
    /META-INF/MANIFEST.MF
    /META-INF/CERT.SF
    /META-INF/CERT.RSA
    /AndroidManifest.xml

    Device (which devices are you having the issue with - model, OS version number):

    Pico G2 4k VR headset, Android version 8.1.0

    Media (tell us about your videos - number of videos, resolution, codec, frame-rate, example URLs):



    System Information:

    AVPro Video: plugin v1.10.1t scripts v1.10.1
    Target Platform: Android
    Unity: v2019.3.0f6 WindowsEditor
    OS: Desktop - MS-7821 (MSI) - Windows 10 (10.0.0) 64bit - English
    CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz - 8 threads - 16332KB
    GPU: AMD Radeon HD 7800 Series - ATI - Direct3D 11.0 [level 11.1] - 2028KB - 16384


    UPDATE:
    Never mind, this fixed it:
    https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/81
     
    Last edited: Mar 9, 2020
    Ste-RH and NathanRH like this.
  14. TopPlay

    TopPlay

    Joined:
    Jul 8, 2014
    Posts:
    15
    Android Platform uses ExoPlayer func:MediaPlayer.Info.GetVideoFrameRate() always return -1;

    System Information:

    AVPro Video: plugin v1.10.1t scripts v1.10.1
    Target Platform: Android
    Unity: v2019.3.0f6 WindowsEditor
    OS: Desktop - MS-7821 (MSI) - Windows 10 (10.0.0) 64bit - English
     
  15. shoo

    shoo

    Joined:
    Nov 19, 2012
    Posts:
    67
    I am trying to apply video to Skybox/Panoramic material, but it goes flipped vertically in Windows Editor(on Android it is fine). I use ApplyToMaterial and negative Y scale, but it doesn't help. Is it possible to apply AVPro playback to skybox?
     
  16. UnivrseCore

    UnivrseCore

    Joined:
    Jul 14, 2013
    Posts:
    12
    I am trying to render a transparent video in a camera space canvas. But all i am getting is a pink screen.
    Also the example scene inside the package that shows a video in UGui does not work (pink screen)
    I am using Unity 2019.3.3f1 with the lastest version of the HDRP.
    As far as I know this has to do with the shader ("AVProVideo/UI/Transparent Packed").
    But I have little to no experience with shaders so I need some help getting it to work with the HDRP

    If any more info is required let me know so I can provide that.
     
  17. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Hi, I tried to replicate your issue but couldn't.
    So I was using Unity 2019.3.4f1, and I imported AVPro Video and then added HDRP via the package manager. I think created a HDRP pipeline asset and went to Player Settings > Graphics to set the HDRP pipeline asset as the Scriptable Render Pipeline. I then tested the demo scene 04 UGUI and it worked fine. I then changed the video to one of the sample ones with packed alpha and changed the Transparency Packing mode to Top-Bottom - played the scene and again it worked fine.

    So....I'm not sure why it's not working for you..

    I was able to get pink if I selected Stereo Packing instead of Transparency Packing, and also ticked the option Debug Eye Tint.

    Thanks,
     
  18. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Yes....the Unity Skybox shaders aren't compatible with AVPro Video. I've attached a shader here that you can try instead. Thanks,
     

    Attached Files:

    zyzyx likes this.
  19. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,806
    Hi All,

    AVPro Video version 1.10.2 has just been released!

    You can find the updated version on the Asset Store and the free trial version on our website.

    Changes include:

    Android
    • Fixed issue where HTTP header fields sometimes wouldn’t be applied when using ExoPlayer
    • Changed behaviour of setting a very low/negative playback rate to internally pause playback. Playback is resumed when rate is set to a value >= 0.01
    • Added support to get the video's current bitrate
    Windows
    • Fixed posterized/crushed colours when using Linear colour-space with DirectShow in Unity 2019.2 and above due incorrect usage of internal sRGB textures
    • Fixed DirectShow issue that caused some videos to have pink tint due to incorrect P010 conversion shader
    macOS / iOS / tvOS
    • Fixed issue where some HLS streams wouldn’t report being finished at the end of the stream when playback reaches end of an HLS stream
    iOS
    • Added option to auto resume playback should the audio session route change, for instance when unplugging headphones
    • Fixed a texture creation error when using versions below Unity 5.6 with the YCbCr option
    UWP
    • Added ARM 64-bit support (for Hololens 2)
    • Windows / UWP / Windows Phone
    • Windows plugins now compiled with VS2017 (previous was VS2015)
    General
    • Added new SkyBox shaders and demo scene
    • Added new AudioChannelMixer component to allow audio volume to be controlled per channel when playing back via Unity (currently Windows only)
    • Added support for stereo rendering to CubemapCube component
    • Audio mute is now toggled via the global Mute Audio editor option
    • Fixed deprecation warnings for Unity 2019.3
    • Fixed many typos and spelling mistakes

    Thanks to everyone that reported bugs that were fixed in this release :)

    Please report any issues here on the forum, or preferably to our Github Issue tracker

    Thanks,
     
  20. tufeixp

    tufeixp

    Joined:
    Sep 6, 2015
    Posts:
    22
    Good to see those bugs are fixed! :)
     
    NathanRH likes this.
  21. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Thanks again for reporting them and giving us such detailed feedback :)
     
  22. UnivrseCore

    UnivrseCore

    Joined:
    Jul 14, 2013
    Posts:
    12
    Yeah you were right. I create a new empty project imported the HDRP and Avpro and it worked fine. So I check what was different between that project and mine and I completely forgot we are using raytracing in ours (stupid me). We followed this setup from unity. See link: https://docs.unity3d.com/Packages/c...n@7.1/manual/Ray-Tracing-Getting-Started.html

    Could this be the reason that AVpro is not working? Is it possible to get AVPro working in this situation?

    Thanks
     
  23. UnivrseCore

    UnivrseCore

    Joined:
    Jul 14, 2013
    Posts:
    12
    After doing some extra testing I can confirm that if you set the HDRP to use raytracing AVPRO stops working.
    I have done this by going to window -> render pipline -> HD Render pipline Wizard -> HDRP + DXR -> fix all

    When it completes Avrpo will only display pink screen.
    Is it possible to use AVPro with these settings? Could we modify some settings to get it to work with ray tracing?
     
  24. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    It's because of the DirectX 12 requirement. AVPro Video doesn't yet support DX12... This is something we will look at for the future. Thanks,
     
  25. UnivrseCore

    UnivrseCore

    Joined:
    Jul 14, 2013
    Posts:
    12
    Ok thanks.
    When can we expect this to be added? Is a matter of weeks, months, years or 10s of years ;)
     
  26. Anh-Pham

    Anh-Pham

    Joined:
    Feb 7, 2012
    Posts:
    35
    @AndrewRH Hi, we are using the last version of AVPro Video(full version), we need to add cookie for streaming video from amazon cloud, these data required:
    - CloudFront-Policy
    - CloudFront-Key-Pair-Id
    - CloudFront-Signature

    On platform specific, I tried to set http header (json) (on macOS, iOS, Android), for example,
    {"cookie":{"CloudFront-Policy":"xxx","CloudFront-Key-Pair-Id":"yyy","CloudFront-Signature":"zzz"}}

    But Unity Editor crashes when I click Play button. Please help!
     
  27. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Hi, we will continue this thread on GitHub:
    https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/56

    Thanks,
     
  28. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    weeks or months :) we're looking into it, but there may be some roadblocks...
     
  29. UnivrseCore

    UnivrseCore

    Joined:
    Jul 14, 2013
    Posts:
    12
    Thank you for all the information and help!
     
  30. A4VR

    A4VR

    Joined:
    Dec 19, 2016
    Posts:
    8
    Hi everyone,

    Is there any solution for playback 8k or 12k tiled-based adaptive 360 degree Videos on Unity (Android, Oculus Quest, Pico 4K, Skyworth or others) using AVProVideo? Thats like the killer feature (especially for performance increase) for 360° playback. There is the Mpeg OMAF standard for example and others from Facebook, Tiledmedia, Visit, Insta360 and more but nothing in a availability or price range for normal people to use. It will be so important going forward with higher quality video inside Unity and I would pay 1000 Dollar or more for such a solution.

    Many Greetings Michael
     
  31. A4VR

    A4VR

    Joined:
    Dec 19, 2016
    Posts:
    8
    And HAP is nice but still not perfect in terms of performance for 360 on PC systems as well because of the large "unused" rendered parts not visible (behind the viewers head for example).
     
  32. A4VR

    A4VR

    Joined:
    Dec 19, 2016
    Posts:
    8
  33. Monil

    Monil

    Joined:
    Apr 24, 2012
    Posts:
    103
    Hi,

    I just downloaded the latest version 1.10.2 - 20 March 2020, but I stopped at the first scene (01_Demo_BackgroundShader) because it doesn't work, I also created a new project, but the problem remains, unity 2019.3.7f1 version, I also tried to modify the shader, but the video is always rendered after the opaque objects.

    AVProBackground.jpg
     
    Last edited: Mar 30, 2020
  34. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Thanks for reporting this. We'll take a look. That specific scene uses a special shader to render to the background..It's possible that Unity has changed something in the way shaders/rendering works recently.
    I will let you know what we find.
     
  35. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Very nice!!!

    I'm afraid we don't support anything similar...We'd love to but we just don't have enough people and time to look into this....We're hiring video software developers if you know anyone :)
     
  36. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Hi,

    We tried in 2019.3.7f1 but we can't replicate the issue you're seeing.
    I wonder if you have some package installed that's interferring? Are you using HDRP or another scriptable rendering pipeline? I see mention of Aura in your screenshot - perhaps that's causing a problem?
    Or perhaps you have some VR / Stereo rendering options enabled?

    EDIT: actually I was able to replicate it by changing the rendering mode from Forward to Deferred. This is because Deferred mode doesn't support the background shader type we're using in that demo scene. We should probably upgrade that demo to use a skybox instead of regular geometry. In the meantime, the same thing can be achieved by using uGUI or the skybox shaders in the demo scene 15_Demo_Skybox.

    Hope that helps,

    Thanks,
     
  37. Monil

    Monil

    Joined:
    Apr 24, 2012
    Posts:
    103
    Hi,

    I tried forward and it works, but my project is deferred and after trying all the shaders I was unable to see opaque objects in front of background video in full screen. It's not a big deal considering that at the moment I don't plan on using this feature.

    Thanks anyway
     
  38. A4VR

    A4VR

    Joined:
    Dec 19, 2016
    Posts:
    8
    Totally understand that, just wanted to point out that any view dependent video rendering solution will be one of the most important features already for any 360 VR video content productions and getting more so with higher resolution HMDs coming more up faster as we speak :) Unfortunately I don't have an expert at hand for you at this time ;) But I will tell you if I find one that will fit your needs :)
     
    NathanRH likes this.
  39. lightsailvr

    lightsailvr

    Joined:
    Oct 25, 2016
    Posts:
    7
    I was wondering if there is a way to change the Video and Stereo mapping at runtime? Say, for example I don't know the mapping of what kind of video I am loading, but I can provide the user an interface to plug in the right settings. However, it doesn't seem to be able to do this while the video is open.
     
  40. Elliott-Mitchell

    Elliott-Mitchell

    Joined:
    Oct 8, 2015
    Posts:
    88
    Any movement on AVPro playables for Timeline?
     
  41. TealRB

    TealRB

    Joined:
    Oct 16, 2019
    Posts:
    4
    I downloaded the demo version and imported it into my project. I'm running on a mac laptop unity version 2019.2.12. When I run any of the demo scenes the demo videos studders and shows only the first couple of frames. The video of a fat bunny getting hit by balls plays fine through quick time player.

    Is this a known problem?

    [Edit] After reading through the FAQ it looks like it must be related to Metal.

    BTW, your documentation claims that version 1.10.1 came out in October 2019.
     
    Last edited: Apr 1, 2020
  42. PHORIA-Developers

    PHORIA-Developers

    Joined:
    Jul 7, 2017
    Posts:
    1
    Hi all can someone confirm I'm on the latest version? screen cap below.
    Updated and imported from the asset store but I'm suspicious of the diff between version and scripts.
    upload_2020-4-1_14-55-26.png

    It's the iOS version and I'm updating to try and solve my YpCbCr issue for my Cardboard 360 video app where it shows the red channel only, see below.
    upload_2020-4-1_15-3-16.png
     
  43. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Hi,

    Yes that's not correct. The update didn't work because Unity had some files locked. Try again by closing Unity, opening Unity, and immedaitely importing the plugin. The version numbers should then match :) Hope that helps!

    As for the YCbCr red issue...are you using one of our shaders? Let us know if you're still having issues after the update.

    Thanks,
     
  44. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Yes, thanks for reading the FAQ :) Yes that is only an issue with Metal, and only with the TRIAL version, and also only on certain machines....

    Yes I believe the documentation is correct 1.10.1 did come out in October 2019...Then the latest version 1.10.2 came out 20 March 2020.

    Thanks,
     
    TealRB likes this.
  45. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Yes you can do that. Please see the example in ChangeStereoMode.cs which is in the Demos/Scripts/Scriptlets folder
     
  46. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Thanks for pointing out the issue anyway. We've created a ticket for it so we can resolve it:
    https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/310
     
  47. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    No...We haven't made any progress on this yet.
    We have an issue thread about it here:
    https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/132

    Perhaps you could add some details of how you would expect this feature to work? This would definitely help us to create an implementation.

    Thanks,
     
  48. bz_apps

    bz_apps

    Joined:
    Aug 19, 2014
    Posts:
    72
    Problem description:

    Im getting an error in logcat and the videos are not loading.

    1st:
    2020/04/01 20:33:38.014 26548 26573 Error Unity AndroidJavaException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/uk.co.bluezoo.numberblocks.watch-_pta7nNbFUOGCpGFEmYdvQ==/base.apk"],nativeLibraryDirectories=[/data/app/uk.co.bluezoo.numberblocks.watch-_pta7nNbFUOGCpGFEmYdvQ==/lib/arm64, /data/app/uk.co.bluezoo.numberblocks.watch-_pta7nNbFUOGCpGFEmYdvQ==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]] couldn't find "libAVProLocal.so"

    2nd:
    2020/04/01 20:35:31.328 26548 26573 Error Unity AndroidJavaException: java.lang.NoClassDefFoundError: com.RenderHeads.AVProVideo.AVProMobileVideo

    caused by:
    2020/04/01 20:35:31.328 26548 26573 Error Unity Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/uk.co.bluezoo.numberblocks.watch-_pta7nNbFUOGCpGFEmYdvQ==/base.apk"],nativeLibraryDirectories=[/data/app/uk.co.bluezoo.numberblocks.watch-_pta7nNbFUOGCpGFEmYdvQ==/lib/arm64, /data/app/uk.co.bluezoo.numberblocks.watch-_pta7nNbFUOGCpGFEmYdvQ==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]] couldn't find "libAVProLocal.so"


    Device (which devices are you having the issue with - model, OS version number):

    pixel 3g

    Media (tell us about your videos - number of videos, resolution, codec, frame-rate, example URLs):

    HLS and Mp4

    System Information:

    AVPro Video: plugin v1.10.2 scripts v1.10.2
    Target Platform: Android
    Unity: v2019.3.7f1 OSXEditor
    OS: Desktop - Macmini7,1 - Mac OS X 10.15.4 - English
    CPU: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz - 4 threads - 8192KB
    GPU: Intel Iris Graphics - Apple - Metal - 1536KB - 16384
     
  49. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    447
    Hmm I think perhaps the ARM64 plugin isn't being recognised for some reason. Try in Unity to go to the folder
    Plugins/Android/libs/arm64-v8a and click on each file in that folder. It should show the Plugin Inspector, and you should make sure that Android is the assigned platform, and ARM64 is the assigned architecture.

    I hope that solves your issue?
     
    bz_apps likes this.
  50. bz_apps

    bz_apps

    Joined:
    Aug 19, 2014
    Posts:
    72

    Brilliant, that fixed it!