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
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,13 @@ You can use `ffprobe` command for now. It might be implemented in the library in
114
114
115
115
Currently, no.
116
116
117
+
## Something doesn't work
118
+
119
+
Try running your program with `DEBUG=ffmpeg-stream` environment variable.
120
+
It will print the ffmpeg command it executes and all the ffmpeg logs.
121
+
The command usually looks something like `ffmpeg -f … -i pipe:3 -f … pipe:4`.
122
+
`pipe:number` means it uses standard input/output instead of a file.
123
+
117
124
## Error: Muxer does not support non seekable output
118
125
119
126
When getting error similar to this:
@@ -131,7 +138,7 @@ When getting error similar to this:
131
138
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
132
139
```
133
140
134
-
ffmpeg says that the combination of options you specified doesn't support streaming. You can experiment with calling ffmpeg directly and specifying `-` as output file. Maybe some other options or different format will work. Streaming sequence of JPEGs over websockets worked flawlessly for me (`f: 'mjpeg'`).
141
+
ffmpeg says that the combination of options you specified doesn't support streaming. You can experiment with calling ffmpeg directly and specifying `-`or `pipe:1`as output file. Maybe some other options or different format will work. Streaming sequence of JPEGs over websockets worked flawlessly for me (`{ f: "image2pipe", vcodec: "mjpeg" }`).
135
142
136
143
You can also use `createBufferedOutputStream`. That tells the library to save output to a temporary file and then create a node stream from that file. It wont start producing data until the conversion is complete, though.
0 commit comments