Subtitles autodetection when streaming over http interface

About encoding, codec settings, muxers and filter usage
AjeeB
Blank Cone
Blank Cone
Posts: 14
Joined: 18 Oct 2007 23:32

Re: Subtitles autodetection when streaming over http interface

Postby AjeeB » 18 Oct 2007 23:42

:D
hi, new member and glade to be here !
>> about this topic,
all vlc versions same problem with windows (include nightly ver.)

tested with DreamBox500-GP4 ,with lastest (vlc-frontend)

hope u soon solve little bug... for now ... always need choose subtitle manually :|


BR
nice work
keep going ppl

bveb
New Cone
New Cone
Posts: 5
Joined: 18 Oct 2007 15:18

Re: Subtitles autodetection when streaming over http interface

Postby bveb » 19 Oct 2007 17:24

Nightly builds cannot create http interface.. Not with command-line nor with menu.. Also linux version cannot stop stream with vlc-frontend..

AjeeB
Blank Cone
Blank Cone
Posts: 14
Joined: 18 Oct 2007 23:32

Re: Subtitles autodetection when streaming over http interface

Postby AjeeB » 19 Oct 2007 18:02

indeed no http interface connection ... hope it's implemented at Nightly version also subtitles !!!?!
BR :oops:
Everything(K) happens for a reason

Maky001
New Cone
New Cone
Posts: 3
Joined: 11 Nov 2007 20:26

Re: Subtitles autodetection when streaming over http interface

Postby Maky001 » 11 Nov 2007 20:29

HI,
I was wondering is there any news or progress in autodetection subtitles when using stream output with Dreambox
cause even there are options to autodetect them it aint working.
Thakns in advance for any help in solving this issue!

Maky001
New Cone
New Cone
Posts: 3
Joined: 11 Nov 2007 20:26

Re: Subtitles autodetection when streaming over http interface

Postby Maky001 » 20 Nov 2007 14:08

No news yet on subject?

CobrA_4cS
Blank Cone
Blank Cone
Posts: 24
Joined: 19 Nov 2007 20:47

Re: Subtitles autodetection when streaming over http interface

Postby CobrA_4cS » 20 Nov 2007 14:14

you can edit your config file (when vlc is closed) in C:\Documents And Settings\(you)\Application Data\VideoLAN\VLC\.vlcrc (the last path may be not correct, it's maybe in Application Data\VLC don't remember)

note that Application Data is a hidden folder

now looks for "#extraintf=" and change it by "extraintf=http"

launch vlc and http interface will be loaded

it's works :X thx [size=0]Image[/size]
Last edited by CobrA_4cS on 04 Dec 2007 17:00, edited 1 time in total.

Maky001
New Cone
New Cone
Posts: 3
Joined: 11 Nov 2007 20:26

Re: Subtitles autodetection when streaming over http interface

Postby Maky001 » 22 Nov 2007 20:39

One more question could VLC streamoutput AC3 sound to Dreambox cause i did try but with no luck.
Has any of Dreambox owners success streaming with AC3 sound?
THX!!!

AjeeB
Blank Cone
Blank Cone
Posts: 14
Joined: 18 Oct 2007 23:32

Re: Subtitles autodetection when streaming over http interface

Postby AjeeB » 06 Dec 2007 02:51

well, still no autodetection with http interface using VLC frontend! for DB

:o
BR

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: Subtitles autodetection when streaming over http interface

Postby funman » 06 Dec 2007 12:04

no one is working on that issue afaik

AjeeB
Blank Cone
Blank Cone
Posts: 14
Joined: 18 Oct 2007 23:32

Re: Subtitles autodetection when streaming over http interface

Postby AjeeB » 06 Dec 2007 18:25

well, before that I thought it's problem...with frontend itself !
but now pretty sure it's SERVER (vlc) BuG
cause manually choosed sub's are working !
hope soon will be a solution
BR
Everything(K) happens for a reason

TBD
New Cone
New Cone
Posts: 1
Joined: 06 Dec 2007 17:18

Re: Subtitles autodetection when streaming over http interface

Postby TBD » 06 Dec 2007 22:24

Could more information/logs fom VLC help to "speed things up" ? :roll:
If that's the case just let me know and I can collect logs from VLC in various use cases (streaming when subs aren't working, streaming when subsfile has been pointed out manually and the sub is delivered in the stream as it should do etc etc). :D

FYI: Tested with the latest VLC 0.8.6d and the sub is not delivered in the stream "automatically". Subs are working when I watch the same movie on the computer (not streaming). The sub is also delivered when I stream to a Dreambox WHEN I manually point out the subfile in the VLC configuration.

Regs

/J

AjeeB
Blank Cone
Blank Cone
Posts: 14
Joined: 18 Oct 2007 23:32

Re: Subtitles autodetection when streaming over http interface

Postby AjeeB » 07 Dec 2007 11:55

FYI: Tested with the latest VLC 0.8.6d and the sub is not delivered in the stream "automatically". Subs are working when I watch the same movie on the computer (not streaming). The sub is also delivered when I stream to a Dreambox WHEN I manually point out the subfile in the VLC configuration.
/J
that's exactly what I meant!

short-log:
main debug: using demux2 module "avi"
main debug: looking for a subtitle file in C:\Program Files\VideoLAN\VLC\ <=======================????
main debug: looking for packetizer module: 17 candidates
main debug: using packetizer module "packetizer_mpeg4video"
main debug: stream out mode -> no decoder thread
main debug: looking for packetizer module: 17 candidates
main debug: using packetizer module "mpeg_audio"
main debug: stream out mode -> no decoder thread
main debug: starting in sync mode
main debug: meta information:


note movies at <<<< E:/movies/ >>>>
even when store sub's at VLC dir ... nothing !
Everything(K) happens for a reason

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: Subtitles autodetection when streaming over http interface

Postby funman » 07 Dec 2007 15:17

we don't need debug log, but a way to reproduce the bug.

And owning no dreambox, that's difficult :(

The best way for you would be to look at the source code and fixing the bug yourselves, maybe we can help you on that, showing you where to look.

huljko
Blank Cone
Blank Cone
Posts: 12
Joined: 10 Aug 2007 12:53

Re: Subtitles autodetection when streaming over http interface

Postby huljko » 07 Dec 2007 15:51

IMHO the crutial is post by flangis on Sat Aug 11, 2007 12:30 pm :
flangis wrote:
Please note that i can not confirm the bug because since my original post i have switched to gnu/linux which does not have the problem (the problem was found on windows). Just for your information i'm running Ubuntu feisty with vlc 0.8.6b and subtitles work fine both when using the dreambox web interface and dreambox vlc frontend 1.3
So, it's Windows issue, probably some file/directory handling differs on Linux and Windows.

Regards,
dh

huljko
Blank Cone
Blank Cone
Posts: 12
Joined: 10 Aug 2007 12:53

Re: Subtitles autodetection when streaming over http interface

Postby huljko » 07 Dec 2007 16:44

I'm not a C programmer but problem could be in part of src/input/subtitles.c where subtitles directory is extracted from file name:

Code: Select all

/* extract filename & dirname from psz_fname */ tmp = strrchr( psz_fname, DIRECTORY_SEPARATOR ); if( tmp ) { int dirlen = 0; f_fname = malloc( strlen(tmp) ); if( f_fname ) strcpy( f_fname, tmp+1 ); // we skip the separator, so it will still fit in the allocated space dirlen = strlen(psz_fname) - strlen(tmp) + 2; // add the separator f_dir = malloc( dirlen + 1 ); if( f_dir != NULL ) strlcpy( f_dir, psz_fname, dirlen ); } else { /* Get the current working directory */ int dirlen; #ifdef HAVE_UNISTD_H f_dir = getcwd( NULL, 0 ); #endif if( f_dir == NULL ) { if( psz_fname_original ) free( psz_fname_original ); return NULL; } dirlen = strlen( f_dir ); f_dir = (char *)realloc(f_dir, dirlen +2 ); f_dir[dirlen] = DIRECTORY_SEPARATOR; f_dir[dirlen+1] = '\0'; f_fname = FromLocaleDup( psz_fname ); }
DIRECTORY_SEPARATOR is defined in code:

Code: Select all

#if defined( WIN32 ) #define DIRECTORY_SEPARATOR '\\' #else #define DIRECTORY_SEPARATOR '/' #endif
So under WIN32 it's defined as "\\" instead as "\". That's causing no directory extraction from file name under Windows and subtitles directory is set to current working directory!
See AjeeB's log:
main debug: looking for a subtitle file in C:\Program Files\VideoLAN\VLC\ <=======================????


The problem is not expressed when using Dreambox Web interface because VLC on PC is started in the same directory where the stream and subtitle file are placed but using http interface VLC is started in VLC installation directory so the subtitles are searched there.

Am I right? Please help!

Regards,
dh

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: Subtitles autodetection when streaming over http interface

Postby funman » 07 Dec 2007 17:26

with language C, \ escape the next character so we need to use '\\' instead of '\'

about your issue, what happens if you launch vlc from the directory where your sub & movie are ?

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: Subtitles autodetection when streaming over http interface

Postby funman » 07 Dec 2007 17:29

and what is this mysterious "VLC frontend on dreambox" ?

AjeeB
Blank Cone
Blank Cone
Posts: 14
Joined: 18 Oct 2007 23:32

Re: Subtitles autodetection when streaming over http interface

Postby AjeeB » 07 Dec 2007 17:48

well , hi again
really strange problem !
this is the place for VLCF for DreamBox development !
http://www.i-have-a-dreambox.com/wbb2/t ... light=vlcf
and they really can't help ! cause it's a vlc BuG and am not talking German !!!!
I just test all vlc & vlcf version ! no way to get solution
anyway when put subtitles files at VLC directory nothing happend ! simply ignored ... and I try "\" "/" !! (not programming statements :D )
I mean at Dreambox webinterface !
and what is this mysterious "VLC frontend on dreambox" ?
it's simple and work ! very good program for Dreambox users ... and ppl who need subtitle it's a kind of nightmare !!!
you can't mux! subtitles for every movie u have

with language C, \ escape the next character so we need to use '\\' instead of '\'

about your issue, what happens if you launch vlc from the directory where your sub & movie are ?
about path I check any place (movie directory...vlc...specific path)
if VLC can show movies with sub's at computer ... u can simply .... use same path !?!


my current config is vlc-0.8.6d-win32 + VLCF-RC18 !


BR
Last edited by AjeeB on 07 Dec 2007 18:12, edited 2 times in total.
Everything(K) happens for a reason

huljko
Blank Cone
Blank Cone
Posts: 12
Joined: 10 Aug 2007 12:53

Re: Subtitles autodetection when streaming over http interface

Postby huljko » 07 Dec 2007 18:03

Thanks for explanation.

Can't easily start VLC from subtitle directory becouse I'm using it as NT service on the server but I'll try to manage it later today.

VLC Frontend on Dreambox is very nice plugin that enables you to browse your server and start streaming using just remote controler of Dreambox. For the details you can visit the next thread:

http://www.i-have-a-dreambox.com/wbb2/t ... adid=45781

Dreambox is Linux based networked satelite receiver that can receive the stream form VLC and show it on TV screen.

HTH

Regards,
dh

huljko
Blank Cone
Blank Cone
Posts: 12
Joined: 10 Aug 2007 12:53

Re: Subtitles autodetection when streaming over http interface

Postby huljko » 07 Dec 2007 20:26

I think I found where the problem with subtitles is!

When streaming from Dreambox Web Interface (subtitles are OK!) the next message is logged:

Code: Select all

main debug: adding playlist item `E:\Video\Movies\300 CD2.avi' ( E:\Video\Movies\300 CD2.avi )
When stream is started from VLC Frontend (no subtitles!) the next message is logged:

Code: Select all

main debug: adding playlist item `E:/Video/Movies/300 CD2.avi :sout=#transcode{vcodec=mp2v,soverlay,senc,vb=8192,width=704,height=576,fps=25,acodec=mpga,ab=192,channels=2,audio-sync}:std{access=http,mux=ts,dst=:9090/dboxstream}' ( E:/Video/Movies/300 CD2.avi )
See the difference using slash (/) and backslash (\)? It seams that VLC Frontend is converting "\" to "/" and VLC can't find the subtitles directory because it's running on Win32 and is especting "\" and not "/". So the problem is probably on VLC Frontend side.

Do you agree?

Regards,
dh

AjeeB
Blank Cone
Blank Cone
Posts: 14
Joined: 18 Oct 2007 23:32

Re: Subtitles autodetection when streaming over http interface

Postby AjeeB » 08 Dec 2007 16:53

Damn it! :lol:
could be?
Everything(K) happens for a reason

huljko
Blank Cone
Blank Cone
Posts: 12
Joined: 10 Aug 2007 12:53

Re: Subtitles autodetection when streaming over http interface

Postby huljko » 09 Dec 2007 09:37

The problem is reported to VLCF development forum: http://www.i-have-a-dreambox.com/wbb2/t ... 58&page=23

dh

AjeeB
Blank Cone
Blank Cone
Posts: 14
Joined: 18 Oct 2007 23:32

Re: Subtitles autodetection when streaming over http interface

Postby AjeeB » 09 Dec 2007 14:43

thanks for the input ! :x
hope they fix this silly problem

I saw u post there a fix ... maybe you should compile it ! cause they IGNORE english users
#define DIRECTORY_SEPARATOR '/' ???

thanks dude

BR
Everything(K) happens for a reason

huljko
Blank Cone
Blank Cone
Posts: 12
Joined: 10 Aug 2007 12:53

Re: Subtitles autodetection when streaming over http interface

Postby huljko » 09 Dec 2007 14:51

@Ajeeb
I'm working with modrillo (VLCF developer) on problem fix. Let you know when will be fixed.

Regards,
dh

AjeeB
Blank Cone
Blank Cone
Posts: 14
Joined: 18 Oct 2007 23:32

Re: Subtitles autodetection when streaming over http interface

Postby AjeeB » 09 Dec 2007 14:53

:) it would be nice cause I have tons of movies in near apartment :!:
maybe you should also tell them to add option to disable/enable subtitle (stream) maybe mute button !!

thanks for fast reply
Everything(K) happens for a reason


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests