Odroid C2 Video player suddenly stoped when playing another file simultaneously

Post Reply
pcmgogo
Posts: 15
Joined: Wed Dec 20, 2017 7:36 pm
languages_spoken: english
ODROIDs: C2 C0
Has thanked: 0
Been thanked: 0
Contact:

Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by pcmgogo » Tue Sep 03, 2019 4:32 pm

Dear All,
I developed an application and we have been using more than 5 years. I downloaded fresh Odroid C2 android source code to a new computer and built again. Now I have a problem, my old build is working successfully with one Video and one Audio file simultaneously. But the new one stopped Video when trying to play audio. I found a log about that issue in Logcat log.
I tried both Lolipop and Marshmallow. Both same.

......
09-03 07:23:51.547 4721-4812/com.android.systemui I/vol.Events: writeEvent level_changed STREAM_SYSTEM 7
09-03 07:23:51.548 4721-4812/com.android.systemui I/vol.Events: writeEvent level_changed STREAM_RING 7
09-03 07:23:51.550 4329-4329/? V/AmlogicMediaFactory: Create Amsuperplayer stub
09-03 07:23:51.550 4329-4329/? I/AmSuperPlayer: media.amplayer.startmode is enabled
09-03 07:23:51.551 4329-5837/? I/AmlogicPlayer: media.amplayer.stopbuftime is not set used def=0.000000
09-03 07:23:51.551 4329-5837/? I/AmlogicPlayer: media.amplayer.streamtimeadd is not set used def=0.000000
09-03 07:23:51.551 4329-5837/? I/AmlogicPlayer: media.amplayer.droptinyseek.ms is not set used def=-1.000000
09-03 07:23:51.551 4329-5837/? I/AmlogicPlayer: media.amplayer.delaybuffering.s is not set used def=0.000000
09-03 07:23:51.551 4329-5837/? I/AmlogicPlayer: found 1 not exit player threads,try exit it now
09-03 07:23:51.551 4329-5837/? I/amplayer: [player_pause:enter]pid=3
09-03 07:23:51.551 4329-5837/? I/amplayer: [player_send_message]cmd = PLAYER_PAUSE
09-03 07:23:51.551 4329-5837/? I/amplayer: [player_pause:exit]pid=3 ret=0
09-03 07:23:51.551 4329-5837/? I/amplayer: [player_stop:enter]pid=3
09-03 07:23:51.551 4329-5837/? I/amplayer: [player_stop]player_status=20001
09-03 07:23:51.551 4329-5837/? I/amplayer: [get_message:147]num=0 in_idx=2 out_idx=2 cmd=80
......

What is the problem in new Android sources?

pcmgogo
Posts: 15
Joined: Wed Dec 20, 2017 7:36 pm
languages_spoken: english
ODROIDs: C2 C0
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by pcmgogo » Tue Sep 03, 2019 5:15 pm

I checked detailed log for differences

Old Build (Working properly)
....
09-03 10:51:15.809 2783-6037/? I/AmlogicPlayer: found 1 not exit player threads,try exit it now
09-03 10:51:15.809 2783-6037/? V/AmlogicPlayer: initCheck
09-03 10:51:15.809 2783-6037/? V/AmSuperPlayer: [CreatePlayer::831]
09-03 10:51:15.809 2783-6037/? V/AmlogicPlayer: setDataSource,fd=30,offset=1417056,len=34271,not finished
.....

New Build
.....
09-03 08:06:46.914 2841-4729/? I/AmlogicPlayer: found 1 not exit player threads,try exit it now
09-03 08:06:46.914 2841-4729/? V/AmlogicPlayer: pause
09-03 08:06:46.914 2841-4729/? I/amplayer: [player_pause:enter]pid=1
09-03 08:06:46.914 2841-4729/? I/amplayer: [player_send_message]cmd = PLAYER_PAUSE
09-03 08:06:46.914 2841-4729/? I/amplayer: [player_pause:exit]pid=1 ret=0
09-03 08:06:46.914 2841-4729/? V/AmlogicPlayer: set_cpu_freq_scaling_based_auido failed
09-03 08:06:46.914 2841-4729/? V/AmlogicPlayer: release
09-03 08:06:46.914 2841-4729/? I/amplayer: [player_stop:enter]pid=1
09-03 08:06:46.914 2841-4729/? I/amplayer: [player_stop]player_status=20001
09-03 08:06:46.914 2841-4729/? I/amplayer: [get_message:147]num=0 in_idx=2 out_idx=2 cmd=80
09-03 08:06:46.916 2841-4729/? I/amplayer: [player_thread_wait_exit:70]pid=[1] thead_id=4111082624
09-03 08:06:46.916 2841-4718/? I/amplayer: [get_message:147]num=0 in_idx=3 out_idx=3 cmd=8
09-03 08:06:46.916 2841-4718/? I/amplayer: pid[1]:: [check_flag:614]cmd=8 set_mode=0 info=0 param=0 fparam=0.000000
09-03 08:06:46.916 2841-4718/? I/amplayer: [check_flag:615]endflag 0
09-03 08:06:46.917 2845-4349/? I/SystemControl: writeSysfs [ /sys/class/video/blackout_policy ] [ 1 ] from pid=2841, uid=1013, process name=/system/bin/mediaserver
09-03 08:06:46.917 2841-4718/? I/amplayer: pid[1]::loop=0 search=0 ff=0 fb=0 reset=0 step=0 switch_ts_program_flag:0
09-03 08:06:46.917 2845-2943/? I/SystemControl: writeSysfs [ /sys/class/tsync/vpause_flag ] [ 0 ] from pid=2841, uid=1013, process name=/system/bin/mediaserver
09-03 08:06:46.917 2845-2845/? I/SystemControl: writeSysfs [ /sys/class/tv/policy_fr_auto_switch ] [ 0 ] from pid=2841, uid=1013, process name=/system/bin/mediaserver
09-03 08:06:46.918 2841-4718/? I/amplayer: pid[1]player_thread release0 begin...(sta:0x30003)
09-03 08:06:46.918 2841-4718/? I/amplayer: **[update_state]pid:1 status=STOPED(last:PLAYING) err=0x0 curtime=6 (ms:6057) fulltime=19 lsttime=5
09-03 08:06:46.918 2841-4718/? I/amplayer: **[update_state]abuflevel=0.13493538 vbublevel=0.53059804 abufrp=6527b840 vbufrp=618fce00 read_end=1
09-03 08:06:46.918 2841-4718/? V/AmlogicPlayer: update_process pid=1, current=6,status=[STOPED]
09-03 08:06:46.918 2841-4718/? V/AmlogicPlayer: Player status:STOPED, playback complete
09-03 08:06:46.918 2841-4718/? V/AmlogicPlayer: PLAYER_PLAYEND curtime:6057,
09-03 08:06:46.918 2841-4722/? I/amadec: Receive STOP Command!
09-03 08:06:46.918 2841-4722/? I/amadec: [stop_adec 807]audec->state/5
09-03 08:06:46.918 2841-4722/? I/amadec: android out mute
09-03 08:06:46.918 2841-4722/? I/amadec: android out stop
09-03 08:06:46.918 2841-4722/? I/AudioTrack: ~AudioTrack, releasing session id from 2841 on behalf of 2841 mState/1
09-03 08:06:47.016 2841-4725/? I/amadec: [audio_decode_loop]exit adec_armdec_loop Thread finished!
09-03 08:06:47.016 2841-4722/? I/amadec: [stop_decode_thread]decode thread exit success
09-03 08:06:47.018 2841-4724/? I/amadec: [audio_getpackage_loop]Exit adec_getpackage_loop Thread finished!
09-03 08:06:47.018 2841-4722/? I/amadec: [stop_decode_thread]get package thread exit success
09-03 08:06:47.018 2841-4722/? I/amadec: audio_dec_release done
09-03 08:06:47.018 2841-4722/? I/amadec: [OutBufferRelease 469] audec->g_bst/0xf506f0a0
09-03 08:06:47.018 2845-4349/? I/SystemControl: writeSysfs [ /sys/class/tsync/firstapts ] [ 0x0 ] from pid=2841, uid=1013, process name=/system/bin/mediaserver
09-03 08:06:47.019 2841-4722/? I/amadec: Receive RELEASE Command!
09-03 08:06:47.019 2841-4722/? I/amadec: Exit Message Loop Thread!
09-03 08:06:47.019 2841-4718/? I/amcodec: [codec_close]audio stop OK!
09-03 08:06:47.019 2841-4718/? I/amcodec: codec_close,untimed_text=1
09-03 08:06:47.020 2841-4718/? I/amcodec: codec_close,untimed_text=1
09-03 08:06:47.063 2841-4718/? I/amffmpeg: av_close_input_file--4405
09-03 08:06:47.063 2841-4718/? I/amffmpeg: av_close_input_file--4408
09-03 08:06:47.063 2841-4718/? I/amffmpeg: [av_close_input_stream]format=mov,mp4,m4a,3gp,3g2,mj2
09-03 08:06:47.063 2841-4718/? I/amffmpeg: format mov,mp4,m4a,3gp,3g2,mj2 read_close
09-03 08:06:47.063 2841-4718/? I/amplayer: **[update_state]pid:1 status=EXIT(last:STOPED) err=0x0 curtime=6 (ms:6057) fulltime=19 lsttime=5
09-03 08:06:47.064 2841-4718/? I/amplayer: **[update_state]abuflevel=0.13493538 vbublevel=0.53059804 abufrp=6527b840 vbufrp=618fce00 read_end=1
09-03 08:06:47.064 2841-4718/? V/AmlogicPlayer: update_process pid=1, current=6,status=[EXIT]
09-03 08:06:47.064 2841-4718/? V/AmlogicPlayer: Player status:EXIT, playback exit
09-03 08:06:47.064 2841-4718/? I/amplayer: pid[1]::stop play, exit player thead!(sta:0x30004)
09-03 08:06:47.065 2841-4729/? I/amplayer: [player_thread_wait_exit:76]thead_id=4111082624 returning
09-03 08:06:47.065 2841-4729/? I/amplayer: [player_stop:247]wait player_theadpid[1] r = 0
09-03 08:06:47.065 2841-4729/? E/amthreadpool: 4111082624 pool data not found!!!
09-03 08:06:47.065 2841-4729/? I/amplayer: [player_stop:exit]pid=1
09-03 08:06:47.065 2841-4729/? I/amplayer: [tcppool_refresh_link_and_check]pid=1
09-03 08:06:47.065 2841-4729/? I/amplayer: [player_exit:enter]pid=1
09-03 08:06:47.065 2841-4729/? I/amplayer: [player_exit]player_state=0x30004
09-03 08:06:47.065 2841-4729/? I/amplayer: [player_thread_wait_exit:70]pid=[1] thead_id=4111082624
09-03 08:06:47.065 2841-4729/? I/amplayer: [player_thread_wait_exit:76]thead_id=4111082624 returning
09-03 08:06:47.065 2841-4729/? I/amplayer: [player_exit]player thread already exit: 3
09-03 08:06:47.065 2841-4729/? E/amthreadpool: 4111082624 pool data not found!!!
09-03 08:06:47.065 2841-4729/? I/amplayer: [player_release_pid:77]release pid=1
09-03 08:06:47.065 2841-4729/? I/amplayer: [player_exit:exit]pid=1
09-03 08:06:47.065 2841-4729/? I/AmlogicPlayer: media.amplayer.displast_frame is not setting,use default false
09-03 08:06:47.065 2841-4729/? V/AmlogicPlayer: VideoViewClose=-33554433
09-03 08:06:47.065 2841-4729/? V/AmlogicPlayer: [release::2884]
09-03 08:06:47.065 2841-4729/? I/AmlogicPlayer: media.amplayer.osd2xenable is not setting,use default false
09-03 08:06:47.066 2845-2943/? I/SystemControl: writeSysfs [ /sys/class/video/screen_mode ] [ 0 ] from pid=2841, uid=1013, process name=/system/bin/mediaserver
09-03 08:06:47.066 2841-4729/? I/AmlogicPlayerRender: ~AmlogicPlayerRender
09-03 08:06:47.066 2841-4729/? V/AmlogicPlayerDataSouceProtocol: L59
09-03 08:06:47.066 2841-4729/? V/AmlogicPlayer: initCheck
09-03 08:06:47.066 2841-4729/? V/AmSuperPlayer: [CreatePlayer::836]
09-03 08:06:47.066 2841-4729/? V/AmlogicPlayer: setDataSource,fd=31,offset=1417056,len=34271,not finished
....

User avatar
odroid
Site Admin
Posts: 32104
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 115 times
Been thanked: 287 times
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by odroid » Tue Sep 03, 2019 5:18 pm

Can you check the Android build version information more precisely?
https://wiki.odroid.com/odroid-c2/os_im ... id/android

pcmgogo
Posts: 15
Joined: Wed Dec 20, 2017 7:36 pm
languages_spoken: english
ODROIDs: C2 C0
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by pcmgogo » Tue Sep 03, 2019 9:37 pm

odroid wrote:
Tue Sep 03, 2019 5:18 pm
Can you check the Android build version information more precisely?
https://wiki.odroid.com/odroid-c2/os_im ... id/android
Thanks for your suggestion. My downloads and results below,
Same, stops video - selfinstall-odroidc2-eng-s905_5.1.1_master-313-v3.7
Same, stops video - selfinstall-odroidc2-eng-s905_5.1.1_master-311-v3.6
Correct, video and audio playing simultaneously without a problem, selfinstall-odroidc2-eng-s905_5.1.1_master-294-v3.5

Additionally, I have C1 board and check the same problem. There is no problem in C1's any versions.
I checked the release notes but there is nothing about the media player.

User avatar
odroid
Site Admin
Posts: 32104
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 115 times
Been thanked: 287 times
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by odroid » Wed Sep 04, 2019 9:09 am

We will look into the issue. But we need your help.
Can you make a simple test application for our debugging?

pcmgogo
Posts: 15
Joined: Wed Dec 20, 2017 7:36 pm
languages_spoken: english
ODROIDs: C2 C0
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by pcmgogo » Sun Sep 08, 2019 8:38 pm

odroid wrote:
Wed Sep 04, 2019 9:09 am
We will look into the issue. But we need your help.
Can you make a simple test application for our debugging?
I am sorry for delayed reply. I prepared application for testing issue. In application, video starts automatically, click CLICK FOR SOUND TEST button for testing sound,
With selfinstall-odroidc2-eng-s905_5.1.1_master-313-v3.7 - Stops video
With selfinstall-odroidc2-eng-s905_5.1.1_master-311-v3.6 - Stops video
With selfinstall-odroidc2-eng-s905_5.1.1_master-294-v3.5 - Plays without a problem,

You can download it from https://www.dropbox.com/s/21btqivwgc3jk ... g.apk?dl=0

User avatar
odroid
Site Admin
Posts: 32104
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 115 times
Been thanked: 287 times
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by odroid » Mon Sep 09, 2019 2:21 pm

Thank you for the test app. We will try to reproduce the issue.

User avatar
codewalker
Posts: 715
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 30 times
Been thanked: 22 times
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by codewalker » Mon Sep 09, 2019 3:03 pm

Hi, pcmgogo.
We know how to solve the problem.
Which version do you need, lollipop or marshmallow?

User avatar
codewalker
Posts: 715
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 30 times
Been thanked: 22 times
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by codewalker » Mon Sep 09, 2019 5:09 pm


pcmgogo
Posts: 15
Joined: Wed Dec 20, 2017 7:36 pm
languages_spoken: english
ODROIDs: C2 C0
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by pcmgogo » Wed Sep 11, 2019 7:53 pm

codewalker wrote:
Mon Sep 09, 2019 5:09 pm
I uploaded new version and share the result, please.
https://dn.odroid.com/S905/Android/test/lollipop/
https://dn.odroid.com/S905/Android/test/marshmallow/
Dear Codewalker,
I downloaded marshmallow/selfinstall package and test it. Still it is stopped video when play sound.

User avatar
codewalker
Posts: 715
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 30 times
Been thanked: 22 times
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by codewalker » Thu Sep 12, 2019 4:55 am

I uploaded update-package.
Try update-package instead of selfinstall one more.
pcmgogo wrote:
Wed Sep 11, 2019 7:53 pm
codewalker wrote:
Mon Sep 09, 2019 5:09 pm
I uploaded new version and share the result, please.
https://dn.odroid.com/S905/Android/test/lollipop/
https://dn.odroid.com/S905/Android/test/marshmallow/
Dear Codewalker,
I downloaded marshmallow/selfinstall package and test it. Still it is stopped video when play sound.

pcmgogo
Posts: 15
Joined: Wed Dec 20, 2017 7:36 pm
languages_spoken: english
ODROIDs: C2 C0
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by pcmgogo » Thu Sep 12, 2019 11:55 pm

I have been using selfinstall image for 4 years. How can I make update-flash?
codewalker wrote:
Thu Sep 12, 2019 4:55 am
I uploaded update-package.
Try update-package instead of selfinstall one more.
pcmgogo wrote:
Wed Sep 11, 2019 7:53 pm
codewalker wrote:
Mon Sep 09, 2019 5:09 pm
I uploaded new version and share the result, please.
https://dn.odroid.com/S905/Android/test/lollipop/
https://dn.odroid.com/S905/Android/test/marshmallow/
Dear Codewalker,
I downloaded marshmallow/selfinstall package and test it. Still it is stopped video when play sound.

User avatar
codewalker
Posts: 715
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 30 times
Been thanked: 22 times
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by codewalker » Fri Sep 13, 2019 9:56 pm

Run browser and open this site.
Download update-package-xxx.zip from link.
Run ODROID Utility and click update item.
Select item by file manager and update.

User avatar
codewalker
Posts: 715
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 30 times
Been thanked: 22 times
Contact:

Re: Odroid C2 Video player suddenly stoped when playing another file simultaneously

Unread post by codewalker » Tue Sep 17, 2019 10:54 am

I uploaded selfinstall image for both.
pcmgogo wrote:
Thu Sep 12, 2019 11:55 pm
I have been using selfinstall image for 4 years. How can I make update-flash?
codewalker wrote:
Thu Sep 12, 2019 4:55 am
I uploaded update-package.
Try update-package instead of selfinstall one more.
pcmgogo wrote:
Wed Sep 11, 2019 7:53 pm
codewalker wrote:
Mon Sep 09, 2019 5:09 pm
I uploaded new version and share the result, please.
https://dn.odroid.com/S905/Android/test/lollipop/
https://dn.odroid.com/S905/Android/test/marshmallow/
Dear Codewalker,
I downloaded marshmallow/selfinstall package and test it. Still it is stopped video when play sound.

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 0 guests