Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

play subtitles when appended with mp4 url

How to play subtitles when appended with mp4 url? Do we need to force subtitles or it will be available by using '*' button in remote.

Below is the information of mp4 file.
ffmpeg version 2.3.git Copyright (c) 2000-2014 the FFmpeg developers
built on Aug 19 2014 15:51:46 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix= --extra-cflags=-I/include --extra-ldflags=-L/lib --bindir=/home/mohit/mohit/workspace/ffmpeg/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
libavutil 54. 5.100 / 54. 5.100
libavcodec 56. 0.101 / 56. 0.101
libavformat 56. 1.100 / 56. 1.100
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 0.100 / 5. 0.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2ad9ae0] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mission.mp4':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2015-10-29 11:59:20
title : Mission: Impossible – Rogue Nation
artist : Christopher McQuarrie
genre : Action & Adventure
date : 2015-07-31
synopsis : Loaded with heart-pounding action and jaw-dropping stunts, prepare for the best Mission ever. With his elite organization shut down by the CIA, agent Ethan Hunt (Tom Cruise) and his team (Jeremy Renner, Simon Pegg, Ving Rhames) race against time to stop t
hd_video : 1
media_type : 9
iTunEXTC : mpaa|PG-13|300|
iTunMOVI : <?xml version="1.0" encoding="UTF-8"?>
: <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
: <plist version="1.0">
: <dict>
: <key>cast</key>
: <array>
: <dict>
: <key>name</key>
: <string>Tom Cruise</string>
: </dict>
: <dict>
: <key>name</key>
: <string>Jeremy Renner</string>
: </dict>
: <dict>
: <key>name</key>
: <string>Simon Pegg</string>
: </dict>
: <dict>
: <key>name</key>
: <string>Rebecca Ferguson</string>
: </dict>
: <dict>
: <key>name</key>
: <string>Ving Rhames</string>
: </dict>
: <dict>
: <key>name</key>
: <string>Sean Harris</string>
: </dict>
: <dict>
: <key>name</key>
: <string>Alec Baldwin</string>
: </dict>
: </array>
: <key>directors</key>
: <array>
: <dict>
: <key>name</key>
: <string>Christopher McQuarrie</string>
: </dict>
: </array>
: <key>producers</key>
: <array>
: <dict>
: <key>name</key>
: <string>Tom Cruise</string>
: </dict>
: <dict>
: <key>name</key>
: <string>J.J. Abrams</string>
: </dict>
: <dict>
: <key>name</key>
: <string>Bryan Burk</string>
: </dict>
: <dict>
: <key>name</key>
: <string>David Ellison</string>
: </dict>
: <dict>
: <key>name</key>
: <string>Dana Goldberg</string>
: </dict>
: <dict>
: <key>name</key>
: <string>Don Granger</string>
: </dict>
: </array>
: <key>screenwriters</key>
: <array>
: <dict>
: <key>name</key>
: <string>Christopher McQuarrie</string>
: </dict>
: </array>
: </dict>
: </plist>
:
Duration: 02:11:47.15, start: 0.000000, bitrate: 2137 kb/s
Chapter #0.0: start 0.000000, end 592.000000
Metadata:
title : 1
Chapter #0.1: start 592.000000, end 1244.000000
Metadata:
title : 2
Chapter #0.2: start 1244.000000, end 1531.000000
Metadata:
title : 3
Chapter #0.3: start 1531.000000, end 1919.000000
Metadata:
title : 4
Chapter #0.4: start 1919.000000, end 2402.000000
Metadata:
title : 5
Chapter #0.5: start 2402.000000, end 2974.000000
Metadata:
title : 6
Chapter #0.6: start 2974.000000, end 3660.000000
Metadata:
title : 7
Chapter #0.7: start 3660.000000, end 4190.000000
Metadata:
title : 8
Chapter #0.8: start 4190.000000, end 4820.000000
Metadata:
title : 9
Chapter #0.9: start 4820.000000, end 5368.000000
Metadata:
title : 10
Chapter #0.10: start 5368.000000, end 5911.000000
Metadata:
title : 11
Chapter #0.11: start 5911.000000, end 6498.000000
Metadata:
title : 12
Chapter #0.12: start 6498.000000, end 7033.000000
Metadata:
title : 13
Chapter #0.13: start 7033.000000, end 7381.000000
Metadata:
title : 14
Chapter #0.14: start 7381.000000, end 7907.148000
Metadata:
title : 15
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1438x600 [SAR 1437:1438 DAR 479:200], 1964 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2015-10-29 11:59:20
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 164 kb/s (default)
Metadata:
creation_time : 2015-10-29 11:59:20
handler_name : Stereo
Stream #0:2: Video: mjpeg, yuvj444p(pc, bt470bg), 1400x2100 [SAR 1:1 DAR 2:3], 90k tbr, 90k tbn, 90k tbc
Stream #0:3(eng): Subtitle: mov_text (tx3g / 0x67337874), 640x40, 0 kb/s (default)
Metadata:
rotate : -0
creation_time : 2015-10-29 16:49:34
Stream #0:4(eng): Video: mjpeg (jpeg / 0x6765706A), yuvj420p(pc, bt470bg), 640x267 [SAR 72:72 DAR 640:267], 0 kb/s, 0k fps, 1 tbr, 1k tbn, 1k tbc
Metadata:
creation_time : 2015-10-29 16:49:34
Stream #0:5(eng): Subtitle: mov_text (text / 0x74786574)
Metadata:
creation_time : 2015-10-29 16:49:35
0 Kudos
1 REPLY 1
transfo
Reel Rookie

Re: play subtitles when appended with mp4 url

It should work with plain text subtitles embedded in UTF-8. You want subtitles in something like this:

Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 28 min 41 s
Bit rate : 129 b/s
Count of elements : 1094
Stream size : 27.2 KiB (0%)
Language : English
Default : No
Forced : No
0 Kudos