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 : Friday, October 5, 2012 5:29:55 AM(UTC)
jvreeker

Groups: Registered
Posts: 16


Hello,

I have a strange thing here. I have a UDP stream that I try to convert to an new UDP stream.
See code
ConvertCtrl1.SourceFile = "udp://192.168.79.98:50000";
              ConvertCtrl1.VideoCompressors.H264.Selected = true;
              int selection = ConvertCtrl1.VideoCompressors.Selection;
              ConvertCtrl1.VideoCompressors.Selection = selection;

              ConvertCtrl1.TargetFormat = TargetFormatType.MPEG2Transport;          
ConvertCtrl1.TargetFile= "udp://127.0.0.1:5008";
ConvertCtrl1.startConvert();

Sometimes this working but sometimes I get the message Filter in wrong state. I can play the stream in VLC with a sdp file.
v=0
s=tx.sdp
c=IN IP4 192.168.79.98/24
b=AS:5000
t=0 0
a=x-broadcastcontrol:TIME
a=isma-compliance:1,1.0,1
m=video 50000 RTP/AVP 98
a=rtpmap:98 MP4V-ES/90000
a=control:trackID=1
a=fmtp:98 profile-level-id=3;config=000001b0f5000001b509000001000000012000c48dc0004177400b7801900090019a2d089028c7
a=mpeg4-esid:201
a=framerate:25

When opening the file in the example player I got a black screen. No Video.

Is there a way to see why a filter is in a wrong state. Strange is sometimes it works and sometime not.

Thanks
Jelle
 

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 : Sunday, October 7, 2012 5:07:10 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Hello,
You need to check the internal graph to verify that it is being built successfully. To do this call ConvertCtrl1.EditGraph() method before starting the conversion process.
To view the graph, you will need a utility such as GraphEdit.
GraphEdit is a standard test tool from Microsoft.

If you don't have a graph edit utility, you can download it from the following forum post:
http://support.leadtools.com/SupportPortal/cs/forums/3889/ShowPost.aspx#3889

Also, the following two lines are not necessary:
==========
int selection = ConvertCtrl1.VideoCompressors.Selection;
ConvertCtrl1.VideoCompressors.Selection = selection;
==========
You can comment them out and it will not affect your application if you are not using "selection" in another place.

 
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.079 seconds.