I've been trying for hours to set up the pipeline for streaming an MP4 file to nginx via RTMP on my rpi2.
- must use Openmax GPU encoding (omxh264enc)
Here's the command I'm trying
gst-launch-1.0 \
filesrc location="/path/to/video.mp4" ! decodebin name=t \
t. ! videoconvert ! omxh264enc ! queue ! flvmux name=mux \
t. ! audioconvert ! voaacenc bitrate=128000 ! queue ! mux. \
mux. ! rtmpsink location="rtmp://127.0.0.1:1935/live/cantelope live=1"
which outputs
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstOMXH264Enc-omxh264enc:omxh264enc- omxh264enc0: Internal data stream error.
Additional debug info:
gstomxvideoenc.c(865): gst_omx_video_enc_loop (): /GstPipeline:pipeline0/GstOMXH264Enc-omxh264enc:omxh264enc-omxh264enc0:
stream stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
Edit: This is the new command and output.