Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

A problem for converting a portion of a file
Started by jyu at 06-20-2008 3:57. Topic has 9 replies.

Print Search « Previous Thread Next Thread »
  06-20-2008, 3:57
jyu is not online. Last active: 6/11/2008 4:14:56 AM jyu

Not Ranked
Joined on 06-11-2008
Posts 1
A problem for converting a portion of a file
Reply Quote

Hi,

In the Convert application, I'm having trouble converting a portion of a file.
Whenever I set a start and end point in the Source Properties dialog box, the target file is all messed up. A problem occur: the target starts at my selected start point then continues to the end of the source clip (won't recognize my selected end point).I use the put_SelectionEnd() to set the end point, but it does not have effect!!!

I need you help.thanks


   Report 
  06-29-2008, 3:52
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,124
Re: A problem for converting a portion of a file
Reply Quote
I ran the following test using the latest LEADTOOLS Multimedia SDK setup and the latest DLLs:
1- Modify the C++ Convert demo source code shipped with the toolkit.
[LEADTOOLS Multimedia15\Examples\Ltmm\Cpp\Convert].
2- Add the following code before calling the m_convert->StartConvert().
////
hr = m_convert->put_SelectionStart(2.0);
hr = m_convert->put_SelectionEnd(3.0);
////
3- Run the demo.
4- Select one of the LEADTOOLS Media videos shipped with the toolkit such as "DaDa_CMP.avi" file
5- Select your desired output format.
6- Start the conversion.
You will get an output file with 1 second length.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
  08-12-2008, 5:59
reenaz is not online. Last active: 8/15/2008 4:45:22 AM reenaz

Not Ranked
Joined on 08-11-2008
Posts 6
Re: A problem for converting a portion of a file
Reply Quote

I am having the same problem, the output file does not have the time I have mentioned. The video total duration comes wrong.

ltmmConvert.SelectionStart = 30.0;

ltmmConvert.SelectionEnd = 31.0;

ltmmConvert.StartConvert();

The source videos total duration is 5 min (5:00) and the converted video segments total length comes to be 4 min and 30 sec (4:30).

Unable to understand at all!


   Report 
  08-12-2008, 9:45
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,124
Re: A problem for converting a portion of a file
Reply Quote
Did you try to put your code inside our demo and see if it works there? If not, please try to do that.
Also, can you tell me what build number (version info) of our Multimedia LTMM*.DLL you have on your computer?
Adnan Ismail
LEADTOOLS Technical Support

   Report 
  08-13-2008, 0:26
reenaz is not online. Last active: 8/15/2008 4:45:22 AM reenaz

Not Ranked
Joined on 08-11-2008
Posts 6
Re: A problem for converting a portion of a file
Reply Quote

Yes, I tried the mentioned code in your demo (C# Multimedia Convert Project (VS2005))

Actually my Source is an .mkv file and I want to convert its portion  in .avi ang .mpeg formats.

Considering the following lines of code, One thing that I observed is :

ltmmConvert.SelectionStart = 2.0;

ltmmConvert.SelectionEnd = 7.0;

ltmmConvert.StartConvert();

When the source is .avi the converted .mpeg file is of 5 sec duration.

When the source is .mpeg the converted .avi file is of 5 sec duration.

But when the source is .mkv the converted .avi file is of 56 sec duration

And converting it to .mpeg raises exception and code exits. WHY?

According to my understanding the captured portion of converted file should be of 5 secs starting from the second sec to the seventh sec of the source.

The version of  LTMM15.DLL is 15.1.0.025


   Report 
  08-13-2008, 9:55
Maen Hasan is not online. Last active: 8/14/2008 8:56:49 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,709
Re: A problem for converting a portion of a file
Reply Quote
It could be a limitation in the seeking abilities of the format.
Can you please send me a small sample video that shows the problem?

When you want to attach any files, please put them all in ZIP or RAR file. Also, don't use preview when you have attachment.
If you have any problem in attaching files to the forum, you can send the files in a ZIP of RAR file to support@leadtools.com. Don't forget to mention this forum post in your email to support.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  08-19-2008, 23:12
reenaz is not online. Last active: 8/15/2008 4:45:22 AM reenaz

Not Ranked
Joined on 08-11-2008
Posts 6
Re: A problem for converting a portion of a file
Reply Quote

Hello,

Few days back I have sent the .mkv file at support@leadtools.com with the subject A problem for converting a portion of a file. Kindly check that out.

Thanks


   Report 
  08-20-2008, 11:03
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,124
Re: A problem for converting a portion of a file
Reply Quote
I searched for messages sent from the email address you used to register on the forums and did not find any. Did you get "an automatic reply to acknowledge that your message has been received by LEAD Technical Support." message? If yes, what was the Ticket# in that message?
Adnan Ismail
LEADTOOLS Technical Support

   Report 
  08-21-2008, 23:53
reenaz is not online. Last active: 8/15/2008 4:45:22 AM reenaz

Not Ranked
Joined on 08-11-2008
Posts 6
Re: A problem for converting a portion of a file
Reply Quote

I did not received any confirmation, may be some problem have occured.

Actually I sent you the mewmew-vorbis-ssa.mkv sample easily available on net.

The thing that is occuring is any matroska file I use to segment, the resulting matroska video segment file does not contain the stop time but it continues.

Thanks


   Report 
  08-24-2008, 10:18
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,124
Re: A problem for converting a portion of a file
Reply Quote
If the size of the file you have is larger than 4MB and less than 9MB, please put it in a ZIP or RAR file and email it to support@leadtools.com and mention this post in your email.

If the file is larger than 9MB, please mention that in your email and we will send you instructions to put it on our FTP site. If the file is available on the Internet, please send us the download link in your email so we can download it.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Enduser » Capture & Conve... » A problem for converting a portion of a file

Powered by Community Server, by Telligent Systems