}
void FileMPEG::get_parameters(BC_WindowBase *parent_window,
- Asset *asset,
- BC_WindowBase* &format_window,
- int audio_options,
- int video_options)
+ Asset *asset, BC_WindowBase* &format_window,
+ int audio_options, int video_options, EDL *edl)
{
if(audio_options && asset->format == FILE_AMPEG)
{
+#ifdef HAVE_COMMERCIAL
int FileMPEG::toc_nail(void *vp, int track)
{
File *file = (File *)vp;
MWindow::commercials->get_frame(file, pid, position, tdat, mw, mh, width, height);
return 0;
}
-
+#endif
int FileMPEG::create_toc(char *toc_path)
{
// File needs a table of contents.
struct timeval new_time, prev_time, start_time, current_time;
gettimeofday(&prev_time, 0); gettimeofday(&start_time, 0);
+#ifdef HAVE_COMMERCIAL
if( file->preferences->scan_commercials ) {
set_skimming(-1, 1, toc_nail, file);
if( MWindow::commercials->resetDb() != 0 )
eprintf(_("cant access commercials database"));
}
+#endif
// This gets around the fact that MWindowGUI may be locked.
char progress_title[BCTEXTLEN];
sprintf(progress_title, _("Creating %s\n"), toc_file);
}
}
+#ifdef HAVE_COMMERCIAL
if( file->preferences->scan_commercials ) {
if( !result ) MWindow::commercials->write_ads(asset->path);
MWindow::commercials->closeDb();
}
+#endif
mpeg3_stop_toc(fd);
fd = 0;
: BC_Window(_(PROGRAM_NAME ": Audio Compression"),
parent_window->get_abs_cursor_x(1),
parent_window->get_abs_cursor_y(1),
- 310,
- 120,
- -1,
- -1,
- 0,
- 0,
- 1)
+ 310, 120, -1, -1, 0, 0, 1)
{
this->parent_window = parent_window;
this->asset = asset;
}
-
-
-
-
-
MPEGLayer::MPEGLayer(int x, int y, MPEGConfigAudio *gui)
: BC_PopupMenu(x, y, 100, layer_to_string(gui->asset->ampeg_derivative))
{
MPEGABitrate::MPEGABitrate(int x, int y, MPEGConfigAudio *gui)
- : BC_PopupMenu(x,
- y,
- 100,
+ : BC_PopupMenu(x, y, 100,
bitrate_to_string(gui->string, gui->asset->ampeg_bitrate))
{
this->gui = gui;
: BC_Window(_(PROGRAM_NAME ": Video Compression"),
parent_window->get_abs_cursor_x(1),
parent_window->get_abs_cursor_y(1),
- 500,
- 400,
- -1,
- -1,
- 0,
- 0,
- 1)
+ 500, 400, -1, -1, 0, 0, 1)
{
this->parent_window = parent_window;
this->asset = asset;