![]() ![]() Trying to run a simple ffmpeg line on my Ubuntu 16.04 vps shell, ffmpeg -ss 1 -i /var/but am met with Could not open fileĪnd av_interleaved_write_frame(): Input/output error How can I configure FFMpeg to only output NAL units of type 1, 5, 7, and 8? ![]() Neither Broadway nor Prism supports these NAL unit types. The problem is that the NAL units I'm getting are of type 9 (or maybe 6?), here is the header of one of the NAL units that javascript is receiving, in Base64 and binary formatting: echo "AAAAAQnwAAAAAQYBBAAECBCAAAAAAWHg" | base64 -d | xxd -bĠ0000000: 00000000 00000000 00000000 00000001 00001001 11110000. I am using this FFMpeg command: ffmpeg -f v4l2 -i /dev/video0 -r 15 -c:v h264_nvenc -pix_fmt yuv420p -b:v 500k -profile:v baseline -tune zerolatency -f mpegts - | nc -l -p 8084 127.0.0.1 ![]() The separate NAL units are decoded by Broadway or Prism which outputs to a canvas.The jsmpeg library decodes MPEG-TS into separate NAL units.A websocket server in NodeJS pipes data from port 8084 to clients on 8085.The stream is piped to netcat which listens on port 8084.FFMpeg outputs an MPEG-TS stream with h264 data.I am trying to set up a livestream in the browser using h264 encoding, in which javascript decodes the h264 frames and paints it on a Canvas-element (or using WebGL).īoth Broadway and Prism implement decoding NAL units of type 1, 5, 7, and 8. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |