Using this since my last post and getting down to 1 issue that I can't resolve.
Watching or recording, every 2nd subsequent request to the same device - is washed out. Like a dimmed version - not a normal bright display. Either watching live and it records that way. Hard to see. It's taken a few days troubleshooting with no answer, its very repeatable.
I thought it was a Firestick issue, so I swapped out to an ONN stick same issue. Swapped out to a different Firestick model. Changed ports on the encoder, rebooted things 1 at a time - testing step by step, reboot everything at once, reset device(s) to factory - nothing changes. I have a new test server spun up - same problem. When watching in VLC - you can see it as well. I'm not sure how else to test this out.
I copied out the logs to separate txt files and looked at them side by side but nothing jumps out to me. Here is the bad one - ran about 4 minutes after the good one. I can post the original if it will help..
2024-02-26T15:04:23.488102487Z Attempting network tune for device http://10.0.0.60/0.ts 10.0.0.64:5555 32639
2024-02-26T15:04:23.546138116Z [EXECUTE] Running [./scripts/firetv/fubo/prebmitune.sh 10.0.0.64:5555 32639]
2024-02-26T15:04:23.678067341Z [EXECUTE] Stdout: 'already connected to 10.0.0.64:5555
2024-02-26T15:04:23.678118801Z prebmitune.sh is exiting for 10.0.0.64:5555 with exit code 0
2024-02-26T15:04:23.678128258Z '
2024-02-26T15:04:23.678134573Z [EXECUTE] Stderr: '+ streamerIP=10.0.0.64:5555
2024-02-26T15:04:23.678140837Z + streamerNoPort=10.0.0.64
2024-02-26T15:04:23.678145690Z + adbTarget='adb -s 10.0.0.64:5555'
2024-02-26T15:04:23.678150523Z + mkdir -p 10.0.0.64
2024-02-26T15:04:23.678155306Z + trap finish EXIT
2024-02-26T15:04:23.678160437Z + main
2024-02-26T15:04:23.678165240Z + adbConnect
2024-02-26T15:04:23.678170073Z + adb connect 10.0.0.64:5555
2024-02-26T15:04:23.678174945Z + local -i adbMaxRetries=2
2024-02-26T15:04:23.678179828Z + local -i adbCounter=0
2024-02-26T15:04:23.678184571Z + true
2024-02-26T15:04:23.678189364Z + adb -s 10.0.0.64:5555 shell input keyevent KEYCODE_WAKEUP
2024-02-26T15:04:23.678194386Z + local adbEventSuccess=0
2024-02-26T15:04:23.678199358Z + [[ 0 -eq 0 ]]
2024-02-26T15:04:23.678204151Z + break
2024-02-26T15:04:23.678208795Z + finish
2024-02-26T15:04:23.678213826Z + echo 'prebmitune.sh is exiting for 10.0.0.64:5555 with exit code 0'
2024-02-26T15:04:23.678218898Z '
2024-02-26T15:04:23.678223750Z [EXECUTE] Finished running ./scripts/firetv/fubo/prebmitune.sh in 132.016672ms
2024-02-26T15:04:23.678747023Z [EXECUTE] Running [./scripts/firetv/fubo/bmitune.sh 32639 10.0.0.64:5555]
2024-02-26T15:04:30.085644709Z [EXECUTE] Stdout: 'Current PID for this script is 466
2024-02-26T15:04:30.085670275Z Not a special channel (exit nor reboot)
2024-02-26T15:04:30.085673357Z Starting: Intent { act=android.intent.action.VIEW dat=https://link.fubo.tv/... }
2024-02-26T15:04:30.085675734Z No active audio stream detected and app is not in focus after 4 seconds -- attempting to tune again...
2024-02-26T15:04:30.085677802Z Active audio stream detected with -26.3 LUF.
2024-02-26T15:04:30.085679751Z bmitune.sh is exiting for 10.0.0.64:5555 with exit code 0
2024-02-26T15:04:30.085693613Z '
2024-02-26T15:04:30.085696179Z [EXECUTE] Stderr: '+ channelID=32639
2024-02-26T15:04:30.085697889Z + specialID=32639
2024-02-26T15:04:30.085699580Z + streamerIP=10.0.0.64:5555
2024-02-26T15:04:30.085701250Z + streamerNoPort=10.0.0.64
2024-02-26T15:04:30.085702941Z + adbTarget='adb -s 10.0.0.64:5555'
2024-02-26T15:04:30.085704641Z + packageName=com.fubo.firetv.screen
2024-02-26T15:04:30.085706322Z + trap finish EXIT
2024-02-26T15:04:30.085707962Z + main
2024-02-26T15:04:30.085709683Z + updateReferenceFiles
2024-02-26T15:04:30.085711314Z + mkdir -p 10.0.0.64
2024-02-26T15:04:30.085712984Z + [[ -f 10.0.0.64/stream_stopped ]]
2024-02-26T15:04:30.085714635Z + [[ -f 10.0.0.64/last_channel ]]
2024-02-26T15:04:30.085716315Z + echo 466
2024-02-26T15:04:30.085717966Z + echo 'Current PID for this script is 466'
2024-02-26T15:04:30.085719637Z + matchEncoderURL
2024-02-26T15:04:30.085721268Z + case "$streamerIP" in
2024-02-26T15:04:30.085723266Z + encoderURL=http://10.0.0.60/0.ts
2024-02-26T15:04:30.085725026Z + specialChannels
2024-02-26T15:04:30.085726647Z + '[' 32639 = exit ']'
2024-02-26T15:04:30.085728268Z + '[' 32639 = reboot ']'
2024-02-26T15:04:30.085729929Z + [[ -f 10.0.0.64/adbCommunicationFail ]]
2024-02-26T15:04:30.085731609Z + echo 'Not a special channel (exit nor reboot)'
2024-02-26T15:04:30.085733300Z + tuneChannel
2024-02-26T15:04:30.085735030Z + adb -s 10.0.0.64:5555 shell am start -a android.intent.action.VIEW -d https://link.fubo.tv/al1%3Fv%3D1%26a%3Dplay%26t%3Dchannel%26channel_id%3D32639
2024-02-26T15:04:30.085736999Z Warning: Activity not started, its current task has been brought to the front
2024-02-26T15:04:30.085738739Z + activeAudioCheck
2024-02-26T15:04:30.085740350Z ++ date +%s
2024-02-26T15:04:30.085741961Z + local startTime=1708959863
2024-02-26T15:04:30.085743612Z + local maxDuration=60
2024-02-26T15:04:30.085745302Z + local minimumLoudness=-50
2024-02-26T15:04:30.085746953Z + local sleepDuration=0.5
2024-02-26T15:04:30.085748584Z + true
2024-02-26T15:04:30.085750264Z ++ ffmpeg -t 1 -i http://10.0.0.60/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
2024-02-26T15:04:30.085751985Z ++ awk '/I: /{print $2}'
2024-02-26T15:04:30.085753645Z + checkLoudness=-70.0
2024-02-26T15:04:30.085755256Z ++ date +%s
2024-02-26T15:04:30.085756897Z + (( 1708959867 - 1708959863 > 60 ))
2024-02-26T15:04:30.085759234Z ++ echo '-70.0 > -50'
2024-02-26T15:04:30.085761014Z ++ bc -l
2024-02-26T15:04:30.085762694Z + (( 0 ))
2024-02-26T15:04:30.085766543Z + appFocusCheck 0
2024-02-26T15:04:30.085768362Z ++ adb -s 10.0.0.64:5555 shell dumpsys window windows
2024-02-26T15:04:30.085770083Z ++ grep -E mCurrentFocus
2024-02-26T15:04:30.085771733Z ++ cut -d / -f1
2024-02-26T15:04:30.085773364Z ++ sed 's/.* //g'
2024-02-26T15:04:30.085775502Z + appFocus=
2024-02-26T15:04:30.085777113Z + [[ '' == com.fubo.firetv.screen ]]
2024-02-26T15:04:30.085778764Z + return 1
2024-02-26T15:04:30.085780424Z ++ date +%s
2024-02-26T15:04:30.085782155Z + echo 'No active audio stream detected and app is not in focus after 4 seconds -- attempting to tune again...'
2024-02-26T15:04:30.085783945Z + adb -s 10.0.0.64:5555 shell input keyevent KEYCODE_CENTER
2024-02-26T15:04:30.085785645Z + true
2024-02-26T15:04:30.085788380Z ++ ffmpeg -t 1 -i http://10.0.0.60/0.ts -filter:a ebur128 -map 0:a -f null -hide_banner -
2024-02-26T15:04:30.085790219Z ++ awk '/I: /{print $2}'
2024-02-26T15:04:30.085791880Z + checkLoudness=-26.3
2024-02-26T15:04:30.085793541Z ++ date +%s
2024-02-26T15:04:30.085795221Z + (( 1708959870 - 1708959863 > 60 ))
2024-02-26T15:04:30.085797001Z ++ echo '-26.3 > -50'
2024-02-26T15:04:30.085798711Z ++ bc -l
2024-02-26T15:04:30.085800362Z + (( 1 ))
2024-02-26T15:04:30.085801963Z + echo 'Active audio stream detected with -26.3 LUF.'
2024-02-26T15:04:30.085803654Z + break
2024-02-26T15:04:30.085805274Z + finish
2024-02-26T15:04:30.085806925Z + echo 'bmitune.sh is exiting for 10.0.0.64:5555 with exit code 0'
2024-02-26T15:04:30.085808993Z '
2024-02-26T15:04:30.085810624Z [EXECUTE] Finished running ./scripts/firetv/fubo/bmitune.sh in 6.407330249s
2024-02-26T15:04:36.169211878Z [IO] io.Copy: write tcp 172.19.0.2:7654->10.0.0.37:34540: write: broken pipe
2024-02-26T15:04:36.169339032Z [IOINFO] Successfully copied 24864900 bytes
2024-02-26T15:04:36.169346957Z [IOINFO] Transfer speed: 15.925155478836098 Mbits/second
2024-02-26T15:04:36.169354256Z Performing Close() for 10.0.0.64:5555
2024-02-26T15:04:36.169363952Z [EXECUTE] Running [./scripts/firetv/fubo/stopbmitune.sh 10.0.0.64:5555 32639]
2024-02-26T15:04:38.749824196Z [EXECUTE] Stdout: 'Streaming stopped for 10.0.0.64:5555
2024-02-26T15:04:38.749881345Z Sleep initiated for 10.0.0.64:5555
2024-02-26T15:04:38.749891169Z 10.0.0.64/stream_stopped written with epoch stop time
2024-02-26T15:04:38.749898160Z '
2024-02-26T15:04:38.749903420Z [EXECUTE] Stderr: '+ streamerIP=10.0.0.64:5555
2024-02-26T15:04:38.749909566Z + streamerNoPort=10.0.0.64
2024-02-26T15:04:38.749915075Z + adbTarget='adb -s 10.0.0.64:5555'
2024-02-26T15:04:38.749921767Z + packageName=com.fubo.firetv.screen
2024-02-26T15:04:38.749962766Z + main
2024-02-26T15:04:38.749970244Z + bmituneDone
2024-02-26T15:04:38.749975037Z + bmitunePID=466
2024-02-26T15:04:38.749979681Z + ps -p 466
2024-02-26T15:04:38.749984275Z + adbStop
2024-02-26T15:04:38.749989038Z + stop='input keyevent KEYCODE_BACK; input keyevent KEYCODE_BACK; input keyevent KEYCODE_HOME'
2024-02-26T15:04:38.749994338Z + adb -s 10.0.0.64:5555 shell input keyevent 'KEYCODE_BACK;' input keyevent 'KEYCODE_BACK;' input keyevent KEYCODE_HOME
2024-02-26T15:04:38.749999787Z + sleep 2
2024-02-26T15:04:38.750004541Z + echo 'Streaming stopped for 10.0.0.64:5555'
2024-02-26T15:04:38.750009284Z + adbSleep
2024-02-26T15:04:38.750014594Z + sleep='input keyevent KEYCODE_SLEEP'
2024-02-26T15:04:38.750019178Z + adb -s 10.0.0.64:5555 shell input keyevent KEYCODE_SLEEP
2024-02-26T15:04:38.750023922Z + echo 'Sleep initiated for 10.0.0.64:5555'
2024-02-26T15:04:38.750028675Z + date +%s
2024-02-26T15:04:38.750033239Z + echo '10.0.0.64/stream_stopped written with epoch stop time'
2024-02-26T15:04:38.750038082Z '
2024-02-26T15:04:38.750042825Z [EXECUTE] Finished running ./scripts/firetv/fubo/stopbmitune.sh in 2.580601648s
2024-02-26T15:04:38.750095031Z [GIN-debug] Request: 10.0.0.37 GET /play/tuner/32639, latency: 15.261837806s, status: 200