[Bug]: Kill the audiobookshelf process that is currently playing on Android; the FFMPEG process on the server cannot be killed #2554

Open
opened 2026-04-25 00:08:21 +02:00 by adam · 3 comments
Owner

Originally created by @JinLiGame on GitHub (Feb 7, 2025).

What happened?

Kill the audiobookshelf process that is currently playing on Android; the FFMPEG process on the server cannot be killed; however, clicking 'Close Player' normally terminates the FFMPEG process.

What did you expect to happen?

When the client is no longer playing, it should be able to kill the FFMPEG process and release the CPU.

Steps to reproduce the issue

  1. use wma file
  2. play this wma file on Android,after skill audiobookshelf process
  3. server FFMPEG process is still running

Audiobookshelf version

2.19.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Other (list in "Additional Notes" box)

Logs

[2025-02-07 23:49:38.365] INFO: [PlaybackSessionManager] startSession: Closing open session "仙逆-耳根-丸子演播" for user "xiaojinli" (Device: 23013RK75C SDK 34 / v0.9.76-beta)
[2025-02-07 23:49:38.743] INFO: [STREAM] START STREAM - Num Segments: 294793
[2025-02-07 23:49:38.843] INFO: [STREAM] Starting Stream at startTime 155:33:49 (User startTime 155:34:19) and Segment #93338
[2025-02-07 23:49:38.980] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -ss 635.9s -noaccurate_seek -i /metadata/streams/4003de40-c527-44ad-a09f-670219c2f674/files.txt -y -loglevel error -map 0:a -c:a aac -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 93338 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/4003de40-c527-44ad-a09f-670219c2f674/output-%d.ts /metadata/streams/4003de40-c527-44ad-a09f-670219c2f674/final-output.m3u8
[2025-02-07 23:49:38.980] INFO: 
[2025-02-07 23:49:40.981] INFO: [STREAM] 4003de40-c527-44ad-a09f-670219c2f674 notifying client that stream is ready
[2025-02-07 23:49:41.081] INFO: [STREAM-CHECK] Check Files 8 of 294793 0.00% Furthest Segment: 93345
[2025-02-07 23:49:42.981] INFO: [STREAM-CHECK] Check Files 20 of 294793 0.01% Furthest Segment: 93357
[2025-02-07 23:49:44.981] INFO: [STREAM-CHECK] Check Files 32 of 294793 0.01% Furthest Segment: 93369
[2025-02-07 23:49:46.982] INFO: [STREAM-CHECK] Check Files 44 of 294793 0.01% Furthest Segment: 93381
[2025-02-07 23:49:48.983] INFO: [STREAM-CHECK] Check Files 58 of 294793 0.02% Furthest Segment: 93395
[2025-02-07 23:49:50.983] INFO: [STREAM-CHECK] Check Files 69 of 294793 0.02% Furthest Segment: 93406
[2025-02-07 23:49:52.984] INFO: [STREAM-CHECK] Check Files 81 of 294793 0.03% Furthest Segment: 93418
[2025-02-07 23:49:54.985] INFO: [STREAM-CHECK] Check Files 93 of 294793 0.03% Furthest Segment: 93430
[2025-02-07 23:49:56.986] INFO: [STREAM-CHECK] Check Files 103 of 294793 0.03% Furthest Segment: 93440
[2025-02-07 23:49:57.340] INFO: Closing Stream 4003de40-c527-44ad-a09f-670219c2f674
[2025-02-07 23:49:57.346] INFO: [FFMPEG] Transcode Killed
[2025-02-07 23:49:57.360] INFO: Deleted session data /metadata/streams/4003de40-c527-44ad-a09f-670219c2f674
[2025-02-07 23:50:09.412] INFO: [PlaybackSessionManager] startSession: Closing open session "仙逆-耳根-丸子演播" for user "xiaojinli" (Device: 23013RK75C SDK 34 / v0.9.76-beta)
[2025-02-07 23:50:09.804] INFO: [STREAM] START STREAM - Num Segments: 294793
[2025-02-07 23:50:09.905] INFO: [STREAM] Starting Stream at startTime 155:33:59 (User startTime 155:34:29) and Segment #93339
[2025-02-07 23:50:10.020] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -ss 646.2s -noaccurate_seek -i /metadata/streams/99710602-8f1d-439b-b20c-0420bd3996f0/files.txt -y -loglevel error -map 0:a -c:a aac -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 93339 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/99710602-8f1d-439b-b20c-0420bd3996f0/output-%d.ts /metadata/streams/99710602-8f1d-439b-b20c-0420bd3996f0/final-output.m3u8
[2025-02-07 23:50:10.021] INFO: 
[2025-02-07 23:50:12.021] INFO: [STREAM] 99710602-8f1d-439b-b20c-0420bd3996f0 notifying client that stream is ready
[2025-02-07 23:50:12.118] INFO: [STREAM-CHECK] Check Files 11 of 294793 0.00% Furthest Segment: 93349
[2025-02-07 23:50:14.022] INFO: [STREAM-CHECK] Check Files 22 of 294793 0.01% Furthest Segment: 93360
[2025-02-07 23:50:16.023] INFO: [STREAM-CHECK] Check Files 34 of 294793 0.01% Furthest Segment: 93372
[2025-02-07 23:50:18.022] INFO: [STREAM-CHECK] Check Files 46 of 294793 0.02% Furthest Segment: 93384
[2025-02-07 23:50:20.023] INFO: [STREAM-CHECK] Check Files 58 of 294793 0.02% Furthest Segment: 93396
[2025-02-07 23:50:22.025] INFO: [STREAM-CHECK] Check Files 70 of 294793 0.02% Furthest Segment: 93408
[2025-02-07 23:50:23.673] INFO: [SocketAuthority] Socket u_bB2g_8Yri9bhkQAAAD disconnected from client "xiaojinli" after 163267ms (Reason: transport close)
[2025-02-07 23:50:24.025] INFO: [STREAM-CHECK] Check Files 81 of 294793 0.03% Furthest Segment: 93419
[2025-02-07 23:50:26.026] INFO: [STREAM-CHECK] Check Files 94 of 294793 0.03% Furthest Segment: 93432
[2025-02-07 23:50:28.027] INFO: [STREAM-CHECK] Check Files 103 of 294793 0.03% Furthest Segment: 93441
[2025-02-07 23:50:30.028] INFO: [STREAM-CHECK] Check Files 115 of 294793 0.04% Furthest Segment: 93453

Additional Notes

In this log file, I first used 'Close Player' to stop the playback, and it showed '[FFMPEG] Transcode Killed'. Then, I tried to stop the playback by killing the client process, but it did not show '[FFMPEG] Transcode Killed'.

Originally created by @JinLiGame on GitHub (Feb 7, 2025). ### What happened? Kill the audiobookshelf process that is currently playing on Android; the FFMPEG process on the server cannot be killed; however, clicking 'Close Player' normally terminates the FFMPEG process. ### What did you expect to happen? When the client is no longer playing, it should be able to kill the FFMPEG process and release the CPU. ### Steps to reproduce the issue 1. use wma file 2. play this wma file on Android,after skill audiobookshelf process 3. server FFMPEG process is still running ### Audiobookshelf version 2.19.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Other (list in "Additional Notes" box) ### Logs ```shell [2025-02-07 23:49:38.365] INFO: [PlaybackSessionManager] startSession: Closing open session "仙逆-耳根-丸子演播" for user "xiaojinli" (Device: 23013RK75C SDK 34 / v0.9.76-beta) [2025-02-07 23:49:38.743] INFO: [STREAM] START STREAM - Num Segments: 294793 [2025-02-07 23:49:38.843] INFO: [STREAM] Starting Stream at startTime 155:33:49 (User startTime 155:34:19) and Segment #93338 [2025-02-07 23:49:38.980] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -ss 635.9s -noaccurate_seek -i /metadata/streams/4003de40-c527-44ad-a09f-670219c2f674/files.txt -y -loglevel error -map 0:a -c:a aac -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 93338 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/4003de40-c527-44ad-a09f-670219c2f674/output-%d.ts /metadata/streams/4003de40-c527-44ad-a09f-670219c2f674/final-output.m3u8 [2025-02-07 23:49:38.980] INFO: [2025-02-07 23:49:40.981] INFO: [STREAM] 4003de40-c527-44ad-a09f-670219c2f674 notifying client that stream is ready [2025-02-07 23:49:41.081] INFO: [STREAM-CHECK] Check Files 8 of 294793 0.00% Furthest Segment: 93345 [2025-02-07 23:49:42.981] INFO: [STREAM-CHECK] Check Files 20 of 294793 0.01% Furthest Segment: 93357 [2025-02-07 23:49:44.981] INFO: [STREAM-CHECK] Check Files 32 of 294793 0.01% Furthest Segment: 93369 [2025-02-07 23:49:46.982] INFO: [STREAM-CHECK] Check Files 44 of 294793 0.01% Furthest Segment: 93381 [2025-02-07 23:49:48.983] INFO: [STREAM-CHECK] Check Files 58 of 294793 0.02% Furthest Segment: 93395 [2025-02-07 23:49:50.983] INFO: [STREAM-CHECK] Check Files 69 of 294793 0.02% Furthest Segment: 93406 [2025-02-07 23:49:52.984] INFO: [STREAM-CHECK] Check Files 81 of 294793 0.03% Furthest Segment: 93418 [2025-02-07 23:49:54.985] INFO: [STREAM-CHECK] Check Files 93 of 294793 0.03% Furthest Segment: 93430 [2025-02-07 23:49:56.986] INFO: [STREAM-CHECK] Check Files 103 of 294793 0.03% Furthest Segment: 93440 [2025-02-07 23:49:57.340] INFO: Closing Stream 4003de40-c527-44ad-a09f-670219c2f674 [2025-02-07 23:49:57.346] INFO: [FFMPEG] Transcode Killed [2025-02-07 23:49:57.360] INFO: Deleted session data /metadata/streams/4003de40-c527-44ad-a09f-670219c2f674 [2025-02-07 23:50:09.412] INFO: [PlaybackSessionManager] startSession: Closing open session "仙逆-耳根-丸子演播" for user "xiaojinli" (Device: 23013RK75C SDK 34 / v0.9.76-beta) [2025-02-07 23:50:09.804] INFO: [STREAM] START STREAM - Num Segments: 294793 [2025-02-07 23:50:09.905] INFO: [STREAM] Starting Stream at startTime 155:33:59 (User startTime 155:34:29) and Segment #93339 [2025-02-07 23:50:10.020] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -ss 646.2s -noaccurate_seek -i /metadata/streams/99710602-8f1d-439b-b20c-0420bd3996f0/files.txt -y -loglevel error -map 0:a -c:a aac -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 93339 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/99710602-8f1d-439b-b20c-0420bd3996f0/output-%d.ts /metadata/streams/99710602-8f1d-439b-b20c-0420bd3996f0/final-output.m3u8 [2025-02-07 23:50:10.021] INFO: [2025-02-07 23:50:12.021] INFO: [STREAM] 99710602-8f1d-439b-b20c-0420bd3996f0 notifying client that stream is ready [2025-02-07 23:50:12.118] INFO: [STREAM-CHECK] Check Files 11 of 294793 0.00% Furthest Segment: 93349 [2025-02-07 23:50:14.022] INFO: [STREAM-CHECK] Check Files 22 of 294793 0.01% Furthest Segment: 93360 [2025-02-07 23:50:16.023] INFO: [STREAM-CHECK] Check Files 34 of 294793 0.01% Furthest Segment: 93372 [2025-02-07 23:50:18.022] INFO: [STREAM-CHECK] Check Files 46 of 294793 0.02% Furthest Segment: 93384 [2025-02-07 23:50:20.023] INFO: [STREAM-CHECK] Check Files 58 of 294793 0.02% Furthest Segment: 93396 [2025-02-07 23:50:22.025] INFO: [STREAM-CHECK] Check Files 70 of 294793 0.02% Furthest Segment: 93408 [2025-02-07 23:50:23.673] INFO: [SocketAuthority] Socket u_bB2g_8Yri9bhkQAAAD disconnected from client "xiaojinli" after 163267ms (Reason: transport close) [2025-02-07 23:50:24.025] INFO: [STREAM-CHECK] Check Files 81 of 294793 0.03% Furthest Segment: 93419 [2025-02-07 23:50:26.026] INFO: [STREAM-CHECK] Check Files 94 of 294793 0.03% Furthest Segment: 93432 [2025-02-07 23:50:28.027] INFO: [STREAM-CHECK] Check Files 103 of 294793 0.03% Furthest Segment: 93441 [2025-02-07 23:50:30.028] INFO: [STREAM-CHECK] Check Files 115 of 294793 0.04% Furthest Segment: 93453 ``` ### Additional Notes In this log file, I first used 'Close Player' to stop the playback, and it showed '[FFMPEG] Transcode Killed'. Then, I tried to stop the playback by killing the client process, but it did not show '[FFMPEG] Transcode Killed'.
adam added the bug label 2026-04-25 00:08:21 +02:00
Author
Owner

@gmile commented on GitHub (Jul 20, 2025):

Not sure if related, but I just I witnessed my homelab server's cooler start making an audible noise, went to check the logs and discovered this was related to audiobookshelf starting some transcoding work out of the blue.

Here are the logs - you can clearly see some interaction with audiobookshelf I had during the morning, before a very random work started around 16:32.

Jul 20 09:52:22 nixos audiobookshelf[914]: [2025-07-20 09:52:22.171] INFO: [SocketAuthority] Socket Connected to /socket.io WSQ1E20qOWpyp1DdAAAB
Jul 20 09:53:00 nixos audiobookshelf[914]: [2025-07-20 09:53:00.825] INFO: [SocketAuthority] Socket WSQ1E20qOWpyp1DdAAAB disconnected from client "root" after 38654ms (Reason: client namespace disconnect)
Jul 20 09:53:11 nixos audiobookshelf[914]: [2025-07-20 09:53:11.858] INFO: Received ping
Jul 20 09:53:12 nixos audiobookshelf[914]: [2025-07-20 09:53:12.041] INFO: [SocketAuthority] Socket Connected to /socket.io 859JX0Z40iprkEYKAAAD
Jul 20 09:53:19 nixos audiobookshelf[914]: [2025-07-20 09:53:19.339] INFO: [PlaybackSessionManager] startSession: Closing open session "The Selfish Gene" for user "root" (Device: Pixel 8 Pro SDK 36 / v0.9.81-beta)
Jul 20 09:53:25 nixos audiobookshelf[914]: [2025-07-20 09:53:25.738] INFO: [PlaybackSessionManager] startSession: Closing open session "The Real Anthony Fauci: Bill Gates, Big Pharma, and the Global War on Democracy and Public Health" for user "root" (Device: Pixel 8 Pro SDK 36 / v0.9.81-beta)
Jul 20 09:59:25 nixos audiobookshelf[914]: [2025-07-20 09:59:25.322] INFO: [SocketAuthority] Socket 859JX0Z40iprkEYKAAAD disconnected from client "root" after 373282ms (Reason: ping timeout)
Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.353] INFO: [PlaybackSessionManager] startSession: Closing open session "An Elegant Puzzle" for user "root" (Device: Pixel 8 Pro SDK 36 / v0.9.81-beta)
Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.360] INFO: [STREAM] START STREAM - Num Segments: 3963
Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.367] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/output-%d.ts /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/final-output.m3u8
Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.367] INFO:
Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.765] INFO: [adts @ 0x916d580] Scalable configurations are not allowed in ADTS
Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.766] INFO: [out#0/hls @ 0x91537c0] Could not write header (incorrect codec parameters ?): Invalid data found when processing input
Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.815] INFO:
Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.816] ERROR: Ffmpeg Err "ffmpeg exited with code 183: "
Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.816] INFO: [Stream] Re-attempting stream with AAC encode
Jul 20 16:33:08 nixos audiobookshelf[914]: [2025-07-20 16:33:08.837] ERROR: [STREAM] Transcode never closed...
Jul 20 16:33:08 nixos audiobookshelf[914]: [2025-07-20 16:33:08.838] INFO: Stream Reset New Start Time 0:28
Jul 20 16:33:08 nixos audiobookshelf[914]: [2025-07-20 16:33:08.838] INFO: [STREAM] START STREAM - Num Segments: 3963
Jul 20 16:33:08 nixos audiobookshelf[914]: [2025-07-20 16:33:08.843] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/files.txt -y -loglevel error -map 0:a -c:a aac -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/output-%d.ts /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/final-output.m3u8
Jul 20 16:33:08 nixos audiobookshelf[914]: [2025-07-20 16:33:08.843] INFO:
Jul 20 16:33:11 nixos audiobookshelf[914]: [2025-07-20 16:33:11.845] INFO: [STREAM] Clearing isResetting
Jul 20 16:33:13 nixos audiobookshelf[914]: [2025-07-20 16:33:13.848] INFO: [STREAM] 7788263f-10dd-4507-8be8-536fa5ea9eed notifying client that stream is ready
Jul 20 16:33:13 nixos audiobookshelf[914]: [2025-07-20 16:33:13.849] INFO: [STREAM-CHECK] Check Files 40 of 3963 1.01% Furthest Segment: 39
Jul 20 16:33:15 nixos audiobookshelf[914]: [2025-07-20 16:33:15.848] INFO: [STREAM-CHECK] Check Files 56 of 3963 1.41% Furthest Segment: 55
Jul 20 16:33:17 nixos audiobookshelf[914]: [2025-07-20 16:33:17.848] INFO: [STREAM-CHECK] Check Files 73 of 3963 1.84% Furthest Segment: 72
Jul 20 16:33:19 nixos audiobookshelf[914]: [2025-07-20 16:33:19.849] INFO: [STREAM-CHECK] Check Files 89 of 3963 2.25% Furthest Segment: 88
Jul 20 16:33:21 nixos audiobookshelf[914]: [2025-07-20 16:33:21.850] INFO: [STREAM-CHECK] Check Files 106 of 3963 2.67% Furthest Segment: 105
Jul 20 16:33:23 nixos audiobookshelf[914]: [2025-07-20 16:33:23.851] INFO: [STREAM-CHECK] Check Files 124 of 3963 3.13% Furthest Segment: 123
Jul 20 16:33:25 nixos audiobookshelf[914]: [2025-07-20 16:33:25.852] INFO: [STREAM-CHECK] Check Files 140 of 3963 3.53% Furthest Segment: 139

Did my Android app in the background requested something from the server to cause this? 🤔 If so, how can I make Android app stop doing what it was doing? In my case I didn't have that many files to process, so I just waited to this "Check files..." to finish some 10 minutes later.

@gmile commented on GitHub (Jul 20, 2025): Not sure if related, but I just I witnessed my homelab server's cooler start making an audible noise, went to check the logs and discovered this was related to `audiobookshelf` starting some transcoding work out of the blue. Here are the logs - you can clearly see some interaction with audiobookshelf I had during the morning, before a very random work started around `16:32`. <details> ``` Jul 20 09:52:22 nixos audiobookshelf[914]: [2025-07-20 09:52:22.171] INFO: [SocketAuthority] Socket Connected to /socket.io WSQ1E20qOWpyp1DdAAAB Jul 20 09:53:00 nixos audiobookshelf[914]: [2025-07-20 09:53:00.825] INFO: [SocketAuthority] Socket WSQ1E20qOWpyp1DdAAAB disconnected from client "root" after 38654ms (Reason: client namespace disconnect) Jul 20 09:53:11 nixos audiobookshelf[914]: [2025-07-20 09:53:11.858] INFO: Received ping Jul 20 09:53:12 nixos audiobookshelf[914]: [2025-07-20 09:53:12.041] INFO: [SocketAuthority] Socket Connected to /socket.io 859JX0Z40iprkEYKAAAD Jul 20 09:53:19 nixos audiobookshelf[914]: [2025-07-20 09:53:19.339] INFO: [PlaybackSessionManager] startSession: Closing open session "The Selfish Gene" for user "root" (Device: Pixel 8 Pro SDK 36 / v0.9.81-beta) Jul 20 09:53:25 nixos audiobookshelf[914]: [2025-07-20 09:53:25.738] INFO: [PlaybackSessionManager] startSession: Closing open session "The Real Anthony Fauci: Bill Gates, Big Pharma, and the Global War on Democracy and Public Health" for user "root" (Device: Pixel 8 Pro SDK 36 / v0.9.81-beta) Jul 20 09:59:25 nixos audiobookshelf[914]: [2025-07-20 09:59:25.322] INFO: [SocketAuthority] Socket 859JX0Z40iprkEYKAAAD disconnected from client "root" after 373282ms (Reason: ping timeout) Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.353] INFO: [PlaybackSessionManager] startSession: Closing open session "An Elegant Puzzle" for user "root" (Device: Pixel 8 Pro SDK 36 / v0.9.81-beta) Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.360] INFO: [STREAM] START STREAM - Num Segments: 3963 Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.367] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/output-%d.ts /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/final-output.m3u8 Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.367] INFO: Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.765] INFO: [adts @ 0x916d580] Scalable configurations are not allowed in ADTS Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.766] INFO: [out#0/hls @ 0x91537c0] Could not write header (incorrect codec parameters ?): Invalid data found when processing input Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.815] INFO: Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.816] ERROR: Ffmpeg Err "ffmpeg exited with code 183: " Jul 20 16:32:58 nixos audiobookshelf[914]: [2025-07-20 16:32:58.816] INFO: [Stream] Re-attempting stream with AAC encode Jul 20 16:33:08 nixos audiobookshelf[914]: [2025-07-20 16:33:08.837] ERROR: [STREAM] Transcode never closed... Jul 20 16:33:08 nixos audiobookshelf[914]: [2025-07-20 16:33:08.838] INFO: Stream Reset New Start Time 0:28 Jul 20 16:33:08 nixos audiobookshelf[914]: [2025-07-20 16:33:08.838] INFO: [STREAM] START STREAM - Num Segments: 3963 Jul 20 16:33:08 nixos audiobookshelf[914]: [2025-07-20 16:33:08.843] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/files.txt -y -loglevel error -map 0:a -c:a aac -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/output-%d.ts /var/lib/audiobookshelf/metadata/streams/7788263f-10dd-4507-8be8-536fa5ea9eed/final-output.m3u8 Jul 20 16:33:08 nixos audiobookshelf[914]: [2025-07-20 16:33:08.843] INFO: Jul 20 16:33:11 nixos audiobookshelf[914]: [2025-07-20 16:33:11.845] INFO: [STREAM] Clearing isResetting Jul 20 16:33:13 nixos audiobookshelf[914]: [2025-07-20 16:33:13.848] INFO: [STREAM] 7788263f-10dd-4507-8be8-536fa5ea9eed notifying client that stream is ready Jul 20 16:33:13 nixos audiobookshelf[914]: [2025-07-20 16:33:13.849] INFO: [STREAM-CHECK] Check Files 40 of 3963 1.01% Furthest Segment: 39 Jul 20 16:33:15 nixos audiobookshelf[914]: [2025-07-20 16:33:15.848] INFO: [STREAM-CHECK] Check Files 56 of 3963 1.41% Furthest Segment: 55 Jul 20 16:33:17 nixos audiobookshelf[914]: [2025-07-20 16:33:17.848] INFO: [STREAM-CHECK] Check Files 73 of 3963 1.84% Furthest Segment: 72 Jul 20 16:33:19 nixos audiobookshelf[914]: [2025-07-20 16:33:19.849] INFO: [STREAM-CHECK] Check Files 89 of 3963 2.25% Furthest Segment: 88 Jul 20 16:33:21 nixos audiobookshelf[914]: [2025-07-20 16:33:21.850] INFO: [STREAM-CHECK] Check Files 106 of 3963 2.67% Furthest Segment: 105 Jul 20 16:33:23 nixos audiobookshelf[914]: [2025-07-20 16:33:23.851] INFO: [STREAM-CHECK] Check Files 124 of 3963 3.13% Furthest Segment: 123 Jul 20 16:33:25 nixos audiobookshelf[914]: [2025-07-20 16:33:25.852] INFO: [STREAM-CHECK] Check Files 140 of 3963 3.53% Furthest Segment: 139 ``` </details> Did my Android app in the background requested something from the server to cause this? 🤔 If so, how can I make Android app stop doing what it was doing? In my case I didn't have that many files to process, so I just waited to this "Check files..." to finish some 10 minutes later.
Author
Owner

@advplyr commented on GitHub (Jul 20, 2025):

Abs automatically falls back to transcoding the audiobook to an HLS stream when the device cannot direct play the audio file.

In this case the OP was playing a WMA file on android which is not supported so Abs transcodes to HLS

@advplyr commented on GitHub (Jul 20, 2025): Abs automatically falls back to transcoding the audiobook to an HLS stream when the device cannot direct play the audio file. In this case the OP was playing a WMA file on android which is not supported so Abs transcodes to HLS
Author
Owner

@gmile commented on GitHub (Jul 20, 2025):

@advplyr I see. Then my issue is not related (or related only mildly). In my case, the primary issue is that something started to happen without me actively using the application (android) or server UI. Feel free to mark my comment as out of topic, I will create a separate discussing for this 🤔

Upd. marked as off-topic myself and moved to https://github.com/advplyr/audiobookshelf/discussions/4514

@gmile commented on GitHub (Jul 20, 2025): @advplyr I see. Then my issue is not related (or related only mildly). In my case, the primary issue is that something started to happen without me actively using the application (android) or server UI. Feel free to mark my comment as out of topic, I will create a separate discussing for this 🤔 **Upd**. marked as off-topic myself and moved to https://github.com/advplyr/audiobookshelf/discussions/4514
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2554