hendrysetiadi 1 Posted April 26, 2023 Posted April 26, 2023 Hi... It seems all my FLAC audio not transcoded into MP3 with lower bitrate. As you can see, it still played with FLAC format. Even i set on symfonium apk to play with only 128kb bitrate. But it still took high bandwidth. Thanks
hendrysetiadi 1 Posted April 26, 2023 Author Posted April 26, 2023 but i change it into 128kb bitrate, and check on the emby server seems not transcode all my FLAC files. what's wromg ?
hendrysetiadi 1 Posted April 26, 2023 Author Posted April 26, 2023 (edited) from this log, i see the flac files i played never being transcoded into mp3. this is the setting from symfonium apk ffmpeg-transcode-8b339352-c071-4c52-bda7-985c13ed81b8_1.txt Edited April 26, 2023 by hendrysetiadi
Luke 42079 Posted April 26, 2023 Posted April 26, 2023 8 hours ago, hendrysetiadi said: but i change it into 128kb bitrate, and check on the emby server seems not transcode all my FLAC files. what's wromg ? Hi, you changed what exactly? Where?
Tolriq 141 Posted April 26, 2023 Posted April 26, 2023 Found this by luck via Google alert You should always contact me directly when issues with Symfonium. From the transcode logs there's proper transcoding, the Emby dashboard should say that it's transcoding. I'd need logs please open an issue at https://support.symfonium.app/c/support/5 and fill the template.
hendrysetiadi 1 Posted April 27, 2023 Author Posted April 27, 2023 10 hours ago, Luke said: Hi, you changed what exactly? Where? Here, from symfonium setting i set 96kbps bitrate for playing music files. But why on the emby screen showing only direct play not transcoding.. i'm afraid it still using full FLAC format which took much bandwidth for my mobile data. How to make sure it's really transcoded or not?
hendrysetiadi 1 Posted April 27, 2023 Author Posted April 27, 2023 6 hours ago, Tolriq said: Found this by luck via Google alert You should always contact me directly when issues with Symfonium. From the transcode logs there's proper transcoding, the Emby dashboard should say that it's transcoding. I'd need logs please open an issue at https://support.symfonium.app/c/support/5 and fill the template. So this issue related to emby server not from symfonium app side? What i need to know is, how to make sure it is really transcoded into mp3 or not? Because i search from the log didn't find mp3. On the emby page only show direct play not transcode.. it makes me worry to play FLAC files while it will force to use high bandwidth on my mobile data usage.
Luke 42079 Posted April 27, 2023 Posted April 27, 2023 How does it compare if you play in the emby web app or android app?
Tolriq 141 Posted April 27, 2023 Posted April 27, 2023 3 hours ago, hendrysetiadi said: So this issue related to emby server not from symfonium app side? Not necessarily hence why I asked for Symfonium logs. @LukeJust in case something changed. I report the now playing with a post to PlayingItems PlayMethod=Transcode (and same as Json body). Does this still work or it's something else now?
Tolriq 141 Posted April 27, 2023 Posted April 27, 2023 Ok so just tested and Symfonium properly send the PlayMethod with correct value but the dashboard now ignores it. Checking Swagger http://swagger.emby.media/?staticview=true#/PlaystateService/postUsersByUseridPlayingitemsByIdProgress it seems that it was not changed. But I also see that MediaSourceId is now required? So maybe it's a side effect of that change as I currently do not send it.
hendrysetiadi 1 Posted April 27, 2023 Author Posted April 27, 2023 1 hour ago, Tolriq said: Not necessarily hence why I asked for Symfonium logs. @LukeJust in case something changed. I report the now playing with a post to PlayingItems PlayMethod=Transcode (and same as Json body). Does this still work or it's something else now? Hi, how to get symfonium log ?
Tolriq 141 Posted April 27, 2023 Posted April 27, 2023 It was all explained in the template you deleted on Symfonium forum But anyway I was able to reproduce, seems something changed on Emby side and I need to pass more data. For your case just be assured that even if the Emby dashboard does not say it you are transcoding. Symfonium UI will says that you are playing OPUS not FLAC.
hendrysetiadi 1 Posted April 27, 2023 Author Posted April 27, 2023 24 minutes ago, Tolriq said: It was all explained in the template you deleted on Symfonium forum But anyway I was able to reproduce, seems something changed on Emby side and I need to pass more data. For your case just be assured that even if the Emby dashboard does not say it you are transcoding. Symfonium UI will says that you are playing OPUS not FLAC. Here's the log.. Symfonium log
Tolriq 141 Posted April 27, 2023 Posted April 27, 2023 Ok so @Lukewas able to trigger a bug. When transcoding is ultra fast and finish before the first playback report the dashboard will fail. (Notice how the Stream does not display any value after the ->) 2023-04-27 09:24:36.890 Info Server: http/1.1 Response 200 to host1. Time: 1ms. http://192.168.1.80:8096/Items/148057/PlaybackInfo?UserId=6196d32f642f4a29886eefaef1ae5518&AutoOpenLiveStream=true&StartTimeTicks=0&MaxStreamingBitrate=131072 2023-04-27 09:24:36.970 Info Server: http/1.1 GET http://192.168.1.80:8096/audio/148057/stream.ogg?DeviceId=6CD5513EAB54D9DCCC60D70E7B25E44B&MediaSourceId=0d118f63f45be5987421e35f22b27fe9&PlaySessionId=4c2e5f3f06ea4d1f8d39b1bf2b16c353&AudioCodec=opus&AudioBitrate=131072&AudioStreamIndex=0&TranscodingMaxAudioChannels=6. UserAgent: Lavf/59.27.100 2023-04-27 09:24:36.977 Info App: ProcessRun 'StreamTranscode bc46c5' Execute: C:\Prog\Emby\system\ffmpeg.exe -loglevel +timing -y -print_graphs_file "C:\Prog\Emby\logs\ffmpeg-transcode-bc46c53a-84db-46c2-b4b9-cc92d72ec332_1graph.txt" -f mov,mp4,m4a,3gp,3g2,mj2 -c:v:0 mjpeg -i "F:\FakeLibrary2\02. Sophomore.m4a" -map 0:0 -vn -sn -c:a:0 libopus -ab:a:0 131072 -ac:a:0 2 "C:\Prog\Emby\transcoding-temp\D69F21\D69F21.ogg" 2023-04-27 09:24:38.067 Info Server: http/1.1 Response 200 to host1. Time: 1097ms. http://192.168.1.80:8096/audio/148057/stream.ogg?DeviceId=6CD5513EAB54D9DCCC60D70E7B25E44B&MediaSourceId=0d118f63f45be5987421e35f22b27fe9&PlaySessionId=4c2e5f3f06ea4d1f8d39b1bf2b16c353&AudioCodec=opus&AudioBitrate=131072&AudioStreamIndex=0&TranscodingMaxAudioChannels=6 2023-04-27 09:24:38.192 Info Server: http/1.1 GET http://192.168.1.80:8096/audio/148057/stream.ogg?DeviceId=6CD5513EAB54D9DCCC60D70E7B25E44B&MediaSourceId=0d118f63f45be5987421e35f22b27fe9&PlaySessionId=4c2e5f3f06ea4d1f8d39b1bf2b16c353&AudioCodec=opus&AudioBitrate=131072&AudioStreamIndex=0&TranscodingMaxAudioChannels=6. UserAgent: Symfonium/5.2.0 (Linux;Android 13) 2023-04-27 09:24:38.227 Info App: AppendExtraLogData - Read graph file: C:\Prog\Emby\logs\ffmpeg-transcode-bc46c53a-84db-46c2-b4b9-cc92d72ec332_1graph.txt 2023-04-27 09:24:38.227 Info App: AppendExtraLogData - Deserialized GraphData fileStream: 6 709,00 bytes Graph Count: 1 2023-04-27 09:24:38.227 Info App: AppendExtraLogData - File Deleted 2023-04-27 09:24:38.228 Info App: ProcessRun 'StreamTranscode bc46c5' Process exited with code 0 - Succeeded 2023-04-27 09:24:38.319 Info Server: http/1.1 POST http://192.168.1.80:8096/Users/6196d32f642f4a29886eefaef1ae5518/PlayingItems/148057/Progress?PositionTicks=0&MediaSourceId=0d118f63f45be5987421e35f22b27fe9&PlayMethod=Transcode&IsPaused=False&PlaySessionId=4c2e5f3f06ea4d1f8d39b1bf2b16c353. UserAgent: Symfonium/5.2.0 (Linux;Android 13) ffmpeg-transcode-bc46c53a-84db-46c2-b4b9-cc92d72ec332_1.txt
hendrysetiadi 1 Posted April 27, 2023 Author Posted April 27, 2023 So, this is the matter on what is displayed on dashboard ? Actually the files has been transcoded ? But how i know and make sure that's really was transcoded ?
Tolriq 141 Posted April 27, 2023 Posted April 27, 2023 As I said you see on Symfonium side, it will display OPUS as the codec when it transcode. And yes the file is transcoded.
hendrysetiadi 1 Posted April 27, 2023 Author Posted April 27, 2023 5 minutes ago, Tolriq said: As I said you see on Symfonium side, it will display OPUS as the codec when it transcode. And yes the file is transcoded. then it's transcoded into OPUS ? Why not MP3 ?
Tolriq 141 Posted April 27, 2023 Posted April 27, 2023 Because OPUS is a million times better than MP3 ....
Luke 42079 Posted April 28, 2023 Posted April 28, 2023 22 hours ago, Tolriq said: Not necessarily hence why I asked for Symfonium logs. @LukeJust in case something changed. I report the now playing with a post to PlayingItems PlayMethod=Transcode (and same as Json body). Does this still work or it's something else now? Yes, do your reports contain the same Id, MediaSourceId and PlaySessionId values as your streaming url? I would check that.
Tolriq 141 Posted April 28, 2023 Posted April 28, 2023 @Luke I do not return the MediaSourceId as it's all music and never needed it so the internals do not have it. But it still works without it. There was spam after but see that other post for a bug.
Luke 42079 Posted May 1, 2023 Posted May 1, 2023 On 4/28/2023 at 1:22 AM, Tolriq said: @Luke I do not return the MediaSourceId as it's all music and never needed it so the internals do not have it. But it still works without it. There was spam after but see that other post for a bug. How are you constructing the stream url?
Tolriq 141 Posted May 1, 2023 Posted May 1, 2023 I use the one Emby provides from PlaybackInfo with a proper profile usually in the TranscodingUrl field. But the issue I explain in that post is really a race condition. Everything works, it's just that if the client app does not call PlayingItems before the transcoding is finished then the dashboard will failed as shown in the screenshot and logs. This can happen on fast servers for some apps like Symfonium that only start reporting playback when the playback actually starts and not during preparation / buffering. (Mostly for support of others servers that can fails during preparation but would still count a play count ... (not Emby))
Luke 42079 Posted May 1, 2023 Posted May 1, 2023 On 4/27/2023 at 3:34 AM, Tolriq said: Ok so @Lukewas able to trigger a bug. When transcoding is ultra fast and finish before the first playback report the dashboard will fail. (Notice how the Stream does not display any value after the ->) 2023-04-27 09:24:36.890 Info Server: http/1.1 Response 200 to host1. Time: 1ms. http://192.168.1.80:8096/Items/148057/PlaybackInfo?UserId=6196d32f642f4a29886eefaef1ae5518&AutoOpenLiveStream=true&StartTimeTicks=0&MaxStreamingBitrate=131072 2023-04-27 09:24:36.970 Info Server: http/1.1 GET http://192.168.1.80:8096/audio/148057/stream.ogg?DeviceId=6CD5513EAB54D9DCCC60D70E7B25E44B&MediaSourceId=0d118f63f45be5987421e35f22b27fe9&PlaySessionId=4c2e5f3f06ea4d1f8d39b1bf2b16c353&AudioCodec=opus&AudioBitrate=131072&AudioStreamIndex=0&TranscodingMaxAudioChannels=6. UserAgent: Lavf/59.27.100 2023-04-27 09:24:36.977 Info App: ProcessRun 'StreamTranscode bc46c5' Execute: C:\Prog\Emby\system\ffmpeg.exe -loglevel +timing -y -print_graphs_file "C:\Prog\Emby\logs\ffmpeg-transcode-bc46c53a-84db-46c2-b4b9-cc92d72ec332_1graph.txt" -f mov,mp4,m4a,3gp,3g2,mj2 -c:v:0 mjpeg -i "F:\FakeLibrary2\02. Sophomore.m4a" -map 0:0 -vn -sn -c:a:0 libopus -ab:a:0 131072 -ac:a:0 2 "C:\Prog\Emby\transcoding-temp\D69F21\D69F21.ogg" 2023-04-27 09:24:38.067 Info Server: http/1.1 Response 200 to host1. Time: 1097ms. http://192.168.1.80:8096/audio/148057/stream.ogg?DeviceId=6CD5513EAB54D9DCCC60D70E7B25E44B&MediaSourceId=0d118f63f45be5987421e35f22b27fe9&PlaySessionId=4c2e5f3f06ea4d1f8d39b1bf2b16c353&AudioCodec=opus&AudioBitrate=131072&AudioStreamIndex=0&TranscodingMaxAudioChannels=6 2023-04-27 09:24:38.192 Info Server: http/1.1 GET http://192.168.1.80:8096/audio/148057/stream.ogg?DeviceId=6CD5513EAB54D9DCCC60D70E7B25E44B&MediaSourceId=0d118f63f45be5987421e35f22b27fe9&PlaySessionId=4c2e5f3f06ea4d1f8d39b1bf2b16c353&AudioCodec=opus&AudioBitrate=131072&AudioStreamIndex=0&TranscodingMaxAudioChannels=6. UserAgent: Symfonium/5.2.0 (Linux;Android 13) 2023-04-27 09:24:38.227 Info App: AppendExtraLogData - Read graph file: C:\Prog\Emby\logs\ffmpeg-transcode-bc46c53a-84db-46c2-b4b9-cc92d72ec332_1graph.txt 2023-04-27 09:24:38.227 Info App: AppendExtraLogData - Deserialized GraphData fileStream: 6 709,00 bytes Graph Count: 1 2023-04-27 09:24:38.227 Info App: AppendExtraLogData - File Deleted 2023-04-27 09:24:38.228 Info App: ProcessRun 'StreamTranscode bc46c5' Process exited with code 0 - Succeeded 2023-04-27 09:24:38.319 Info Server: http/1.1 POST http://192.168.1.80:8096/Users/6196d32f642f4a29886eefaef1ae5518/PlayingItems/148057/Progress?PositionTicks=0&MediaSourceId=0d118f63f45be5987421e35f22b27fe9&PlayMethod=Transcode&IsPaused=False&PlaySessionId=4c2e5f3f06ea4d1f8d39b1bf2b16c353. UserAgent: Symfonium/5.2.0 (Linux;Android 13) ffmpeg-transcode-bc46c53a-84db-46c2-b4b9-cc92d72ec332_1.txt 27.74 kB · 1 download OK thanks. The good news is I simulated this using the 4.8 beta and could not reproduce, so perhaps a fix has been made relating to this reporting.
Tolriq 141 Posted May 2, 2023 Posted May 2, 2023 Ok, I'll try again when 4.8 is out and report here if I still see this. 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now