jbilcke-hf HF staff commited on
Commit
873dc9a
·
1 Parent(s): 2999416

try to debug ffmpeg

Browse files
src/core/ffmpeg/concatenateVideosWithAudio.mts CHANGED
@@ -88,6 +88,7 @@ export const concatenateVideosWithAudio = async ({
88
  // Begin ffmpeg command configuration
89
  let ffmpegCommand = ffmpeg();
90
 
 
91
  ffmpegCommand = ffmpegCommand.addInput(tempFilePath.filepath);
92
 
93
  ffmpegCommand = ffmpegCommand.outputOptions('-loglevel', 'debug');
@@ -150,7 +151,9 @@ export const concatenateVideosWithAudio = async ({
150
 
151
  // Set up event handlers for ffmpeg processing
152
  const promise = new Promise<string>((resolve, reject) => {
153
- ffmpegCommand.on('error', (err) => {
 
 
154
  console.error("concatenateVideosWithAudio: error during ffmpeg processing");
155
  console.error(err)
156
  reject(err);
 
88
  // Begin ffmpeg command configuration
89
  let ffmpegCommand = ffmpeg();
90
 
91
+
92
  ffmpegCommand = ffmpegCommand.addInput(tempFilePath.filepath);
93
 
94
  ffmpegCommand = ffmpegCommand.outputOptions('-loglevel', 'debug');
 
151
 
152
  // Set up event handlers for ffmpeg processing
153
  const promise = new Promise<string>((resolve, reject) => {
154
+ ffmpegCommand.on('start', function(commandLine) {
155
+ console.log('concatenateVideosWithAudio: Spawned Ffmpeg with command: ' + commandLine);
156
+ }).on('error', (err) => {
157
  console.error("concatenateVideosWithAudio: error during ffmpeg processing");
158
  console.error(err)
159
  reject(err);