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
letconv=newConverter();constinput=conv.createInputStream({f: 'image2pipe',r: 25})conv.output({"f": 'mp4',"vcodec": 'libx264',"pix_fmt": 'yuv420p',"buffer": true,}).pipe(uploadFromStream(resolve,reject,outputPath)).on('error',function(err){console.log(`error on create video line 38 ${err}`)reject(err);})
but I want to create a independent ts segment not mp4 for which I have done something like below
letconv=newConverter();constinput=conv.createInputStream({f: 'image2pipe',r: 25})// create input writable stream//conv.createOutputToFile('out.mp4', { vcodec: 'libx264', pix_fmt: 'yuv420p' })conv.output({"f": 'ssegment',"vcodec": 'libx264',//"pix_fmt": 'yuv420p', "buffer": true,"vbsf":"h264_mp4toannexb","flags":true,"global_header":true,"map":"0","segment_time":"1","segment_format":"mpegts"}).pipe(uploadFromStream(resolve,reject,outputPath)).on('error',function(err){console.log(`error on create video line 38 ${err}`)reject(err);})
but it is returning me some error
{"errorType": "Runtime.UnhandledPromiseRejection","errorMessage": "Error: ENOENT: no such file or directory, open '/tmp/ffmpeg-avk572ai4n'","reason": {"errorType": "Error","errorMessage": "ENOENT: no such file or directory, open '/tmp/ffmpeg-avk572ai4n'","code": "ENOENT","errno": -2,"syscall": "open","path": "/tmp/ffmpeg-avk572ai4n","stack": ["Error: ENOENT: no such file or directory, open '/tmp/ffmpeg-avk572ai4n'"]},"promise": {},"stack": ["Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, open '/tmp/ffmpeg-avk572ai4n'"," at process.on (/var/runtime/index.js:37:15)"," at process.emit (events.js:198:13)"," at process.EventEmitter.emit (domain.js:448:20)"," at emitPromiseRejectionWarnings (internal/process/promises.js:140:18)"," at process._tickCallback (internal/process/next_tick.js:69:34)"]}
Can someone please help me resolving this issue
The text was updated successfully, but these errors were encountered:
This muxer outputs streams to a number of separate files of nearly fixed duration. Output filename pattern can be set in a fashion similar to image2, or by using a strftime template if the strftime option is enabled.
Hi ,
This code is working fine for me
but I want to create a independent ts segment not mp4 for which I have done something like below
but it is returning me some error
Can someone please help me resolving this issue
The text was updated successfully, but these errors were encountered: