#1
Posted
:
Monday, June 13, 2016 12:55:47 AM(UTC)
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
#2
Posted
:
Tuesday, June 14, 2016 12:05:18 PM(UTC)
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.
Aaron Brasington
Developer Support Engineer
LEAD Technologies, Inc.
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.