Re: concat different video types
Started by photo boy at 11-12-2008 11:58. Topic has 8 replies.
|
|
11-12-2008, 11:58
|
photo boy
Joined on 11-12-2008
Posts 6
|
concat different video types
|
 
 
|
|
|
Hello, I am attempting to compile some video clipt into a single file. The clips are of two different file types - even numbered clips are known to be mpeg4 with video only, but the odd numbered clips are of unreliable format (differing resolutions) but the same as each other in each run. Do I need to run through both sets of clips first to put them into a known, single format (i.e. all the same res/fps/encoding) before I can concat them into one file? or is there some way I can reduce the load by running the concat over the original source files? I have tried with an adapted version of the sample code (C++) but it will only concat every other file, missing the even numbered clips.
Thanks in advance.
|
|
|
|
|
Report
|
|
|
|
11-13-2008, 4:27
|
Yasir Alani

Joined on 02-05-2007
Posts 311
|
Re: concat different video types
|
 
 
|
|
|
What version of our Multimedia toolkit are you using?
About your problem, can you play the files that get skipped in any of our Playback demos (like the C++ Multimedia Player demo)? If not, then you will not be able to process these files using LEADTOOLS as well.
Yasir Alani LEADTOOLS Technical Support support@leadtools.com
|
|
|
|
|
Report
|
|
|
|
11-13-2008, 4:37
|
photo boy
Joined on 11-12-2008
Posts 6
|
Re: concat different video types
|
 
 
|
|
|
Sorry, I'm using v15.
Yes, the files are all of standard formats, it just so happens that the ones being skipped are .asf files (mpeg4 with video only). I've already got some code that can put all of the clips onto a dvd (as individual chapters) but need to join the clips to a single video to burn as a single chapter.
|
|
|
|
|
Report
|
|
|
|
11-13-2008, 10:22
|
Yasir Alani

Joined on 02-05-2007
Posts 311
|
Re: concat different video types
|
 
 
|
|
|
You haven't mentioned if the files that get skipped play on any of our playback demos.
Yasir Alani LEADTOOLS Technical Support support@leadtools.com
|
|
|
|
|
Report
|
|
|
|
11-13-2008, 11:59
|
photo boy
Joined on 11-12-2008
Posts 6
|
Re: concat different video types
|
 
 
|
|
|
Yes, the files play in playback demos, and they convert in the convert demo, and I'm successfully converting them elsewhere. The question is can I concatenate take these files (asf) and concatenate them with my other files (m2v) directly? or do I need to convert the asf files to mepg2 before I concatenate? I'm looking for the most efficient way of doing this.
|
|
|
|
|
Report
|
|
|
|
11-14-2008, 7:51
|
photo boy
Joined on 11-12-2008
Posts 6
|
|
|
OK, I've made a few changes in the hope of getting this thing running... Here's what I'm attempting:
convert1 takes the m2v files as input and target1 as output; convertA takes the asf files as input and targetA as output; convert2 takes source1 as input and an m2v file as output.
All are configured to output MPEG2_PROGRAM target format; convertA is configured to use the "RecommendedVideoCompressor" for the target format; convertA is configured to use the resize filter set to 720x576.
As per the concat example, the "ConvertFile" function is used to copy the samples from target1 and targetA in turn into source1.
Once all is done, source1 gets an end of stream and convert2 is stopped.
This results in a worse case than before - onlt the first clip is transferred to the destination file.
Any ideas what I might be doing wrong?
|
|
|
|
|
Report
|
|
|
|
11-16-2008, 11:10
|
Yasir Alani

Joined on 02-05-2007
Posts 311
|
Re: concat different video types
|
 
 
|
|
|
Do the source files share the same frame rate?
If you are using source files with different frame rate, in our Concat And Resize Files demo, you will get a warning that "The provided files have different frame rates. The resulting file will suffer playback problems, do you want to continue?". When I concatenated the files, the resulting file was not correct.
Yasir Alani LEADTOOLS Technical Support support@leadtools.com
|
|
|
|
|
Report
|
|
|
|
11-17-2008, 4:07
|
photo boy
Joined on 11-12-2008
Posts 6
|
Re: concat different video types
|
 
 
|
|
|
Sadly, the main part of the problem is that the two sets of files cannot be relied upon to be the same frame rate. I believe that the current test files consist of one set at 25 fps and one at 30 fps.
|
|
|
|
|
Report
|
|
|
|
11-17-2008, 11:25
|
Maen Hasan

Joined on 08-05-2004
Posts 1,876
|
Re: concat different video types
|
 
 
|
|
|
If the frame rate of the files that you want to concatenate is different, we can't guarantee the result of the concatenated file.
Try to insert the LEAD Video Frame Rate Controller Filter into the ltmmConvert control and see if it helps with the concat process. For more information about the LEAD Video Frame Rate Controller Filter, please read the following help topic in the LEADTOOLS Filters Help file: - LEAD Video Frame Rate Controller Filter User Interface (2.0)
Thanks, Maen Badwan LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
|
LEAD Support Fo... » Developer » Multimedia » Re: concat different video types
|
|
Copyright LEAD Technologies, Inc. 2008
