Jump to content

Bad Experience on transcode a movie with PGSSUB inside


LoyidoGu

Recommended Posts

LoyidoGu

Here is my server log. My server is installed on Synology 920+ and i can use HW transcoding watching movie without PGSSUB smoothly. But if i select a PGSSUB while playing the movie. it stucked.

 

I have to wait about 15 seconds for 2-3 seconds's play time.

 

Can anyone helps me find out what's going on?

ffmpeg-transcode-a7dd33a5-d42d-42c4-8d4b-da74ec3ed329_1.txt embyserver.txt

Link to comment
Share on other sites

Hi, your server might not be able to handle transcoding pgs subtitles. What is the quality setting set to in the iOS app? Try raising it and that might allow you to avoid the transcoding altogether.

Link to comment
Share on other sites

LoyidoGu
18 hours ago, Luke said:

Hi, your server might not be able to handle transcoding pgs subtitles. What is the quality setting set to in the iOS app? Try raising it and that might allow you to avoid the transcoding altogether.

Thanks a lot. I just disabled the hardware transcoding on sever part and using local decoding instead. It works well. But Some PGSSUB come to invisible in some movie (not everyone). 

217492555__16673062113435.thumb.png.329f0bbd0b9201076fb8fa392ce1d124.png

 

 

Here is my quality setting. I also tried Direct play, but hte problem still here.

1179076946__16673062362319.thumb.png.2ea801472308c7f8c92242e1ea126c06.png

 

Please help me figure out which part goes wrong, thanks!

embyserver.txt ffmpeg-directstream-21dc4e72-9e92-45cf-aa9c-69799d9f9758_1.txt

Link to comment
Share on other sites

No but you've restricted user access to transcoding, and this is going to cause the quality setting to not work properly. Try enabling those permissions and then see how it compares. Thanks.

Link to comment
Share on other sites

LoyidoGu
14 minutes ago, Luke said:

No but you've restricted user access to transcoding, and this is going to cause the quality setting to not work properly. Try enabling those permissions and then see how it compares. Thanks.

It works!

87428576__16673594176525.png.1202e18fdcc6200a47421936bfd757e0.png

e3a52072-ef1f-4cd6-873a-759df8022cf0.thumb.jpg.bdc51478b6d4a77209c4d755b3ad4c9f.jpg

But if i enadble those premissions, the server will automatically transcode them on server. And my server might not be able to handle transcoding pgs subtitles....The transcode process is very slow and i need to wait for a very long time. (only 2.2 fps per second)

I find that invisible PGSSUB happens on the stream transcode (MKV transcode to HLS) with server transcoding disabled. if i disable all those three option, i can see PGSSUB in this movie. 639978648__16673589483030.png.8cb0703f250cbcabbeb6aa2ec42fbde5.png

If i just enable the last one (allow changing of conatiner formats), the PGSSUB gone. 

The reason why i need to disable the Video trancoding is because i don't need movie transcode on sever (too slow) and chaning conatiner formats to HLS is very useful while network situation is not good enough to handle direct play. 

So that's like a deadloop. If i enable transcoding premission, i can see PGSSUB, but it will transcode the movie on server and it can't even see the movie. If i disable transcoding, the playback is smooth but i can‘t see PGSSUB in some movie....

 

ffmpeg transcode fiile i posted is the playback that i enable all transcoding options. 

 

ffmpeg-transcode-f9254777-a8de-489f-9aea-51b327bdde2d_1.txt embyserver.txt

Link to comment
Share on other sites

Quote

The reason why i need to disable the Video trancoding is because i don't need movie transcode on sever

The reason why you should still enable it anyway is because the server won't transcode unless it's the only way to play.

In this case it looks like the iOS app tried to direct play, then had a problem with the file and switched to transcoding. So we should try to get to the bottom of that. Are you inside the local network or outside?

Link to comment
Share on other sites

LoyidoGu
28 minutes ago, Luke said:

In this case it looks like the iOS app tried to direct play, then had a problem with the file and switched to transcoding. So we should try to get to the bottom of that. Are you inside the local network or outside?

I'm outside now. Will back in 6 hours. 

What can i do to figure out what's going on on iOS app ?

Edited by LoyidoGu
Link to comment
Share on other sites

LoyidoGu
24 minutes ago, Luke said:

The reason why you should still enable it anyway is because the server won't transcode unless it's the only way to play.

Thanks, I will keep those option enabled.

Link to comment
Share on other sites

LoyidoGu
3 hours ago, Luke said:

The reason why you should still enable it anyway is because the server won't transcode unless it's the only way to play.

In this case it looks like the iOS app tried to direct play, then had a problem with the file and switched to transcoding. So we should try to get to the bottom of that. Are you inside the local network or outside?

I've done some test and has some questions:

 

1.Playback information and playback logic Confuse

If Stream shows

MKV (73 mbps)
 --> HLS (40 mbps 832 fps)
Reducing bitrate due to quality setting

The playing Video must be encoded (must happen on server) to lower the Bitrate. Is that right?

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

If So, this kind of playback information confused me. What's the stream shows? It Compressed what from 73 mbps to 40 mbps?

Looks like the PGSSUB gose to transcoding path which i disabled (because stream shows the movie need to reducing bitrate) but the movie use direct playing path (different from encoding path), so that it becomes invisible.

image.png.0b228e582b43c4b5ef0635b21fc0bc21.png

 

In order to reproduce this situation, i have changed thoese setting: 

quality setting: 

image.png.bd727aace01a37e34da4308550e78f2b.png

User playback Setting: (I know this kind of setting is not correct, just for discussing) 

image.thumb.png.fded1a6b65f961db20732803019bdf90.png

 

 

2. IOS app Playback Problem

From the play back information, it's trying to encode it to a higher bitrate.

image.png.7d7283df59dea2ffceb1edd511025fbe.png

Here is my Quality Setting. I'm testing it outside. 

470d42f2-24f4-4b9a-bf72-9a9be138d549.jpg.1a813922038bde1d1c0c91a427a6b7cf.jpg

 

The FFmpeg and server file is IOS playback log with transcoding (should be direct play). 

embyserver.txt ffmpeg-transcode-715942c1-1fba-4933-9825-849c85c9154c_1.txt

Edited by LoyidoGu
add more detail
Link to comment
Share on other sites

Happy2Play
4 hours ago, LoyidoGu said:

The FFmpeg and server file is IOS playback log with transcoding (should be direct play). 

But you are trying to play unsupported codecs that will not direct play

device returned capabilities

http://xxxxxx.xxxxxx.xxe:8100/emby/videos/34334/main.m3u8?DeviceId=97ABBE1C-7E69-4227-8A8F-7EF3EAB6132B&MediaSourceId=a07108ee3865b78579eddb7b46b4ac88&PlaySessionId=5e89093cfa7a433aa4586dae7fc96861&api_key=cfd802b209d94449800f805bd10ee7c1&VideoCodec=h264,hevc,mpeg2video&AudioCodec=ac3,mp3,aac&VideoBitrate=79616000&AudioBitrate=384000&AudioStreamIndex=1&TranscodingMaxAudioChannels=6&SegmentContainer=ts&SegmentLength=3&MinSegments=1&BreakOnNonKeyFrames=True&hevc-profile=Main,Main10&TranscodeReasons=AudioCodecNotSupported,DirectPlayError&allowVideoStreamCopy=false

Audio conversion must happen as TrueHD is not supported.  Which in the end triggers a full transcode.

 

But in reality, I would expect failures at that bitrate across the internet.  As I can't get that from and online gigabit server.

Link to comment
Share on other sites

LoyidoGu
4 hours ago, Happy2Play said:

Audio conversion must happen as TrueHD is not supported.  Which in the end triggers a full transcode.

Thanks a lot! I have done some tests. If i use TureHD to play other Movie, they also triggers a full transcode! 

So it's a bug in IOS app?

Becauce I can play the movie in IOS app with user transcoding setting disabled. So my IOS device should support TrueHD direct playback?

image.png.e0fdd6de45a0da3fd969029875187a07.pngimage.png.9e71928f8e666c77fa8c63eb9c2e6d63.png

 

 

Edited by LoyidoGu
Link to comment
Share on other sites

LoyidoGu
5 minutes ago, Luke said:

iOS does not support TrueHD.

Ok, Thanks for reply.

There is one question left. 

 

Otherwise, Will ios support TrueHD in the future? (maybe with Spatial Audio)

Edited by LoyidoGu
Link to comment
Share on other sites

Happy2Play
1 hour ago, LoyidoGu said:

Thanks a lot! I have done some tests. If i use TureHD to play other Movie, they also triggers a full transcode! 

So it's a bug in IOS app?

Becauce I can play the movie in IOS app with user transcoding setting disabled. So my IOS device should support TrueHD direct playback?

image.png.e0fdd6de45a0da3fd969029875187a07.pngimage.png.9e71928f8e666c77fa8c63eb9c2e6d63.png

 

 

Are you saying you actually get sound while direct playing?

 

1 hour ago, LoyidoGu said:

Ok, Thanks for reply.

There is one question left. 

 

Otherwise, Will ios support TrueHD in the future? (maybe with Spatial Audio)

This would be a question to ask iOS as if they provided support we would use it.

But same question asked about ATV also.

Is there a technical reason why Apple TV’s can’t pass through Dolby TrueHD or DTS HD-MA? : appletv (reddit.com)

 

Link to comment
Share on other sites

LoyidoGu
7 hours ago, Happy2Play said:

Are you saying you actually get sound while direct playing?

Yes, I can hear the sound while playing.

In my mind, If IOS doesn't support TrueHD, i should not hear the sound.

 

 

7 hours ago, Happy2Play said:

This would be a question to ask iOS as if they provided support we would use it.

But same question asked about ATV also.

Is there a technical reason why Apple TV’s can’t pass through Dolby TrueHD or DTS HD-MA? : appletv (reddit.com)

Got it. Thanks for reply. 

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