You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to take a PNG or JPG and a WAV file and combine them into a simple video which just displays the static image and plays the audio.
This command works for ffmpeg in the command line and produces a 5 second video: ffmpeg -loop 1 -y -i "BAT.PNG" -i "BAT.WAV" -c:v libx264 -c:a aac -b:a 48k -pix_fmt yuv420p -t 5000ms out.mp4
I'm trying to do this using ffmpeg.js now. Reading ancient issues on the tracker from 2016, the developer claimed that PNG decoding wasn't included in the module and I couldn't find evidence it had been added since. So I'm just trying with a JPG file and a WAV file now.
I've tried loading the two files in the two different ways listed in the README:
var c=a.mountpoint;if(!c.match(/^\/[^\/]+$/)||"/."===c||"/.."===c||"/tmp"===c||"/home"===c||"/dev"===c||"/work"===c)throw Error("Bad mount point");
If I remove the image file and only attempt to load the audio, it successfully produces an MP4 file with no visual component. If I remove the WAV file and try to have a silent video with just the image, I get the error.
Any idea what I'm doing wrong with regard to loading in image files?
The text was updated successfully, but these errors were encountered:
I'm attempting to take a PNG or JPG and a WAV file and combine them into a simple video which just displays the static image and plays the audio.
This command works for ffmpeg in the command line and produces a 5 second video:
ffmpeg -loop 1 -y -i "BAT.PNG" -i "BAT.WAV" -c:v libx264 -c:a aac -b:a 48k -pix_fmt yuv420p -t 5000ms out.mp4
I'm trying to do this using ffmpeg.js now. Reading ancient issues on the tracker from 2016, the developer claimed that PNG decoding wasn't included in the module and I couldn't find evidence it had been added since. So I'm just trying with a JPG file and a WAV file now.
I've tried loading the two files in the two different ways listed in the README:
and
Both produce the same "Bad mount point" error:
If I remove the image file and only attempt to load the audio, it successfully produces an MP4 file with no visual component. If I remove the WAV file and try to have a silent video with just the image, I get the error.
Any idea what I'm doing wrong with regard to loading in image files?
The text was updated successfully, but these errors were encountered: