Hardcode subtitles VLC - failed

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
norst
New Cone
New Cone
Posts: 3
Joined: 09 Jan 2019 12:32

Hardcode subtitles VLC - failed

Postby norst » 09 Jan 2019 12:43

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

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Hardcode subtitles VLC - failed

Postby mederi » 09 Jan 2019 14:35

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

norst
New Cone
New Cone
Posts: 3
Joined: 09 Jan 2019 12:32

Re: Hardcode subtitles VLC - failed

Postby norst » 09 Jan 2019 14:59

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?

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Hardcode subtitles VLC - failed

Postby unidan » 09 Jan 2019 15:35

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.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Hardcode subtitles VLC - failed

Postby mederi » 09 Jan 2019 18:25

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.

norst
New Cone
New Cone
Posts: 3
Joined: 09 Jan 2019 12:32

Re: Hardcode subtitles VLC - failed

Postby norst » 15 Jan 2019 16:42

Thanks, meredi. That worked. I tried that when I tried to convert, but no luck so gave that up. Good to know.

ekwan
New Cone
New Cone
Posts: 3
Joined: 25 Feb 2019 12:30

Re: Hardcode subtitles VLC - failed

Postby ekwan » 25 Feb 2019 15:27

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

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Hardcode subtitles VLC - failed

Postby mederi » 25 Feb 2019 22:36

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.

ekwan
New Cone
New Cone
Posts: 3
Joined: 25 Feb 2019 12:30

Re: Hardcode subtitles VLC - failed

Postby ekwan » 26 Feb 2019 13:50

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.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Hardcode subtitles VLC - failed

Postby mederi » 26 Feb 2019 14:07

"[ ] 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.

ekwan
New Cone
New Cone
Posts: 3
Joined: 25 Feb 2019 12:30

Re: Hardcode subtitles VLC - failed

Postby ekwan » 26 Feb 2019 16:38

It is working perfectly now.
Thanks a lot!

happy girl
New Cone
New Cone
Posts: 1
Joined: 06 Apr 2020 05:53

Re: Hardcode subtitles VLC - failed

Postby happy girl » 06 Apr 2020 06:09

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

mnblockhead
New Cone
New Cone
Posts: 2
Joined: 30 Apr 2020 13:52

Re: Hardcode subtitles VLC - failed

Postby mnblockhead » 30 Apr 2020 14:23

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


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 32 guests