problems found when useing vlm under ms windows, help pls

About encoding, codec settings, muxers and filter usage
john luo
Blank Cone
Blank Cone
Posts: 24
Joined: 25 Jan 2005 03:30

problems found when useing vlm under ms windows, help pls

Postby john luo » 31 Jan 2005 08:38

i downloaded vlc 0.8.1 for windows.
and i write a configrattion file for vlm like this:

new gold_ch_1 broadcast enabled
setup gold_ch_1 input file://e:\movies\okok.mp4
setup gold_ch_1 output #transcode{vcodec=mp4v,acodec=mp3,vb=800,ab=128}:standard{access=udp,mux=ts,url=239.255.12.42}


new my_sched_start schedule enabled
setup my_sched_start append control gold_ch_1 play
setup my_sched_start date 2005/1/31-14:49:00

result is:
1, video and audio codec not work. the result audio is not mp3.
2, schedule not fired when time reached. that means my_sched_start object did not start.
3, when i replaced the date with "now", it worked.
4, if i add duplicate output like this:
setup gold_ch_1 output #duplicate{dst=standard{access=udp,mux=ts,url=239.255.12.42},dst=rtp{dst=192.168.0.91, port=1234, sdp=file://c:\upload\vlc.sdp}}

the rtp section seems did not work.
5, media list seems did not work. when first media played, vlm did not send the second ones.

could any one answer my question?
is this problem platform related? i did not test vlm under linux.

thanks in advance.

john luo
Blank Cone
Blank Cone
Posts: 24
Joined: 25 Jan 2005 03:30

Postby john luo » 31 Jan 2005 12:59

i stepped into source code, seems it need not use 1/1000000s to do the schedule. 1/1000s is enough, isn't it?

john luo
Blank Cone
Blank Cone
Posts: 24
Joined: 25 Jan 2005 03:30

Postby john luo » 01 Feb 2005 12:28

since nobody would like to help me :(. i have to compile source code and add some debug info into context;
but it is really a long term comping!!

waiting for compiling end...

john luo
Blank Cone
Blank Cone
Posts: 24
Joined: 25 Jan 2005 03:30

final solution

Postby john luo » 02 Feb 2005 14:38

seems that mdate did not return correct value under windowsxp. so i wrote another method instead of mdate:

mtime_t NowTime(){
#if defined( WIN32 ) || defined( UNDER_CE )
time_t date;
time( &date );
return ((mtime_t) date) * 1000000;
#else
struct timeval tv_date;

/* gettimeofday() could return an error, and should be tested. However, the
* only possible error, according to 'man', is EFAULT, which can not happen
* here, since tv is a local variable. */
gettimeofday( &tv_date, NULL );
return( (mtime_t) tv_date.tv_sec * 1000000 + (mtime_t) tv_date.tv_usec );
#endif
}

then the schedule works correctly.

thanks god.

martintxo
Blank Cone
Blank Cone
Posts: 19
Joined: 07 Apr 2005 13:24

Postby martintxo » 02 Jun 2005 16:32

What about the duplicate? Did you get to make it work? I´m trying but I can´t.
Thank you


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests