![]() Since the stream is to be connected to a processor, it needs to maintain consistency in the format of the data on individual tracks. ![]() The SuperGlueDataSource basically opens one input file at a time using a processor, requests output in a raw format, strips away data not contained within the start and end times and feeds them as a stream one file after the other. This final restriction is due to a bug in the JMF 2.0 implementation. Some of the restrictions are - the input audio files need to be sampled at 44,100 Hz, all the input videos should be of the same dimensions, and the input audio cannot be in MPEG format. This example is not very complete and makes assumptions about the input formats. The parameters to this DataSource class are a list of files, the start and end times for each file and the effects to apply between the clips. The advantage of creating this as a DataSource is that it can be directly connected to a processor which can then multiplex the data streams and write the output to a data sink. One such method is to create a custom DataSource class. SolutionĪlthough the JMF API does not have any explicit media editing classes or methods, the API is flexible enough to create editing applications in several different ways. In addition, you'd like to apply some special effects in the transition between the clips. You have several audio or video clips, or possibly different parts of a single movie that you'd like to concatenate together to create a single seamless movie.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |