Problem with streamed subtitles

About encoding, codec settings, muxers and filter usage
little_gritche
Blank Cone
Blank Cone
Posts: 11
Joined: 01 May 2006 10:14

Problem with streamed subtitles

Postby little_gritche » 27 Sep 2006 11:16

Hello,

first of all, I'd like to thank all persons behind this great piece of software.

And now, let's talk about the problem I have :D

When I stream a video with subtitles with those options, I have to problems at all :

Code: Select all

#EXTM3U #EXTINF:0,film #EXTVLCOPT:sub-file=D:\Temporaire\movies\film.srt #EXTVLCOPT:subsdec-align=0 #EXTVLCOPT:freetype-effect=3 #EXTVLCOPT:sub-fps=0 #EXTVLCOPT:sub-delay=0 #EXTVLCOPT:freetype-color=16776960 #EXTVLCOPT:sub-margin=18 #EXTVLCOPT:freetype-fontsize=36 #EXTVLCOPT:sout=#transcode{scale=1,soverlay}:duplicate{dst=std{mux=ts}} #EXTVLCOPT:sout=#transcode:std #EXTVLCOPT:sout-transcode-ab=256 #EXTVLCOPT:sout-transcode-acodec=mpga #EXTVLCOPT:sout-transcode-channels=2 #EXTVLCOPT:sout-transcode-vb=7000 #EXTVLCOPT:sout-transcode-vcodec=mp2v #EXTVLCOPT:sout-transcode-vt=1000000 #EXTVLCOPT:sout-transcode-fps=25.0 #EXTVLCOPT:sout-ffmpeg-keyint=24 #EXTVLCOPT:sout-ffmpeg-interlace #EXTVLCOPT:no-sout-ffmpeg-interlace-me #EXTVLCOPT:file-caching=1000 #EXTVLCOPT:sout-udp-caching=300 D:\Temporaire\movies\film.mpg
It works great. I see the video and the subtitles.

But, when I stream the same video with the same subtitle file, with those options :

Code: Select all

#EXTM3U #EXTINF:0,film #EXTVLCOPT:sub-file=D:\Temporaire\movies\film.srt #EXTVLCOPT:subsdec-align=0 #EXTVLCOPT:freetype-effect=3 #EXTVLCOPT:sub-fps=0 #EXTVLCOPT:sub-delay=0 #EXTVLCOPT:freetype-color=16776960 #EXTVLCOPT:sub-margin=18 #EXTVLCOPT:freetype-fontsize=36 #EXTVLCOPT:sout=#transcode{scale=1,soverlay}:duplicate{dst=std{mux=ts}} #EXTVLCOPT:sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio} #EXTVLCOPT:sout-transcode-vb=7000 #EXTVLCOPT:sout-transcode-vcodec=mp2v #EXTVLCOPT:sout-transcode-vt=1000000 #EXTVLCOPT:sout-transcode-fps=25.0 #EXTVLCOPT:sout-ffmpeg-keyint=24 #EXTVLCOPT:sout-ffmpeg-interlace #EXTVLCOPT:no-sout-ffmpeg-interlace-me #EXTVLCOPT:file-caching=1000 #EXTVLCOPT:sout-udp-caching=300 D:\Temporaire\movies\film.mpg
I can't see the subtitles anymore.
The purpose of the second options is to keep the audio played on the computer which acts as a server.
As you can see, the only differences between those two pack of options are :
I use in the first one, for the audio options :

Code: Select all

#EXTVLCOPT:sout=#transcode:std #EXTVLCOPT:sout-transcode-ab=256 #EXTVLCOPT:sout-transcode-acodec=mpga #EXTVLCOPT:sout-transcode-channels=2
In the second one, the audio options are :

Code: Select all

#EXTVLCOPT:sout=#duplicate{dst=transcode:std,select=video,dst=display,select=audio}
Like I said, there is no problem with the audio or the video. It always acts as it should.
But, in the second case, it seems like the subtitles are not streamed anymore.

Thanks for reading :D ,

If someone can help me, I would appreciate it a lot.

Have a nice day,

Little_gritche

little_gritche
Blank Cone
Blank Cone
Posts: 11
Joined: 01 May 2006 10:14

Postby little_gritche » 27 Sep 2006 17:19

To add more information, I tested under Windows XP with :
- VLC 0.8.5
- and a nightly build of VLC 0.9.0

Thanks

Have a nice day

Little_gritche

dwyd
New Cone
New Cone
Posts: 2
Joined: 19 Oct 2006 17:25

same for me...

Postby dwyd » 19 Oct 2006 17:38

Got the same problem on my debian server... IMPOSSIBLE to use subtitles :'(


Anyone got a solution?

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 19 Oct 2006 22:40

the second :sout=... overrides the first one. And you need transcode{soverlay,...} if you want to burn the subs in the movie. Does that answer your questions ?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

dwyd
New Cone
New Cone
Posts: 2
Joined: 19 Oct 2006 17:25

okay, ill try

Postby dwyd » 20 Oct 2006 09:24

ok, i ll try to reencode to use subs, :)

little_gritche
Blank Cone
Blank Cone
Posts: 11
Joined: 01 May 2006 10:14

Postby little_gritche » 20 Oct 2006 19:09

Yes, it seems like it solves my problem :D

Thanks a lot!
Have a nice week-end


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 19 guests