Project

General

Profile

What is the reason for the disappearance of subtitles in this m3u8 format stream after ffmpeg encoding

Added by jiang wei over 3 years ago

stream address:http://mzmom.com:8888/tvbfinance.m3u8

Use a browser to open this stream address to select subtitles.

What is the reason for the disappearance of subtitles in this m3u8 format stream after ffmpeg encoding

pipe:///usr/bin/ffmpeg -i "http://mzmom.com:8888/tvbfinance.m3u8" -vcodec copy -acodec copy -map 0 -c copy -f mpegts pipe:1

#EXTM3U
#EXT-X-VERSION:4
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP- ID="subs",NAME="s10000_chi",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="chi",URI="2/s10000_chi/index.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP- ID="subs",NAME="s10000_chs",DEFAULT=NO,AUTOSELECT=YES,FORCED=NO,LANGUAGE="chs",URI="2/s10000_chs/index.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP- ID="subs",NAME="s10000_eng",DEFAULT=NO,AUTOSELECT=YES,FORCED=NO,LANGUAGE="eng",URI="2/s10000_eng/index.m3u8"

#EXT-X-MEDIA:TYPE=AUDIO,GROUP- ID="audio_mp4a.40.2_128001",LANGUAGE="chi",NAME="a128000",AUTOSELECT=YES,DEFAULT=YES,CHANNELS="2",URI="2/a128000/index.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP- ID="audio_mp4a.40.2_128001",LANGUAGE="qph",NAME="a128001",AUTOSELECT=YES,DEFAULT=NO,CHANNELS="2",URI="2/a128001/index.m3u8"

#EXT-X-STREAM-INF:BANDWIDTH=4265655,AVERAGE- BANDWIDTH=4265655,RESOLUTION=1920x1080,CODECS="avc1.640029,mp4a.40.2",AUDIO="audio_mp4a.40.2_128001",SUBTITLES="subs",FRAME-RATE=25
2/v4000000/index.m3u8
#EXT-X-STREAM- INF:BANDWIDTH=2733046,AVERAGE-BANDWIDTH=2733046,RESOLUTION=1280x720,CODECS="avc1.640029,mp4a.40.2",AUDIO="audio_mp4a.40.2_128001",SUBTITLES="subs",FRAME-RATE=25
2/v2500000/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1711307,AVERAGE-BANDWIDTH=1711307,RESOLUTION=1280x720,CODECS="avc1.640029,mp4a.40.2",AUDIO="audio_mp4a.40.2_128001",SUBTITLES="subs",FRAME-RATE=25
2/v1500000/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1200438,AVERAGE- BANDWIDTH=1200438,RESOLUTION=1024x576,CODECS="avc1.4D001F,mp4a.40.2",AUDIO="audio_mp4a.40.2_128001",SUBTITLES="subs",FRAME-RATE=25
2/v1000000/index.m3u8
#EXT-X-STREAM- INF:BANDWIDTH=587394,AVERAGE-BANDWIDTH=587394,RESOLUTION=480x270,CODECS="avc1.42001E,mp4a.40.2",AUDIO="audio_mp4a.40.2_128001",SUBTITLES="subs",FRAME-RATE=25
2/v400000/index.m3u8

Need everyone's help me


Replies (6)

RE: What is the reason for the disappearance of subtitles in this m3u8 format stream after ffmpeg encoding - Added by saen acro over 3 years ago

Already wriiten use search.
Your pipe command ignore subtitles at all.

RE: What is the reason for the disappearance of subtitles in this m3u8 format stream after ffmpeg encoding - Added by jiang wei over 3 years ago

This problem has troubled me for a long time. Can you tell me how to create the correct command?

RE: What is the reason for the disappearance of subtitles in this m3u8 format stream after ffmpeg encoding - Added by Robles Jason over 3 years ago

I use ffmpeg to convert video to hls format (m3u8) and I use videojs to read this video. But I have a problem Ffmpeg burnt in subtitles out of sync when converting to hls. For some reason FFMPEG adds about 1.4 seconds to the presentation time of the MPEG-2 Transport Stream when writing.
AES Login

RE: What is the reason for the disappearance of subtitles in this m3u8 format stream after ffmpeg encoding - Added by jiang wei over 3 years ago

Can you teach me how to use tvh to forward this source and have subtitles displayed at the same time

    (1-6/6)