H264_omx10/13/2023 I just want to encode a single 4K image into a. err 80001018 (-2147479528) on line 561Įrror initializing output stream 0:0 - Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heightĬommand used: ffmpeg -i /media/pi/pic_1_org.png -c:v h264_omx -c:a copy -b:v 1500k outputfile.mp4 configure -arch=armel -target-os=linux -enable-gpl -enable-omx -enable-omx-rpi -enable-nonfreeįollowing the link, (RPi)-Compile-FFmpeg-with-the-OpenMAX-H.264-GPU-accelerationīut while executing the encoding command after building and installing the ffmpeg with those configuration properly, I am getting the following error Using _encode Compiling FFmpeg source enabling the configurations sudo. My program has the hardware encoder tied up because it is using the Pi camera, so this does not actually solve my problem - but I'd already posted this as the answer before I realized that.I am trying to enable the hardware support for H264 encoding on raspberry pi 4B model. (It turns out this is only a partial solution. This is working from the console, I can browse to the stream from another machine. I can stream from a file via piped input with this command: cat /media/ramdisk/input.raw |. NET Core program using MMAL with a camera on a headless Raspberry Pi which successfully outputs 640x480 24FPS h.264 to VLC stdin, and VLC is able to relay this as an MJPEG stream over HTTP (with line breaks for readability): cvlc stream:///dev/stdin However, using the -g option this way does not change anything: ffmpeg -i /dev/video0 -c:v h264omx -g 30 -f rtp rtp://192.168.0.101:1234 It is a problem for me because I am using the raspberry as a securiy camera. I doubt it matters, but this is a Raspberry Pi 4B rev 1.2 with a v1 5MP camera running Pi OS ARM32 (whatever version was newest about July 2020). h264 0x7fd97c0008c0 non-existing PPS 0 referenced After looking for a while I understand some intermediary frame might be missing. I can get results with either program independently but I can't get the piping to work. I want to stream raw RGB24 frames to ffmpeg stdin, and pipe h.264 from ffmpeg into VLC, which then serves an HTTP MJPEG stream on some arbitrary port.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |