Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, June 13, 2016 12:55:47 AM(UTC)

pocgoc  
pocgoc

Groups: Registered
Posts: 7


Hi
Originally i use with Smooth Stream Format with CopyTarget, it doesn't work with a filename parameter passed and targetformat as SmoothStream,

One solution mentioned is to capture to 2 formats at the same time.

Can i get a example of Setting up and Capturing a network stream, please?

Edited by moderator Thursday, September 22, 2016 8:45:13 AM(UTC)  | Reason: fixed formatting

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, June 14, 2016 12:05:18 PM(UTC)

Aaron  
Aaron

Groups: Registered, Tech Support, Administrators
Posts: 71

Was thanked: 4 time(s) in 3 post(s)

Hi,

Depending on your setup and use case it may be better for you to use RTSP instead of Smooth Streaming as RTSP will broadcast the audio and video stream which will allow you to attach as many convert controls to the stream as you wish. You will be able to view the stream from any player as well while the process is working.

Attached is a simple sample project written in C# using LEADTOOLS Multimedia 19. The project assumes that you already have LEADTOOLS Multimedia 19 installed on your machine. The project captures from the default audio and video devices attached to your machine and re-streams the audio and video back out via RTSP. Once the RTSP stream is live the project then spawns two background threads to do the conversion processes on so that the main UI is not locked up. The project converts the stream into a H264/AAC encoded AVI file and a H264/AAC MP4 file as examples but you could change these to other formats as you wish.

Please note that you will need to change the port the audio/video stream is streamed through depending on your network settings and which ports are available. Also note that you will not be able to stop the application using Visual Studio since ConvertControl.StopConvert needs to get called on the convert controls in order to get a valid output file. The project calls this method in the FormClosing event. You will need to stop the application via the X in the top right hand corner of the form so the FormClosing event is fired. This would only be an issue when running the application from Visual Studio.
File Attachment(s):
C#SimpleCaptureToStream.zip (1,801kb) downloaded 504 time(s).
Aaron Brasington
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.085 seconds.