Skip to content

Can not use --video-filter=rotate on Android

I'm using Android VLC library 3.3.13 to for my app to play videos. I must use SurfaceView in my app and the app cannot change its orientation. So I tried to add the above option to rotate video but the video can't be rotated.

args.add("--video-filter=rotate")
args.add("--rotate-angle=90")
mLibVLC = LibVLC(applicationContext, args)

Error log:

E/VLC: [00000078143efc90/6b88] libvlc filter: Failed to create video converter
    [00000078143f0010/6b88] libvlc filter: Too high level of recursion (3)
    [00000078143efc90/6b88] libvlc filter: Failed to create video converter
    [00000078143f0010/6b88] libvlc filter: Too high level of recursion (3)
    [00000078143efc90/6b88] libvlc filter: Failed to create video converter
    [00000078143f0010/6b88] libvlc filter: Too high level of recursion (3)
    [00000078143efc90/6b88] libvlc filter: Failed to create video converter
    [00000078143f0010/6b88] libvlc filter: Too high level of recursion (3)
    [00000078143efc90/6b88] libvlc filter: Failed to create video converter
    [00000078143f0010/6b88] libvlc filter: Too high level of recursion (3)
    [00000078143efc90/6b88] libvlc filter: Failed to create video converter
    [00000078143ef910/6b88] libvlc filter: Failed to create video converter
    [000000781427d890/6b88] libvlc video output: Failed to create video filter 'rotate'
    [000000781427d890/6b88] libvlc video output: Failed to add filter 'rotate'
Edited by nts0311