mrmaffen / vlc-android-sdk

VLC Android SDK pushed to Maven Central. Primarily used in project tomahawk-android.
792 stars 244 forks source link

freeze app on 6.0 and 7.1 #105

Open johnraul opened 6 years ago

johnraul commented 6 years ago

hi i have implemented with compile 'de.mrmaffen:libvlc-android:2.1.12@aar and compile 'de.mrmaffen:libvlc-android:2.0.6 as well but work fine, issue appear while changing from video one to other, (source of video is slow while loading) , then try to video one it get freeze for while till 2 video buffer not complete load and played.

video source i using all is hls.

using aml s905x stb

also tried with them //options.add("--aout=opensles"); options.add("--audio-time-stretch"); // time stretching options.add("-vvv"); // verbosity options.add("--no-drop-late-frames"); options.add("--no-skip-frames"); options.add("--clock-jitter=0"); options.add("--clock-synchro=0"); options.add("--network-caching=2000"); options.add("--live-caching=1000"); options.add("--video-filter=deinterlace"); //options.add("'--volume=80"); //options.add("--nooverlay"); //options.add("--brightness=2"); //options.add("--sout-deinterlace-mode=yadif"); //options.add("--avcodec-fast"); have not helped me out.

D/VLC: [d5f5df68/3937] core vout display: using vout display module "android_window" 11-11 11:21:17.221 11747-14647 D/VLC: [d5f5df68/3937] android_window vout display: PoolAlloc: request 26 frames 11-11 11:21:17.221 11747-14647 D/VLC: [d5f5df68/3937] android_window vout display: PoolAlloc: got 31 frames 11-11 11:21:17.221 11747-14647 D/VLC: [d61b7828/3937] core video output: original format sz 704x396, of (0,0), vsz 704x396, 4cc ANOP, sar 1:1, msk r0x0 g0x0 b0x0 11-11 11:21:17.222 11747-14644 D/VLC: [eb9b9ab8/3934] core generic: reusing provided vout 11-11 11:21:17.223 11747-14647 D/VLC: [d61b7828/3937] core video output: Adding 'deinterlace' as static 11-11 11:21:17.223 11747-14647 D/VLC: [d61c85a8/3937] core filter: looking for video filter2 module matching "deinterlace": 38 candidates 11-11 11:21:17.223 11747-14647 E/VLC: [d61c85a8/3937] deinterlace filter: unsupported chroma ANOP 11-11 11:21:17.223 11747-14647 D/VLC: [d61c85a8/3937] core filter: no video filter2 modules matched 11-11 11:21:17.223 11747-14647 E/VLC: [d61b7828/3937] core video output: Failed to create video filter2 'deinterlace' 11-11 11:21:17.223 11747-14647 E/VLC: [d61b7828/3937] core video output: Failed to add filter 'deinterlace' 11-11 11:21:17.223 11747-14644 D/VLC: [d61c5128/3934] core decoder: Received first picture 11-11 11:21:17.224 11747-14647 D/VLC: [d61b7828/3937] core video output: Detected interlaced video 11-11 11:21:17.224 11747-14633 D/VLC: [d61b2658/3929] core input: Decoder wait done in 235 ms 11-11 11:21:17.224 11747-14647 D/VLC: [d61b7828/3937] core video output: deinterlace 1, mode blend, is_needed 1 11-11 11:21:17.224 11747-14647 E/VLC: [d5f5df68/3937] core vout display: Failed to change zoom 11-11 11:21:17.224 11747-14647 D/VLC: [d5f5df68/3937] android_window vout display: change source crop/aspect 11-11 11:21:17.225 11747-14641 W/VLC: [d5df7ca8/3931] core audio output: playback too early (-66118): down-sampling 11-11 11:21:17.283 11747-14636 D/VLC: [d6210428/392c] adaptive stream: Retrieving http://127.0.0.1:10080/Apple/-705056768/2.ts @0 11-11 11:21:17.283 11747-14636 D/VLC: [d6210428/392c] core stream: net: connecting to 127.0.0.1 port 10080 11-11 11:21:17.284 11747-14636 D/VLC: [d6210428/392c] core stream: connection succeeded (socket = 74) 11-11 11:21:18.238 11747-14647 D/VLC: [d5f5df68/3937] core vout display: auto hiding mouse cursor 11-11 11:21:19.304 11747-14633 D/VLC: [d61c4328/3929] core decoder: killing decoder fourcc mp4a', 0 PES in FIFO 11-11 11:21:19.304 11747-14633 D/VLC: [d61c4328/3929] core decoder: removing module "avcodec" 11-11 11:21:19.304 11747-14633 D/VLC: [d61c4328/3929] avcodec decoder: ffmpeg codec (aac) stopped 11-11 11:21:19.310 11747-14633 D/VLC: [dd035728/3929] core audio resampler: removing module "ugly" 11-11 11:21:19.310 11747-14633 D/VLC: [dd035028/3929] core audio filter: removing module "scaletempo" 11-11 11:21:19.310 11747-14633 D/VLC: [dd0353a8/3929] core audio converter: removing module "audio_format" 11-11 11:21:19.313 11747-14633 D/VLC: [ef686b78/3929] core volume: removing module "integer_mixer" 11-11 11:21:19.313 11747-14633 D/VLC: [eb9b9ab8/3929] core generic: keeping audio output 11-11 11:21:19.313 11747-14633 D/VLC: [d61c46a8/3929] core packetizer: removing module "mpeg4audio" 11-11 11:21:19.318 11747-14633 D/VLC: [d61c5128/3929] core decoder: killing decoder fourcch264', 0 PES in FIFO 11-11 11:21:19.318 11747-14633 D/VLC: [d61c5128/3929] core decoder: removing module "mediacodec" 11-11 11:21:19.320 11747-14644 E/VLC: [d61c5128/3934] mediacodec decoder: AMediaCodec.dequeueOutputBuffer failed 11-11 11:21:19.374 11747-14644 W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[51,tid=14644,Native,Thread*=0xdb9cde00,peer=0x12c500a0,"VlcObject"] 11-11 11:21:19.471 11747-14633 D/VLC: [d61c5128/3929] mediacodec decoder: MediaCodec via NDK closed 11-11 11:21:19.472 11747-14633 D/VLC: [eb9b9ab8/3929] core generic: saving a free vout 11-11 11:21:19.472 11747-14633 D/VLC: [eb9b9ab8/3929] core generic: reusing provided vout 11-11 11:21:19.472 11747-14647 D/VLC: [d61b7828/3937] core video output: Adding 'deinterlace' as static 11-11 11:21:19.472 11747-14633 D/VLC: [d61c54a8/3929] core packetizer: removing module "h264" 11-11 11:21:19.472 11747-14633 D/VLC: [d62104a8/3929] core demux: removing module "adaptive" 11-11 11:21:19.472 11747-14647 D/VLC: [d61c8928/3937] core filter: looking for video filter2 module matching "deinterlace": 38 candidates 11-11 11:21:19.472 11747-14647 E/VLC: [d61c8928/3937] deinterlace filter: unsupported chroma ANOP 11-11 11:21:19.472 11747-14647 D/VLC: [d61c8928/3937] core filter: no video filter2 modules matched 11-11 11:21:19.472 11747-14647 E/VLC: [d61b7828/3937] core video output: Failed to create video filter2 'deinterlace' 11-11 11:21:19.472 11747-14647 E/VLC: [d61b7828/3937] core video output: Failed to add filter 'deinterlace' 11-11 11:21:19.503 11747-14647 E/VLC: [d5f5df68/3937] core vout display: Failed to change zoom 11-11 11:21:19.503 11747-14647 D/VLC: [d5f5df68/3937] android_window vout display: change source crop/aspect