Page 1 of 1

Hardcode subtitles VLC - failed

Posted: 09 Jan 2019 12:43
by norst
Hello,

I am trying to hardcode subtitles into my mp4 file, using VLC player. I have followed the turtorials, and everything sems right until the final output is done, and there are no subtitles embedded in the movie (I can still add them on manually).

I select Streaming, add the .mp4 file, choose the destination and check all the right boxes (Activate Translog, MP4/MOV, Keep original video track is NOT CHECKED, Audio codec checked, and both subtitles + T.140 is checked).

VLC seems to start making the new file, and a file shows up, but it contains no subtitles. What am I doing wrong? The subtitle file and .mp4 is in the same folder with the same names (just .txt and .mp4(.srt wont open as file, but I have tried saving it as just .srt too, still doesnt work when streaming).

Could there be something wrong with my subtitle file? It plays fine when adding it manually...

Re: Hardcode subtitles VLC - failed

Posted: 09 Jan 2019 14:35
by mederi
The support for subtitles overlay ("[v] Overlay subtitles on the video" check box in transcoding profile) has been fixed in Converting wizard (Media > Convert/Save...) in VLC 3.0.4+. Otherwise you can use Streaming wizard (Media > Stream...) where you can edit the final stream output string in final step there. You better use srt subtitle format as the support for autodetection of txt subtitles has been dropped in VLC 3. Then you could experience an issue with multiple subtitles (default :sout-all option): https://forum.videolan.org/viewtopic.php?f=14&t=147589#p484379

Re: Hardcode subtitles VLC - failed

Posted: 09 Jan 2019 14:59
by norst
Sorry, I forgot to say that I have already edited the stream output (removing scodec=T.140). I have also tried using the file as a srt. file and tried again now, it still won't embed the subtitles in the final product.

I use VLC 1.1.9 (on a computer with restrictions) - could this be the reason?

Re: Hardcode subtitles VLC - failed

Posted: 09 Jan 2019 15:35
by unidan
Hi, VLC 1.1.9 is almost 8 years old, so yes I believe. I don't even know if someone here is capable of providing support for this version.

Re: Hardcode subtitles VLC - failed

Posted: 09 Jan 2019 18:25
by mederi
I understand that users have their reasons for using old versions. So if I use the streaming wizard in VLC 1.1.9 and I manually specify also a subtitle file by ticking the "[v] Use a subtitles file" check box and browsing for a subtitle file in Open Media dialog, then it works.

Re: Hardcode subtitles VLC - failed

Posted: 15 Jan 2019 16:42
by norst
Thanks, meredi. That worked. I tried that when I tried to convert, but no luck so gave that up. Good to know.

Re: Hardcode subtitles VLC - failed

Posted: 25 Feb 2019 15:27
by ekwan
The support for subtitles overlay ("[v] Overlay subtitles on the video" check box in transcoding profile) has been fixed in Converting wizard (Media > Convert/Save...) in VLC 3.0.4+. Otherwise you can use Streaming wizard (Media > Stream...) where you can edit the final stream output string in final step there. You better use srt subtitle format as the support for autodetection ot txt subtitles has been dropped in VLC 3. Then you could experience an issue with multiple subtitles (default :sout-all option): https://forum.videolan.org/viewtopic.ph ... 89#p484379
Hi Mederi,
I have a file with 2 languages and 3 subtitles.
The file can be converted/saved as in mp4 format with preferred language (e.g. :audio-track=2).
But for subtitle, I put ( :no-sout-all :sub-track=1).
I tried different sub-track numbers (sub-track=2, sub-track=3).
I also tried it on 3.0.4 and 3.0.6 but both mp4 file do not display any subtitle.

Any suggestion, please?

Thank you.
Eric

Re: Hardcode subtitles VLC - failed

Posted: 25 Feb 2019 22:36
by mederi
If there are 3 subtitle tracks, then sub-track=0, 1 or 2. Then edit a transcoding profile to enable subtitles overlay "[v] Overlay subtitles on the video" and to disable direct stream copy without any transcoding "[ ] Keep original video track" and set relevant transcoding parameters.

Re: Hardcode subtitles VLC - failed

Posted: 26 Feb 2019 13:50
by ekwan
Hi Mederi,

I did following but still can see any subtitle.
Do you see anything I missed?

1. Media menu ->Convert/Save

2. File menu ->File Selection->Add
[v]Show more options
Edit Options :no-sout-all :sub-track=0 :audio-track=2

3. Convert menu -> Settings
Profile -> Create a new profile
Encapsulation - MP4
Video codec - [v] Video, [v] Keep original video track
Audio codec - [v] Audio, Codec - MP3, Bitrate - 128kb/s, Channels - 2
Subtitles - [v] Subtitles [v] Overlay subtitles on the video

Thank you.

Re: Hardcode subtitles VLC - failed

Posted: 26 Feb 2019 14:07
by mederi
"[ ] Keep original video track" => You have to transcode the video, so do not enable it (disable it), set video transcoding parameters! You can "[v] Keep original audio track" if you do not need to transcode audio to a different format. If "a file with 2 languages" means 2 audio tracks, then audio-track=0 or 1.

Re: Hardcode subtitles VLC - failed

Posted: 26 Feb 2019 16:38
by ekwan
It is working perfectly now.
Thanks a lot!

Re: Hardcode subtitles VLC - failed

Posted: 06 Apr 2020 06:09
by happy girl
i tried VLC media player to merge the subtitles and video together,but I could find the set file only video file is appearing.I also tried convert/save method it doesn't work

Re: Hardcode subtitles VLC - failed

Posted: 30 Apr 2020 14:23
by mnblockhead
I've tried every set of instructions I can find online. Nothing works.

I've posted my most recent attempt with setting on the following thread:
https://forum.videolan.org/viewtopic.php?f=12&t=153043&p=502249&hilit=hardcode+subtitles#p502249

I'm using VLC 3.0.10 Vetinari