jbilcke-hf HF staff commited on
Commit
26058e7
·
1 Parent(s): 7051193

add a bit less logs

Browse files
src/core/exporters/clapWithStoryboardsToVideoFile.mts CHANGED
@@ -112,7 +112,7 @@ export async function clapWithStoryboardsToVideoFile({
112
  videoFilePaths.push(storyboardSegmentVideoFilePath)
113
  }
114
 
115
- console.log(`clapWithStoryboardsToVideoFile: videoFilePaths: ${JSON.stringify(videoFilePaths, null, 2)}`)
116
 
117
  return {
118
  outputDir,
 
112
  videoFilePaths.push(storyboardSegmentVideoFilePath)
113
  }
114
 
115
+ // console.log(`clapWithStoryboardsToVideoFile: videoFilePaths: ${JSON.stringify(videoFilePaths, null, 2)}`)
116
 
117
  return {
118
  outputDir,
src/core/ffmpeg/imageToVideoBase64.mts CHANGED
@@ -43,7 +43,6 @@ export async function imageToVideoBase64({
43
 
44
  outputDir = outputDir || (await getRandomDirectory())
45
 
46
-
47
  console.log(`imagetoVideoBase64 called with: ${JSON.stringify({
48
  inputImageInBase64: inputImageInBase64?.slice(0, 50),
49
  outputFilePath,
@@ -66,7 +65,7 @@ export async function imageToVideoBase64({
66
  const durationInSeconds = outputVideoDurationInMs / 1000;
67
 
68
  console.log("durationInSeconds: " + durationInSeconds)
69
-
70
  // Process the image to video conversion using ffmpeg.
71
  await new Promise<void>((resolve, reject) => {
72
  ffmpeg(inputImagePath)
 
43
 
44
  outputDir = outputDir || (await getRandomDirectory())
45
 
 
46
  console.log(`imagetoVideoBase64 called with: ${JSON.stringify({
47
  inputImageInBase64: inputImageInBase64?.slice(0, 50),
48
  outputFilePath,
 
65
  const durationInSeconds = outputVideoDurationInMs / 1000;
66
 
67
  console.log("durationInSeconds: " + durationInSeconds)
68
+
69
  // Process the image to video conversion using ffmpeg.
70
  await new Promise<void>((resolve, reject) => {
71
  ffmpeg(inputImagePath)
src/main.mts CHANGED
@@ -57,7 +57,7 @@ export async function clapToTmpVideoFilePath({
57
  outputDir,
58
  })
59
 
60
- console.log(`clapToTmpVideoFilePath: called clapWithVideosToVideoFile, got concatenatedData = ${JSON.stringify(concatenatedData, null, 2)}`)
61
 
62
  videoFilePaths = concatenatedData.videoFilePaths
63
  } else if (canUseStoryboards) {
@@ -67,7 +67,7 @@ export async function clapToTmpVideoFilePath({
67
  outputDir,
68
  })
69
 
70
- console.log(`clapToTmpVideoFilePath: called clapWithStoryboardsToVideoFile, got concatenatedData = ${JSON.stringify(concatenatedData, null, 2)}`)
71
 
72
  videoFilePaths = concatenatedData.videoFilePaths
73
  } else {
@@ -124,7 +124,7 @@ export async function clapToTmpVideoFilePath({
124
  videoTracksVolume: concatenatedAudio ? 0.85 : 1.0,
125
  audioTrackVolume: concatenatedAudio ? 0.15 : 0.0, // let's keep the music volume low
126
  })
127
- console.log(`clapToTmpVideoFilePath: finalFilePathOfVideoWithMusic = ${finalFilePathOfVideoWithMusic}`)
128
 
129
  if (clearTmpFilesAtEnd) {
130
  // we delete all the temporary assets
 
57
  outputDir,
58
  })
59
 
60
+ // console.log(`clapToTmpVideoFilePath: called clapWithVideosToVideoFile, got concatenatedData = ${JSON.stringify(concatenatedData, null, 2)}`)
61
 
62
  videoFilePaths = concatenatedData.videoFilePaths
63
  } else if (canUseStoryboards) {
 
67
  outputDir,
68
  })
69
 
70
+ // console.log(`clapToTmpVideoFilePath: called clapWithStoryboardsToVideoFile, got concatenatedData = ${JSON.stringify(concatenatedData, null, 2)}`)
71
 
72
  videoFilePaths = concatenatedData.videoFilePaths
73
  } else {
 
124
  videoTracksVolume: concatenatedAudio ? 0.85 : 1.0,
125
  audioTrackVolume: concatenatedAudio ? 0.15 : 0.0, // let's keep the music volume low
126
  })
127
+ // console.log(`clapToTmpVideoFilePath: finalFilePathOfVideoWithMusic = ${finalFilePathOfVideoWithMusic}`)
128
 
129
  if (clearTmpFilesAtEnd) {
130
  // we delete all the temporary assets