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
Was trying to dump the ffmpeg into a writable via the writeToStream method but stream is missing important metadata....
Error looks isolated to ffmpeg on Windows (using windows 8, 64 bits). Ran the following:
ffmpeg -i "" -codec:v libvpx -f webm ""
and (note: -f webm has to be there otherwise ffmpeg complains about no suitable output format):
ffmpeg -i "" -codec:v libvpx -f webm pipe:1 > ""
Viewing the video file via chrome shows no duration for the piped output whereas the other file (from the first command) works fine. Confirmed with ffprobe. No bitrate info either.
Assume ffmpeg uses file stat info but with streams there isn't any. It affects the writeToStream methods and will give users a head-ache. Update the Readme?
Any rate, great plugin to node!!!!
The text was updated successfully, but these errors were encountered:
Actually this problem is not specific to Windows. Most formats write stream information (duration, bitrate, keyframe position...) at the beginning of the file, and thus ffmpeg can only write this information when its output is seekable (because it has to finish processing streams to the end before knowing what to write). Pipes are not seekable, so you won't get this information when using an output pipe.
As for your note about the output format, ffmpeg determines the output format from the output file extension, which is not possible with pipes; that's why you have to specify the output format explicitly.
Was trying to dump the ffmpeg into a writable via the writeToStream method but stream is missing important metadata....
Error looks isolated to ffmpeg on Windows (using windows 8, 64 bits). Ran the following:
ffmpeg -i "" -codec:v libvpx -f webm ""
and (note: -f webm has to be there otherwise ffmpeg complains about no suitable output format):
ffmpeg -i "" -codec:v libvpx -f webm pipe:1 > ""
Viewing the video file via chrome shows no duration for the piped output whereas the other file (from the first command) works fine. Confirmed with ffprobe. No bitrate info either.
Assume ffmpeg uses file stat info but with streams there isn't any. It affects the writeToStream methods and will give users a head-ache. Update the Readme?
Any rate, great plugin to node!!!!
The text was updated successfully, but these errors were encountered: