Jump to content


Photo

Direct Stream transcoding video if PGS subtitles are used


  • Please log in to reply
41 replies to this topic

#21 thegrunge OFFLINE  

thegrunge

    Advanced Member

  • Members
  • 116 posts
  • Local time: 03:10 AM

Posted 19 February 2020 - 01:34 PM

@ebr The sound is in AC3 5.1 and by deactivating the PGS subtitles I fall in direct reading. The same file with the pgs activated on the same device with my plex server is in direct reading. I tested with other type of subtitle other than PGS and I stayed in direct reading with emby. Apart from an incompatibility at the Emby server level with PGS subtitles, I don't really see what it could be.



#22 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52103 posts
  • Local time: 03:10 AM

Posted 19 February 2020 - 02:17 PM

@ebr The sound is in AC3 5.1 and by deactivating the PGS subtitles I fall in direct reading. The same file with the pgs activated on the same device with my plex server is in direct reading. I tested with other type of subtitle other than PGS and I stayed in direct reading with emby. Apart from an incompatibility at the Emby server level with PGS subtitles, I don't really see what it could be.

 

Please post the ffmpeg log that is created when you play that item.



#23 thegrunge OFFLINE  

thegrunge

    Advanced Member

  • Members
  • 116 posts
  • Local time: 03:10 AM

Posted 19 February 2020 - 08:44 PM

@ebr this is a exemple log with pgs subtitle:

 

19:39:28.732 ffmpeg version 4.3.0-emby_2019_11_09 Copyright © 2000-2019 the FFmpeg developers and softworkz for Emby LLC
19:39:28.733 built with clang version 8.0.0 (tags/RELEASE_800/final)
19:39:28.733 Execution Date: 2020-02-19 19:39:28
19:39:28.847 [matroska,webm @ 0x7fb478800000] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
19:39:28.847 [matroska,webm @ 0x7fb478800000] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
19:39:28.847 [matroska,webm @ 0x7fb478800000] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
19:39:28.847 Input #0, matroska,webm, from 'file:/Volumes/My Passport/Films/Video/Winter's Bone 2010 MULTi 1080p BluRay X264 AC3 5.1-TG.mkv':
19:39:28.847 Metadata:
19:39:28.847 title : Winter's Bone 2010 MULTi 1080p BluRay X264 AC3 5.1-TG
19:39:28.847 encoder : libebml v1.3.10 + libmatroska v1.5.2
19:39:28.847 creation_time : 2020-02-15T03:38:20.000000Z
19:39:28.847 Duration: 01:39:58.98, start: 0.000000, bitrate: 6550 kb/s
19:39:28.847 Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1038 [SAR 1:1 DAR 320:173], Level 41, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc, Start-Time 0.005s (default)
19:39:28.847 Metadata:
19:39:28.847 BPS-eng : 5223381
19:39:28.847 DURATION-eng : 01:39:58.952000000
19:39:28.847 NUMBER_OF_FRAMES-eng: 143831
19:39:28.847 NUMBER_OF_BYTES-eng: 3916851934
19:39:28.847 Stream #0:1(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
19:39:28.847 Metadata:
19:39:28.847 title : Français
19:39:28.847 BPS-eng : 640000
19:39:28.847 DURATION-eng : 01:39:58.976000000
19:39:28.847 NUMBER_OF_FRAMES-eng: 187468
19:39:28.847 NUMBER_OF_BYTES-eng: 479918080
19:39:28.847 Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
19:39:28.847 Metadata:
19:39:28.847 title : Anglais
19:39:28.847 BPS-eng : 640000
19:39:28.847 DURATION-eng : 01:39:58.976000000
19:39:28.847 NUMBER_OF_FRAMES-eng: 187468
19:39:28.847 NUMBER_OF_BYTES-eng: 479918080
19:39:28.847 Stream #0:3(fre): Subtitle: hdmv_pgs_subtitle (default)
19:39:28.847 Metadata:
19:39:28.847 title : ForceÌs
19:39:28.847 BPS-eng : 2069
19:39:28.847 DURATION-eng : 00:37:22.991000000
19:39:28.847 NUMBER_OF_FRAMES-eng: 84
19:39:28.847 NUMBER_OF_BYTES-eng: 580358
19:39:28.847 Stream #0:4(fre): Subtitle: hdmv_pgs_subtitle
19:39:28.847 Metadata:
19:39:28.847 title : Complets
19:39:28.847 BPS-eng : 19378
19:39:28.847 DURATION-eng : 01:39:24.292000000
19:39:28.847 NUMBER_OF_FRAMES-eng: 1694
19:39:28.848 NUMBER_OF_BYTES-eng: 14447258
19:39:28.848 Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
19:39:28.848 Metadata:
19:39:28.848 title : Anglais
19:39:28.848 BPS-eng : 26980
19:39:28.848 DURATION-eng : 01:32:26.833000000
19:39:28.848 NUMBER_OF_FRAMES-eng: 1840
19:39:28.848 NUMBER_OF_BYTES-eng: 18707369
19:39:28.849 Stream mapping:
19:39:28.849 Stream #0:0 (h264) -> overlay:main
19:39:28.849 Stream #0:4 (pgssub) -> scale
19:39:28.849 scale -> Stream #0:0 (libx264)
19:39:28.849 Stream #0:1 -> #0:1 (copy)
19:39:28.849 Press [q] to stop, [?] for help
19:39:28.867 [matroska,webm @ 0x7fb478800000] sub2video: using 1920x1038 canvas
19:39:28.870 [libx264 @ 0x7fb47800a800] using SAR=1/1
19:39:28.871 [libx264 @ 0x7fb47800a800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
19:39:28.874 [libx264 @ 0x7fb47800a800] profile Main, level 4.1, 4:2:0, 8-bit
19:39:28.874 [libx264 @ 0x7fb47800a800] 264 - core 157 r2935+10 72db437 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=72 keyint_min=37 scenecut=0 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=22.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3360 vbv_bufsize=6720 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
19:39:28.874 [segment @ 0x7fb478027c00] Opening '/Volumes/My Passport/transcoding-temp/21335a7dd7a109e7f5c853269bbbdeef0.ts.tmp' for writing
19:39:28.874 Output #0, segment, to '/Volumes/My Passport/transcoding-temp/21335a7dd7a109e7f5c853269bbbdeef%d.ts':
19:39:28.874 Metadata:
19:39:28.874 encoder : Lavf58.31.104
19:39:28.874 Stream #0:0: Video: h264 (libx264), yuv420p, 1280x692 [SAR 1:1 DAR 320:173], q=-1--1, 23.98 fps, 90k tbn, 23.98 tbc (default)
19:39:28.874 Metadata:
19:39:28.874 encoder : Lavc58.56.101 libx264
19:39:28.874 Side data:
19:39:28.874 cpb: bitrate max/min/avg: 3360000/0/0 buffer size: 6720000 vbv_delay: N/A
19:39:28.875 Stream #0:1(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
19:39:29.366 frame= 48 fps=0.0 q=27.0 size= 212kB time=00:00:02.49 bitrate= 695.0kbits/s throttle=off speed=4.93x
19:39:29.866 [segment @ 0x7fb478027c00] Opening '/Volumes/My Passport/transcoding-temp/21335a7dd7a109e7f5c853269bbbdeef.m3u8.tmp' for writing
19:39:29.867 SegmentComplete=video:0 Index=0 Start=0.000000 End=3.003000 Duration=3.003000 offset_pts=0 start_pts=0 Frames=72 filename=21335a7dd7a109e7f5c853269bbbdeef0.ts
19:39:29.867 [segment @ 0x7fb478027c00] Opening '/Volumes/My Passport/transcoding-temp/21335a7dd7a109e7f5c853269bbbdeef1.ts.tmp' for writing
19:39:29.868 frame= 93 fps= 91 q=27.0 size= 527kB time=00:00:04.25 bitrate=1014.9kbits/s throttle=off speed=4.18x
19:39:30.378 frame= 138 fps= 91 q=27.0 size= 801kB time=00:00:06.04 bitrate=1085.2kbits/s throttle=off speed=3.98x
>> ThrottleByStreamBufferSize: Playback position unknown
19:39:30.675 [segment @ 0x7fb478027c00] Opening '/Volumes/My Passport/transcoding-temp/21335a7dd7a109e7f5c853269bbbdeef.m3u8.tmp' for writing
19:39:30.677 SegmentComplete=video:0 Index=1 Start=3.003000 End=6.006000 Duration=3.003000 offset_pts=0 start_pts=3003000 Frames=72 filename=21335a7dd7a109e7f5c853269bbbdeef1.ts
19:39:30.677 [segment @ 0x7fb478027c00] Opening '/Volumes/My Passport/transcoding-temp/21335a7dd7a109e7f5c853269bbbdeef2.ts.tmp' for writing
19:39:30.882 frame= 188 fps= 93 q=27.0 size= 1074kB time=00:00:08.09 bitrate=1086.7kbits/s throttle=off speed= 4x
19:39:31.345 [segment @ 0x7fb478027c00] Opening '/Volumes/My Passport/transcoding-temp/21335a7dd7a109e7f5c853269bbbdeef.m3u8.tmp' for writing
19:39:31.347 SegmentComplete=video:0 Index=2 Start=6.006000 End=9.009000 Duration=3.003000 offset_pts=0 start_pts=6006000 Frames=72 filename=21335a7dd7a109e7f5c853269bbbdeef2.ts
19:39:31.347 [segment @ 0x7fb478027c00] Opening '/Volumes/My Passport/transcoding-temp/21335a7dd7a109e7f5c853269bbbdeef3.ts.tmp' for writing
19:39:31.383 frame= 240 fps= 95 q=27.0 size= 1295kB time=00:00:10.40 bitrate=1019.9kbits/s throttle=off speed=4.12x
19:39:31.909 frame= 283 fps= 93 q=27.0 size= 1455kB time=00:00:12.19 bitrate= 977.8kbits/s throttle=off speed= 4x
19:39:32.356 [segment @ 0x7fb478027c00] Opening '/Volumes/My Passport/transcoding-temp/21335a7dd7a109e7f5c853269bbbdeef.m3u8.tmp' for writing
19:39:32.369 SegmentComplete=video:0 Index=3 Start=9.009000 End=12.012000 Duration=3.003000 offset_pts=0 start_pts=9009000 Frames=72 filename=21335a7dd7a109e7f5c853269bbbdeef3.ts
19:39:32.369 [segment @ 0x7fb478027c00] Opening '/Volumes/My Passport/transcoding-temp/21335a7dd7a109e7f5c853269bbbdeef4.ts.tmp' for writing
19:39:32.420 frame= 313 fps= 88 q=27.0 size= 1809kB time=00:00:13.44 bitrate=1102.5kbits/s throttle=off speed=3.78x
>! ThrottleByStreamBufferSize: WARNING - Playback position too close to transcoding position: PlaybackPosition: 00:00:00 - TranscodingPosition: 00:00:13 - ThrottleBuffer: 13s



#24 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52103 posts
  • Local time: 03:10 AM

Posted 20 February 2020 - 11:56 AM

Hi.  Can you please attach the entire log as a file?  Thanks.

 

 

How to Post Log Files

 

When posting in a thread, click "More Reply Options", then click "Attach Files". Zip files are permitted but not preferred - please only zip log files if you receive a file size warning. 


#25 thegrunge OFFLINE  

thegrunge

    Advanced Member

  • Members
  • 116 posts
  • Local time: 03:10 AM

Posted 20 February 2020 - 01:31 PM

@ebr i attach the complet log now. this is .rtf file juste rename .txt if you can't open the file.Thank you!

Attached Files


Edited by thegrunge, 20 February 2020 - 01:32 PM.


#26 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52103 posts
  • Local time: 03:10 AM

Posted 20 February 2020 - 04:14 PM

Okay, so that explains it.  This is a thread in the Android TV forum but you are using the Samsung TV app.  The different apps and platforms have different capabilities.  Indeed, the Samsung app cannot display PGS subs so your best bet is to obtain text-based subtitles.

 

Thanks.



#27 thegrunge OFFLINE  

thegrunge

    Advanced Member

  • Members
  • 116 posts
  • Local time: 03:10 AM

Posted 20 February 2020 - 04:46 PM

@ebr oh ok but this is the same things on amazon firestick and it work with android. This time according to Emby the reason for the transoding would be the audio format ... but in the log we always see a problem with the subtitles pgs and we must not forget that the same file plays in direct reading without subtitle and with the same device on my plex server, so audio is not the real problem. On my iphone the same movies is direct play, but the same problème with my chromecast.

 

Thank you

Attached Files


Edited by thegrunge, 20 February 2020 - 06:32 PM.


#28 thegrunge OFFLINE  

thegrunge

    Advanced Member

  • Members
  • 116 posts
  • Local time: 03:10 AM

Posted 21 February 2020 - 07:25 PM

@ebr Wouldn't that be a problem with server-level codecs? I don't understand why with Emby I transcode with pgs but not with plex with the same device

 

Thank you


Edited by thegrunge, 21 February 2020 - 07:27 PM.


#29 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157225 posts
  • Local time: 03:10 AM

Posted 21 February 2020 - 07:37 PM

@ebr Wouldn't that be a problem with server-level codecs? I don't understand why with Emby I transcode with pgs but not with plex with the same device

 

Thank you

We both use the same google exoplayer to play videos:

https://github.com/google/ExoPlayer

They have done additional development on their own private version of exoplayer to support PGS. We may eventually get there as well.



#30 thegrunge OFFLINE  

thegrunge

    Advanced Member

  • Members
  • 116 posts
  • Local time: 03:10 AM

Posted 21 February 2020 - 07:45 PM

@Luke Thank you that's what i wanted to know



#31 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52103 posts
  • Local time: 03:10 AM

Posted 22 February 2020 - 11:47 AM

We both use the same google exoplayer to play videos:

https://github.com/google/ExoPlayer

They have done additional development on their own private version of exoplayer to support PGS. We may eventually get there as well.

 

Your issue has nothing to do with any additional functionality they have done with PGS subs.

 

As I explained above, on this app (Android TV) your issue is the audio codec not being supported on the device (just as the app told you).

 

 

PGS subs by themselves do not require transcoding. It is only because some other factor of your media is not playable on the device.  My guess would be the audio track.  If you provide compatible audio tracks, or set the app to downmix to stereo, then transcoding will probably not be required at all.

 

On the LG app, PGS subs are not supported no matter what.



#32 thegrunge OFFLINE  

thegrunge

    Advanced Member

  • Members
  • 116 posts
  • Local time: 03:10 AM

Posted 22 February 2020 - 12:33 PM

@ebr Hello, the device has nothing to do here are 2 screenshots reading the same movie with PGS subtitle on the same device with Emby and Plex. Drop it it doesn't lead to anything anyway. I wanted to mention the problem at the start, but we're going in a different direction. It does not matter without subtitles while playing live whether on the samsung, the firestick and chromecast..

 

Thank you

Attached Files


Edited by thegrunge, 22 February 2020 - 12:50 PM.


#33 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52103 posts
  • Local time: 03:10 AM

Posted 22 February 2020 - 12:53 PM

The Fire TV cannot play back DD+ at the high bitrate of your audio track.  Therefore, it needs to remux to convert the audio to a compatible bitrate.  That then requires the burning in of the subs.

 

There are a few things you can do to mitigate this situation:

 

1) Obtain text-based subs

2) Obtain or select a compatible audio track for the device

3) Select "Downmix to Stereo" in the app settings and the audio will be mixed down locally

 

Any of those options will provide much better performance in this situation.

 

Thanks.



#34 thegrunge OFFLINE  

thegrunge

    Advanced Member

  • Members
  • 116 posts
  • Local time: 03:10 AM

Posted 22 February 2020 - 01:15 PM

@ebr So why the same movie is direct play with plex? 😅

Thank you

Edited by thegrunge, 22 February 2020 - 01:15 PM.


#35 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52103 posts
  • Local time: 03:10 AM

Posted 22 February 2020 - 02:04 PM

@ebr So why the same movie is direct play with plex?

 

Because they are doing something similar to my suggestion 3) above.



#36 thegrunge OFFLINE  

thegrunge

    Advanced Member

  • Members
  • 116 posts
  • Local time: 03:10 AM

Posted 22 February 2020 - 02:42 PM

@ebr I don't think look the first picture. the other picture are the same movie without using PGS subtitle on différent device. All the device are direct played or direct streaming



#37 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52103 posts
  • Local time: 03:10 AM

Posted 22 February 2020 - 05:31 PM

I'm sorry, I don't know how else to explain it but what I described and the remedies available are correct at the moment.

 

Thanks.



#38 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 19207 posts
  • Local time: 12:10 AM
  • LocationWashington State

Posted 22 February 2020 - 05:53 PM

I'm sorry, I don't know how else to explain it but what I described and the remedies available are correct at the moment.
 
Thanks.

 

I guess the question is how are the other guys supposedly direct playing  the ac3 5.1 640 bitrate, when Emby says it is unsupported? 

 

post-177488-0-78560200-1582396441.png

 

I am not seeing DD+ track only ac3 5.1 640 bitrate in attached file in post 27.

&VideoCodec=h264,mpeg2video,hevc,h265&AudioCodec=aac,mp3&VideoBitrate=79360000&AudioBitrate=640000
&TranscodeReasons=AudioBitrateNotSupported

Edited by Happy2Play, 22 February 2020 - 05:54 PM.


#39 pünktchen OFFLINE  

pünktchen

    Advanced Member

  • Members
  • 2530 posts
  • Local time: 09:10 AM

Posted 22 February 2020 - 07:15 PM

Independent of the question why Emby doesn't like the audio codec, the burn in of PGS subtitles could be prevented by choosing MKV as a container like Plex does instead of HLS stream with TS container.

#40 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 52103 posts
  • Local time: 03:10 AM

Posted 23 February 2020 - 11:03 AM

 

I guess the question is how are the other guys supposedly direct playing  the ac3 5.1 640 bitrate, when Emby says it is unsupported? 

 

 

 

I am not seeing DD+ track only ac3 5.1 640 bitrate in attached file in post 27.

&VideoCodec=h264,mpeg2video,hevc,h265&AudioCodec=aac,mp3&VideoBitrate=79360000&AudioBitrate=640000
&TranscodeReasons=AudioBitrateNotSupported

 

The current beta of the app lifts the bitrate restriction.  We applied this due to reports of bad playback without it.

 

I'm a bit wary of whether this is going to end up being a good thing as I already see a report of bad playback with a high-bitrate stream on the Fire.

 

It is also possible that, once Amazon finally updates their port of Exo, this will help as well.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users