Jump to content

Live/Recorded TV MPEG2 Closed Captions (CC) don't work on Android Emby when remuxing or transcoding


Recommended Posts

wmichael3
Posted (edited)

I've posted something about this in the past, but a little investigation has added to the details:

  • For anything other than full passthrough Direct Play, CC will not display on Android Emby.
  • This is because a "-sn" flag is injected by Emby to ffmpeg that instructs it to strip out subtitle streams. 
  • The UI shows the option to turn on the CCs, but that is ignored because they have been stripped from  the stream.
  • This does not pertain to browser playback, just Android. Which includes CCwGTV and the Google Streamer, as well as phones and tablets.
  • CC worked find in Emby for Android TV.

Here is an example ffmpeg command from an Emby log that illustrates this. This one is direct stream, but it is the same with a remux or with transcoding. I've highlighted the "-sn" flag. 

It would be nice to have CC in the Android version of Emby. It is probably not as simple as removing the flag, but I thought it worth mentioning. Edit: I took this out using ffmpeg search/replace and it did not have an effect. Probably more complicated than this.

 

Quote

C:\Users\admin\AppData\Roaming\Emby-Server\system\ffmpeg.exe -loglevel +timing -y -print_graphs_file "C:\Users\admin\AppData\Roaming\Emby-Server\programdata\logs\ffmpeg-directstream-b2aee4c8-d92d-4a6c-9f7a-9f90f2a0411d_1graph.txt" -copyts -start_at_zero -analyzeduration 3000000 -f mpegts -c:v:0 h264 -noautorotate -i "http://127.0.0.1:8096/LiveTv/LiveStreamFiles/18865e4d292844e99aa2d6cba344cf5e/stream.ts" -map 0:0 -map 0:1 -sn -c:v:0 copy -c:a:0 copy -metadata:s:a:0 language=eng -disposition:a:0 default -copypriorss:a:0 0 -fflags +discardcorruptts+fillwallclockdts -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "C:\Users\admin\AppData\Roaming\Emby-Server\programdata\transcoding-temp\8122D4\8122D4.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_list_entry_prefix hls/8122D4/ -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "C:\Users\admin\AppData\Roaming\Emby-Server\programdata\transcoding-temp\8122D4\8122D4_%d.ts"

 

 

 

Edited by wmichael3

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