Jump to content

Playback of Bandcamp ALAC songs cut off prematurely


numinit

Recommended Posts

OK, did some debugging myself. This seems like a client issue.

 

The M3U8 playlist generated ends like this:

#EXTINF:3.0000, nodesc
hls1/main/90.ts?UserId=7eb7544e9e3245fba42efb682895bb9b&DeviceId=TW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTNfNikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzY4LjAuMzQ0MC4xMDYgU2FmYXJpLzUzNy4zNnwxNTM0ODM2MTkwNDE1&MaxStreamingBitrate=140000000&Container=opus%2Cmp3%7Cmp3%2Caac%2Cm4a%7Caac%2Cflac%2Cwebma%2Cwebm%2Cwav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&api_key=04fc489ae24a43a1aa52e86fb00c4d82&PlaySessionId=1536554922762&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false&SegmentContainer=ts&AudioBitrate=384000&TranscodeReasons=AudioCodecNotSupported
#EXTINF:3.0000, nodesc
hls1/main/91.ts?UserId=7eb7544e9e3245fba42efb682895bb9b&DeviceId=TW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTNfNikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzY4LjAuMzQ0MC4xMDYgU2FmYXJpLzUzNy4zNnwxNTM0ODM2MTkwNDE1&MaxStreamingBitrate=140000000&Container=opus%2Cmp3%7Cmp3%2Caac%2Cm4a%7Caac%2Cflac%2Cwebma%2Cwebm%2Cwav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&api_key=04fc489ae24a43a1aa52e86fb00c4d82&PlaySessionId=1536554922762&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false&SegmentContainer=ts&AudioBitrate=384000&TranscodeReasons=AudioCodecNotSupported
#EXTINF:3.0000, nodesc
hls1/main/92.ts?UserId=7eb7544e9e3245fba42efb682895bb9b&DeviceId=TW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTNfNikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzY4LjAuMzQ0MC4xMDYgU2FmYXJpLzUzNy4zNnwxNTM0ODM2MTkwNDE1&MaxStreamingBitrate=140000000&Container=opus%2Cmp3%7Cmp3%2Caac%2Cm4a%7Caac%2Cflac%2Cwebma%2Cwebm%2Cwav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&api_key=04fc489ae24a43a1aa52e86fb00c4d82&PlaySessionId=1536554922762&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false&SegmentContainer=ts&AudioBitrate=384000&TranscodeReasons=AudioCodecNotSupported
#EXTINF:3.0000, nodesc
hls1/main/93.ts?UserId=7eb7544e9e3245fba42efb682895bb9b&DeviceId=TW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTNfNikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzY4LjAuMzQ0MC4xMDYgU2FmYXJpLzUzNy4zNnwxNTM0ODM2MTkwNDE1&MaxStreamingBitrate=140000000&Container=opus%2Cmp3%7Cmp3%2Caac%2Cm4a%7Caac%2Cflac%2Cwebma%2Cwebm%2Cwav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&api_key=04fc489ae24a43a1aa52e86fb00c4d82&PlaySessionId=1536554922762&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false&SegmentContainer=ts&AudioBitrate=384000&TranscodeReasons=AudioCodecNotSupported
#EXTINF:3.0000, nodesc
hls1/main/94.ts?UserId=7eb7544e9e3245fba42efb682895bb9b&DeviceId=TW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTNfNikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzY4LjAuMzQ0MC4xMDYgU2FmYXJpLzUzNy4zNnwxNTM0ODM2MTkwNDE1&MaxStreamingBitrate=140000000&Container=opus%2Cmp3%7Cmp3%2Caac%2Cm4a%7Caac%2Cflac%2Cwebma%2Cwebm%2Cwav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&api_key=04fc489ae24a43a1aa52e86fb00c4d82&PlaySessionId=1536554922762&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false&SegmentContainer=ts&AudioBitrate=384000&TranscodeReasons=AudioCodecNotSupported
#EXTINF:3.0000, nodesc
hls1/main/95.ts?UserId=7eb7544e9e3245fba42efb682895bb9b&DeviceId=TW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTNfNikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzY4LjAuMzQ0MC4xMDYgU2FmYXJpLzUzNy4zNnwxNTM0ODM2MTkwNDE1&MaxStreamingBitrate=140000000&Container=opus%2Cmp3%7Cmp3%2Caac%2Cm4a%7Caac%2Cflac%2Cwebma%2Cwebm%2Cwav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&api_key=04fc489ae24a43a1aa52e86fb00c4d82&PlaySessionId=1536554922762&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false&SegmentContainer=ts&AudioBitrate=384000&TranscodeReasons=AudioCodecNotSupported
#EXTINF:1.8980, nodesc
hls1/main/96.ts?UserId=7eb7544e9e3245fba42efb682895bb9b&DeviceId=TW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTNfNikgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzY4LjAuMzQ0MC4xMDYgU2FmYXJpLzUzNy4zNnwxNTM0ODM2MTkwNDE1&MaxStreamingBitrate=140000000&Container=opus%2Cmp3%7Cmp3%2Caac%2Cm4a%7Caac%2Cflac%2Cwebma%2Cwebm%2Cwav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&api_key=04fc489ae24a43a1aa52e86fb00c4d82&PlaySessionId=1536554922762&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false&SegmentContainer=ts&AudioBitrate=384000&TranscodeReasons=AudioCodecNotSupported
#EXT-X-ENDLIST

This is what I see in the network inspector.

 

5b95f81c47aa1_ScreenShot20180909at95018P

 

84 is the last one fetched in the first batch. Later, it fetches the ones at the end (95/96.ts), which are indeed the end of the song (I verified with VLC), but never seems to play them.

Link to comment
Share on other sites

Attached. Thanks for taking a look.

 

edit: Let me know once you download it so I can delete it.

edit 2: deleted

Edited by numinit
Link to comment
Share on other sites

I'm using the version of Emby packaged with NixOS. Yeah, the maintainers of that package used the ffmpeg bundled with NixOS. That sounds like it might be the problem.

Here's the startup log - notice that they have a wrapper around Emby that adds the -ffmpeg and -ffprobe arguments. Those paths are NixOS' ffmpeg and ffprobe packages; wonder if there's some known issue with those involving timestamping.

In any case, thanks for the help; I'll see if I can bring that issue up with the maintainers.
 

2018-09-20 06:30:52.882 Info Main: Emby
Command line: /nix/store/npzdaccqd0k37zb6zv6hzva5y5ifkjsj-emby-3.5.2.0/bin/MediaBrowser.Server.Mono.exe -ffmpeg /nix/store/3274k30sa4zfcprgy37dv4nazyal4lnj-ffmpeg-3.4.4-bin/bin/ffmpeg -ffprobe /nix/store/3274k30sa4zfcprgy37dv4nazyal4lnj-ffmpeg-3.4.4-bin/bin/ffprobe
Operating system: Unix 4.14.67.1
64-Bit OS: True
64-Bit Process: True
User Interactive: False
Mono: 5.4.1.6 (tarball Sat Sep 1 11:04:27 UTC 2018)
Processor count: 12
Program data path: /var/lib/emby/ProgramData-Server
Application directory: /nix/store/npzdaccqd0k37zb6zv6hzva5y5ifkjsj-emby-3.5.2.0/bin
2018-09-20 06:30:53.105 Info App: Application version: 3.5.2.0
2018-09-20 06:30:53.106 Info App: Loading assemblies
2018-09-20 06:30:53.109 Info App: File /var/lib/emby/ProgramData-Server/plugins/Emby.Server.CinemaMode.dll has version 1.0.2.0
2018-09-20 06:30:53.110 Info App: File /nix/store/npzdaccqd0k37zb6zv6hzva5y5ifkjsj-emby-3.5.2.0/bin/plugins/Emby.Server.CinemaMode.dll has version 1.0.2.0
2018-09-20 06:30:53.110 Info App: File /var/lib/emby/ProgramData-Server/plugins/IMVDb.dll has version 1.0.1.0
2018-09-20 06:30:53.110 Info App: File /nix/store/npzdaccqd0k37zb6zv6hzva5y5ifkjsj-emby-3.5.2.0/bin/plugins/IMVDb.dll has version 1.0.1.0
2018-09-20 06:30:53.110 Info App: File /var/lib/emby/ProgramData-Server/plugins/OpenSubtitles.dll has version 1.0.2.0
2018-09-20 06:30:53.110 Info App: File /nix/store/npzdaccqd0k37zb6zv6hzva5y5ifkjsj-emby-3.5.2.0/bin/plugins/OpenSubtitles.dll has version 1.0.2.

[snip]

2018-09-20 06:30:56.136 Info MediaEncoder: FFMpeg: /nix/store/3274k30sa4zfcprgy37dv4nazyal4lnj-ffmpeg-3.4.4-bin/bin/ffmpeg
2018-09-20 06:30:56.136 Info MediaEncoder: FFProbe: /nix/store/3274k30sa4zfcprgy37dv4nazyal4lnj-ffmpeg-3.4.4-bin/bin/ffprobe
2018-09-20 06:30:56.137 Info MediaEncoder: Validating media encoder at /nix/store/3274k30sa4zfcprgy37dv4nazyal4lnj-ffmpeg-3.4.4-bin/bin/ffmpeg
2018-09-20 06:30:56.138 Info MediaEncoder: Running /nix/store/3274k30sa4zfcprgy37dv4nazyal4lnj-ffmpeg-3.4.4-bin/bin/ffmpeg -decoders
Edited by numinit
Link to comment
Share on other sites

Did some more testing. I'm using Chrome 69.0.3497.100. I also tried a completely separate user profile in Chrome without any extensions (to isolate adblock, etc); the same problematic song stops on 4:11.

 

Tried Firefox, it works there.

 

Re-attaching the zipped song; this doesn't really seem like ffmpeg anymore.

 

edit: song once again deleted.

Edited by numinit
Link to comment
Share on other sites

Songs from the same album seem affected as well. I've seen a few other ALAC songs from Bandcamp exhibit similar behavior, but not all of them.

Link to comment
Share on other sites

Ok yes i can reproduce this. The problem might be in the hls.js library that we're using as this is only happening in browsers that require us to use that.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...