Error on recording rtsp stream

About encoding, codec settings, muxers and filter usage
olixelle
New Cone
New Cone
Posts: 9
Joined: 08 Feb 2007 20:32

Error on recording rtsp stream

Postby olixelle » 09 Feb 2007 19:15

Hello :)

i develop a media center application and i'm trying to record rtsp stream with vlc activex V1 (version 0.8.6a)

Here is my code:

Code: Select all

Dim opt(1) As String opt(0) = ":sout=#transcode{vcodec=mp2v,vb=2000,scale=1,acodec=mpga,ab=384,channels=2}:duplicate{dst=display,dst=std{access=file,mux=mp4,dst=""c:\titi.mpg""}}" Me.AxVLCPlugin1.playlistClear() Me.AxVLCPlugin1.addTarget("rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=201", opt, AXVLC.VLCPlaylistMode.VLCPlayListInsert, 0) Me.AxVLCPlugin1.play()
But it doesnt work, i get an "parameter incorrect" error.

Options string comes from vlc, if i tried to record directly from vlc, it works.

If i remove options argument it works also...

In addition, vlc doesnt work very well on my computer: video size fits to whole screen width whatever be the video height...

Please :)

Thanks in advance

Olixelle

olixelle
New Cone
New Cone
Posts: 9
Joined: 08 Feb 2007 20:32

Postby olixelle » 09 Feb 2007 20:08

hello,

well i found my error: "Dim opt(1) As String " is wrong, "Dim opt(0) As String " is ok.

So i can record now but recording use a lot of cpu usage.

In this way, could u tell me what settings are best to record rtsp stream (what encapsulation method, what audio/video codec...)

thanks :)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests