advplyr / audiobookshelf-app

Mobile application for Audiobookshelf
https://audiobookshelf.org
GNU General Public License v3.0
1.19k stars 163 forks source link

[Bug]: #908

Closed lukethehawk closed 10 months ago

lukethehawk commented 11 months ago

Describe the issue

After the upgrade to iOS 17 I experienced a problem, when I push the play button the stream wont start, it remain stuck. I'm connected, I tried with wifi and 4G but it wont start the stream. No prob with the web app through safari I tried to reinstall completely the app, app v. 0.9.66 srv. v 2.4.3 (docker)

Steps to reproduce the issue

  1. After upgrade to iOS 17. Press play doesn’t work

Audiobookshelf version

app v. 0.9.66 srv. v 2.4.3 (docker)

How are you running audiobookshelf?

Docker

lukethehawk commented 11 months ago

https://github.com/advplyr/audiobookshelf/assets/98876950/ab750d4c-c605-40ad-8eba-80a1f8e7409a

advplyr commented 11 months ago

Can you check if this is transcoding or direct play? You will see that at the top of the audio player when you open it up full screen.

Is this only happening with that one audiobook or others?

Can you update your server to v2.4.4 so we can be sure this wasn't fixed on the server-side?

advplyr commented 11 months ago

Also, that audio file just may not play on iOS. You can test that by downloading it and trying to play it with another app (not VLC).

lukethehawk commented 11 months ago

Updated to 2.4.4 nothing changed. After some test I found that the problem is only with that book. At the top of the audio player I see DIRECT thanks

advplyr commented 11 months ago

Can you share the ffprobe output of that audio file? You can find that by using the web client here image

Then in the top right

lukethehawk commented 11 months ago
{
  "programs": [],
  "streams": [
    {
      "index": 0,
      "codec_name": "aac",
      "codec_long_name": "AAC (Advanced Audio Coding)",
      "profile": "LC",
      "codec_type": "audio",
      "codec_tag_string": "mp4a",
      "codec_tag": "0x6134706d",
      "sample_fmt": "fltp",
      "sample_rate": "48000",
      "channels": 2,
      "channel_layout": "stereo",
      "bits_per_sample": 0,
      "initial_padding": 0,
      "id": "0x1",
      "r_frame_rate": "0/0",
      "avg_frame_rate": "0/0",
      "time_base": "1/48000",
      "start_pts": 0,
      "start_time": "0.000000",
      "duration_ts": 8975228655,
      "duration": "186983.930312",
      "bit_rate": "299500",
      "nb_frames": "8764913",
      "extradata_size": 5,
      "disposition": {
        "default": 1,
        "dub": 0,
        "original": 0,
        "comment": 0,
        "lyrics": 0,
        "karaoke": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "visual_impaired": 0,
        "clean_effects": 0,
        "attached_pic": 0,
        "timed_thumbnails": 0,
        "captions": 0,
        "descriptions": 0,
        "metadata": 0,
        "dependent": 0,
        "still_image": 0
      },
      "tags": {
        "language": "und",
        "handler_name": "SoundHandler",
        "vendor_id": "[0][0][0][0]"
      }
    },
    {
      "index": 1,
      "codec_name": "bin_data",
      "codec_long_name": "binary data",
      "codec_type": "data",
      "codec_tag_string": "text",
      "codec_tag": "0x74786574",
      "id": "0x2",
      "r_frame_rate": "0/0",
      "avg_frame_rate": "0/0",
      "time_base": "1/1000",
      "start_pts": 0,
      "start_time": "0.000000",
      "duration_ts": 186983909,
      "duration": "186983.909000",
      "nb_frames": "29",
      "extradata_size": 43,
      "disposition": {
        "default": 0,
        "dub": 0,
        "original": 0,
        "comment": 0,
        "lyrics": 0,
        "karaoke": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "visual_impaired": 0,
        "clean_effects": 0,
        "attached_pic": 0,
        "timed_thumbnails": 0,
        "captions": 0,
        "descriptions": 0,
        "metadata": 0,
        "dependent": 0,
        "still_image": 0
      },
      "tags": {
        "language": "eng",
        "handler_name": "SubtitleHandler"
      }
    }
  ],
  "chapters": [
    {
      "id": 0,
      "time_base": "1/1000",
      "start": 0,
      "start_time": "0.000000",
      "end": 2380897,
      "end_time": "2380.897000",
      "tags": {
        "title": " Chapter 001  - 00:39:40"
      }
    },
    {
      "id": 1,
      "time_base": "1/1000",
      "start": 2380897,
      "start_time": "2380.897000",
      "end": 6058754,
      "end_time": "6058.754000",
      "tags": {
        "title": " Chapter 002  - 01:01:17"
      }
    },
    {
      "id": 2,
      "time_base": "1/1000",
      "start": 6058754,
      "start_time": "6058.754000",
      "end": 24063363,
      "end_time": "24063.363000",
      "tags": {
        "title": " Chapter 003  - 05:00:04"
      }
    },
    {
      "id": 3,
      "time_base": "1/1000",
      "start": 24063363,
      "start_time": "24063.363000",
      "end": 26842300,
      "end_time": "26842.300000",
      "tags": {
        "title": " Chapter 004  - 00:46:18"
      }
    },
    {
      "id": 4,
      "time_base": "1/1000",
      "start": 26842300,
      "start_time": "26842.300000",
      "end": 36283181,
      "end_time": "36283.181000",
      "tags": {
        "title": " Chapter 005  - 02:37:20"
      }
    },
    {
      "id": 5,
      "time_base": "1/1000",
      "start": 36283181,
      "start_time": "36283.181000",
      "end": 41110926,
      "end_time": "41110.926000",
      "tags": {
        "title": " Chapter 006  - 01:20:27"
      }
    },
    {
      "id": 6,
      "time_base": "1/1000",
      "start": 41110926,
      "start_time": "41110.926000",
      "end": 47904367,
      "end_time": "47904.367000",
      "tags": {
        "title": " Chapter 007  - 01:53:13"
      }
    },
    {
      "id": 7,
      "time_base": "1/1000",
      "start": 47904367,
      "start_time": "47904.367000",
      "end": 53257040,
      "end_time": "53257.040000",
      "tags": {
        "title": " Chapter 008  - 01:29:12"
      }
    },
    {
      "id": 8,
      "time_base": "1/1000",
      "start": 53257040,
      "start_time": "53257.040000",
      "end": 64269921,
      "end_time": "64269.921000",
      "tags": {
        "title": " Chapter 009  - 03:03:32"
      }
    },
    {
      "id": 9,
      "time_base": "1/1000",
      "start": 64269921,
      "start_time": "64269.921000",
      "end": 72845170,
      "end_time": "72845.170000",
      "tags": {
        "title": " Chapter 010  - 02:22:55"
      }
    },
    {
      "id": 10,
      "time_base": "1/1000",
      "start": 72845170,
      "start_time": "72845.170000",
      "end": 79012547,
      "end_time": "79012.547000",
      "tags": {
        "title": " Chapter 011  - 01:42:47"
      }
    },
    {
      "id": 11,
      "time_base": "1/1000",
      "start": 79012547,
      "start_time": "79012.547000",
      "end": 89180028,
      "end_time": "89180.028000",
      "tags": {
        "title": " Chapter 012  - 02:49:27"
      }
    },
    {
      "id": 12,
      "time_base": "1/1000",
      "start": 89180028,
      "start_time": "89180.028000",
      "end": 102616021,
      "end_time": "102616.021000",
      "tags": {
        "title": " Chapter 013  - 03:43:55"
      }
    },
    {
      "id": 13,
      "time_base": "1/1000",
      "start": 102616021,
      "start_time": "102616.021000",
      "end": 107119358,
      "end_time": "107119.358000",
      "tags": {
        "title": " Chapter 014  - 01:15:03"
      }
    },
    {
      "id": 14,
      "time_base": "1/1000",
      "start": 107119358,
      "start_time": "107119.358000",
      "end": 109635711,
      "end_time": "109635.711000",
      "tags": {
        "title": " Chapter 015  - 00:41:56"
      }
    },
    {
      "id": 15,
      "time_base": "1/1000",
      "start": 109635711,
      "start_time": "109635.711000",
      "end": 116507224,
      "end_time": "116507.224000",
      "tags": {
        "title": " Chapter 016  - 01:54:31"
      }
    },
    {
      "id": 16,
      "time_base": "1/1000",
      "start": 116507224,
      "start_time": "116507.224000",
      "end": 121823537,
      "end_time": "121823.537000",
      "tags": {
        "title": " Chapter 017  - 01:28:36"
      }
    },
    {
      "id": 17,
      "time_base": "1/1000",
      "start": 121823537,
      "start_time": "121823.537000",
      "end": 126762210,
      "end_time": "126762.210000",
      "tags": {
        "title": " Chapter 018  - 01:22:18"
      }
    },
    {
      "id": 18,
      "time_base": "1/1000",
      "start": 126762210,
      "start_time": "126762.210000",
      "end": 134229595,
      "end_time": "134229.595000",
      "tags": {
        "title": " Chapter 019  - 02:04:27"
      }
    },
    {
      "id": 19,
      "time_base": "1/1000",
      "start": 134229595,
      "start_time": "134229.595000",
      "end": 140256260,
      "end_time": "140256.260000",
      "tags": {
        "title": " Chapter 020  - 01:40:26"
      }
    },
    {
      "id": 20,
      "time_base": "1/1000",
      "start": 140256260,
      "start_time": "140256.260000",
      "end": 146382309,
      "end_time": "146382.309000",
      "tags": {
        "title": " Chapter 021  - 01:42:06"
      }
    },
    {
      "id": 21,
      "time_base": "1/1000",
      "start": 146382309,
      "start_time": "146382.309000",
      "end": 148825798,
      "end_time": "148825.798000",
      "tags": {
        "title": " Chapter 022  - 00:40:43"
      }
    },
    {
      "id": 22,
      "time_base": "1/1000",
      "start": 148825798,
      "start_time": "148825.798000",
      "end": 162816023,
      "end_time": "162816.023000",
      "tags": {
        "title": " Chapter 023  - 03:53:10"
      }
    },
    {
      "id": 23,
      "time_base": "1/1000",
      "start": 162816023,
      "start_time": "162816.023000",
      "end": 166338768,
      "end_time": "166338.768000",
      "tags": {
        "title": " Chapter 024  - 00:58:42"
      }
    },
    {
      "id": 24,
      "time_base": "1/1000",
      "start": 166338768,
      "start_time": "166338.768000",
      "end": 173492305,
      "end_time": "173492.305000",
      "tags": {
        "title": " Chapter 025  - 01:59:13"
      }
    },
    {
      "id": 25,
      "time_base": "1/1000",
      "start": 173492305,
      "start_time": "173492.305000",
      "end": 179681402,
      "end_time": "179681.402000",
      "tags": {
        "title": " Chapter 026  - 01:43:09"
      }
    },
    {
      "id": 26,
      "time_base": "1/1000",
      "start": 179681402,
      "start_time": "179681.402000",
      "end": 183857643,
      "end_time": "183857.643000",
      "tags": {
        "title": " Chapter 027  - 01:09:36"
      }
    },
    {
      "id": 27,
      "time_base": "1/1000",
      "start": 183857643,
      "start_time": "183857.643000",
      "end": 185411068,
      "end_time": "185411.068000",
      "tags": {
        "title": " Chapter 028  - 00:25:53"
      }
    },
    {
      "id": 28,
      "time_base": "1/1000",
      "start": 185411068,
      "start_time": "185411.068000",
      "end": 186983909,
      "end_time": "186983.909000",
      "tags": {
        "title": " Chapter 029  - 00:26:12"
      }
    }
  ],
  "format": {
    "filename": "/audiobooks/Stephen King/IT/Stephen King - IT.m4b",
    "nb_streams": 2,
    "nb_programs": 0,
    "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
    "format_long_name": "QuickTime / MOV",
    "start_time": "0.000000",
    "duration": "186983.930313",
    "size": "7035427987",
    "bit_rate": "301006",
    "probe_score": 100,
    "tags": {
      "major_brand": "M4A ",
      "minor_version": "512",
      "compatible_brands": "M4A isomiso2",
      "title": "IT",
      "artist": "Stephen King",
      "composer": "Lorenzo Loreti",
      "album": "IT",
      "date": "2020",
      "encoder": "Lavf58.76.100",
      "genre": "Audiolibro",
      "media_type": "2",
      "track": "1"
    }
  }
}
advplyr commented 10 months ago

I'm not seeing anything unusual. I'm guessing it's some encoding issue that I could only confirm if I had the audio file. You can try re-encoding it

lukethehawk commented 10 months ago

I'm not seeing anything unusual. I'm guessing it's some encoding issue that I could only confirm if I had the audio file. You can try re-encoding it

Ok, I'll try re-encoding. Thanks for your help