🎥 Make videos programmatically with React
`@remotion/renderer`: Print the src that cannot be read as a video
Jonny Burger0909dbd28b12
diff --git a/packages/renderer/rust/ffmpeg.rs b/packages/renderer/rust/ffmpeg.rsindex 5073bca059..e484683177 100644--- a/packages/renderer/rust/ffmpeg.rs+++ b/packages/renderer/rust/ffmpeg.rs@@ -188,7 +188,10 @@ pub fn get_video_metadata(file_path: &str) -> Result<VideoMetadata, ErrorWithBacSome(video_stream) => video_stream,None => Err(std::io::Error::new(ErrorKind::Other,- "No video stream found",+ format!(+ "No video stream found in {}. Is this a video file?",+ file_path+ ),))?,};diff --git a/packages/renderer/rust/opened_stream.rs b/packages/renderer/rust/opened_stream.rsindex 9906971ea1..9a1856849a 100644--- a/packages/renderer/rust/opened_stream.rs+++ b/packages/renderer/rust/opened_stream.rs@@ -428,9 +428,10 @@ pub fn open_stream({Some(stream) => stream,None => {- return Err(ErrorWithBacktrace::from(- "No video stream found in input file",- ));+ return Err(ErrorWithBacktrace::from(format!(+ "No video stream found in input file {}. Is this a video file?",+ original_src+ )));}};