TS transcoding loosing Subtitle stream

Discuss about generic usage of MediaCoder.

Moderator: HuggiL

Post Reply
zoulu
Beginner
Beginner
Posts: 3
Joined: Sun Aug 31, 2014 9:50 pm

TS transcoding loosing Subtitle stream

Post by zoulu » Sun Aug 31, 2014 10:14 pm

I have a TS file with a video(320), a audio (330) and a subtitle (340) streams.
I want to transcode the video MPEG-2 to MPEG-4 without changing the other streams of the TS.
I select H.264 for video, copy audio, Stream copy for Subtitle and MPEG TS container (with FFMpeg)
I obtain a working TS file with video and audio BUT no subtitle.

In the console, the ffmpeg line has no information on the subtitle stream mapping:

ffmpeg -i "xxx.mp4" -i "X:\test.ts" -map 0:v:0 -map 1:a:0 -f mpegts -r 25/1 -c copy ...... -y "Y:\test.ts"

Missing something like -map 2:s:0 ...

User avatar
HuggiL
Modest
Modest
Posts: 233
Joined: Tue Oct 18, 2011 3:44 am
Location: Perth, Australia

Re: TS transcoding loosing Subtitle stream

Post by HuggiL » Tue Sep 02, 2014 3:25 am

Under the subtitle tab, are you setting the "ID" field to the track number of the subtitle stream?
In theory, theory and practice are the same. In practice, they are not.

Tips & Guides: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Older versions: http://www.videohelp.com/tools/MediaCoder/old-versions#download

zoulu
Beginner
Beginner
Posts: 3
Joined: Sun Aug 31, 2014 9:50 pm

Re: TS transcoding loosing Subtitle stream

Post by zoulu » Sat Sep 13, 2014 9:29 pm

Yes, I have

I have resolved my pbm by remuxing the original file and the MediaCoder transcoded file with the last version of ffmpeg (20140830-win64). It doesn't work with the old version inside MediaCoder x64 0.8.31.5648.

Something like:

ffmpeg.exe -i mediaCoderFile.ts -itsoffset 0.0001 -i originalFile.ts -map 0:v:0 -map 0:a:0 -map 1:s:0 -c copy -packetsize 188 -y fileOk.ts

I have to add a small offset between the 2 TS files because by default without it, subtitle was not synchronized ... :o

User avatar
HuggiL
Modest
Modest
Posts: 233
Joined: Tue Oct 18, 2011 3:44 am
Location: Perth, Australia

Re: TS transcoding loosing Subtitle stream

Post by HuggiL » Mon Sep 15, 2014 12:25 am

Good to see you resolved your problem. One thing I want to know, did you use FFmpeg by itself or did you install it into the MediaCoder codecs folder? Because it might be that FFmpeg itself doesn't have any issue and instead it's that the GUI isn't passing commands to the encoder...
In theory, theory and practice are the same. In practice, they are not.

Tips & Guides: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Older versions: http://www.videohelp.com/tools/MediaCoder/old-versions#download

zoulu
Beginner
Beginner
Posts: 3
Joined: Sun Aug 31, 2014 9:50 pm

Re: TS transcoding loosing Subtitle stream

Post by zoulu » Sun Sep 28, 2014 6:16 pm

I have used the last version of FFMpeg by myself not inside MediaCoder.

Post Reply