Skip to main content

Running BumfGenerator from a servlet

4 replies [Last post]
ggeorgopoulos
Offline
Joined: 2006-12-25
Points: 0

Hi,

I need to run BumfGenerator from a servlet. Is it posible to make

private Manifest constructManifest(String idFile, String bdmvDir, File outputDir,
String[] progressives) throws Exception

public?

Thanks,
George.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ggeorgopoulos
Offline
Joined: 2006-12-25
Points: 0

Hi,

if yes, then writeXml() has to be also public.

By the way, in the progressive playlist example build.xml file, one has to list all the m2ts files:







By looking at the BumfGenerator code it just needs a file listing that can be easily done with:

String[] progressives = new File(inputDir, "STREAM").list();

Thanks,
George.

chihiro_saito
Offline
Joined: 2006-11-08
Points: 0

Hi George,

Yes, these requests make sense. I filed issue 218 on this and should be able to work on it within a couple of days.

https://hdcookbook.dev.java.net/issues/show_bug.cgi?id=218

Thanks,
Chihiro

ggeorgopoulos
Offline
Joined: 2006-12-25
Points: 0

Hi Chihiro,

thanks.

In case sombody finds it useful, I use this class to join 7 progressive playlists into one vfs-playlist.jar file (my vfs-playlist.jar file does not contain m2ts files):

http://pastebin.org/321035

Kind Regards,
George.

chihiro_saito
Offline
Joined: 2006-11-08
Points: 0

Hi George,

I committed back some changes to the BUMFGenerator. It does expose the two methods you've asked for. The tool's main(String[]) part is backward compatible, but the methods that got exposed now have slightly different parameters from the time that they were private; please see the method comments for what they are now.

Also, I've threw in a few other improvements while I was at it, including better mapping of the 8.3 file name and the ability to specify sub-directory name for the BUFile path in manifest.xml so that files can be downloaded into a sub-directory in BUDA. (See issue 218 for the list of changes).

Please let me know how it goes or if you have other thoughts.

Thanks,
Chihiro