Hello all,
I'm currently trying to convert (and stream to udp in same time) a capture device input to a file using libvlc.dll.
So I'm using these options: :sout=#transcode{vcodec=WMV2,vb=1024,scale=1,acodec=mp3,ab=192,channels=2}:duplicate{dst=display,dst=std{access=udp,mux=ts,dst=224.0.0.52:4323},dst=file{dst=\\\\\\\\192.168.0.52\\\\Shared documents\\\\128.wmv}}
Once this option added, I make a call to: libvlc_media_player_play(p_mi);
When I want to terminate the recording/streaming I call: libvlc_media_player_stop(p_mi)
Next when I want to playback the file, it's readable, but VLC is not able to get the length of the video, libvlc_media_player_get_length(p_mi); returns 0.
Do you have any idea ? Is there anything to do ? Thinking that could come from for the encoding format I have tried several other codec but each time it the same. But doing the same thing through the VLC GUI works fine and returns a correct video time.
Thanks for your help.
F!oc