Jump to content

FLAC audio not transcoded


Recommended Posts

hendrysetiadi
Posted

Hi...

It seems all my FLAC audio not transcoded into MP3 with lower bitrate.

image.png.462abf5c865c3c863666cfd66167db9a.png

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
Posted

but i change it into 128kb bitrate, and check on the emby server seems not transcode all my FLAC files. what's wromg ?

image.png.462abf5c865c3c863666cfd66167db9a.png

Posted
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 ?

image.png.462abf5c865c3c863666cfd66167db9a.png

Hi, you changed what exactly? Where?

Posted

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
Posted
10 hours ago, Luke said:

Hi, you changed what exactly? Where?

Here, from symfonium setting i set 96kbps bitrate for playing music files.

Screenshot_20230427_084213.thumb.jpg.651b4ce3c1ce4156f10b7cab46b9ca7d.jpg

 

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
Posted
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. 

Posted

How does it compare if you play in the emby web app or android app?

Posted
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?

hendrysetiadi
Posted
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 ?

Posted

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
Posted
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

Posted

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 ->)

 

image.png.5d54dffccbce53089391c18700b63147.png

 

 
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
Posted

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 ?

Posted

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
Posted
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 ?

Posted

Because OPUS is a million times better than MP3 ....

Posted
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.

Posted

@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.

 

 

Posted
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
Posted

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))

Posted
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 ->)

 

image.png.5d54dffccbce53089391c18700b63147.png

 

 
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
Posted

Ok, I'll try again when 4.8 is out and report here if I still see this.

  • Thanks 1

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...