Page 1 of 1

problems found when useing vlm under ms windows, help pls

Posted: 31 Jan 2005 08:38
by john luo
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.

Posted: 31 Jan 2005 12:59
by john luo
i stepped into source code, seems it need not use 1/1000000s to do the schedule. 1/1000s is enough, isn't it?

Posted: 01 Feb 2005 12:28
by john luo
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...

final solution

Posted: 02 Feb 2005 14:38
by john luo
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.

Posted: 02 Jun 2005 16:32
by martintxo
What about the duplicate? Did you get to make it work? I´m trying but I can´t.
Thank you