Gstreamer transcode to h264

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Gstreamer transcode to h264

1,748 次查看
peterhafner
Contributor I

I have a i.mx6 Dual,

and the gstreamer-imx compiled.

My task is to receive a jpeg-stream, and transcode it to a h264 video stream.

Of course, for streaming over wifi, and very fast ;-)

Here, this line is working,

I got the jpeg-stream stored to the file.

gst-launch-1.0 udpsrc buffer-size=1000000 port=5006 ! queue ! jpegdec ! imxipuvideotransform ! matroskamux name=mux ! filesink location=test.mkv

Now, I want to transcode it to h264.

I try different lines with gstreamer, mostly I run into not-negotiated (-4) error.

for example with this one.

gst-launch-1.0 --gst-debug=3 udpsrc buffer-size=1000000 port=5006 ! jpegdec ! queue ! imxvpuenc_h264 bitrate=4096 ! "video/x-h264,stream-format=byte-stream,profile=high" ! h264parse ! matroskamux name=mux ! filesink location=test.mkv

Would be nice to get a hint.

Thanks

Peter

标签 (3)
0 项奖励
2 回复数

717 次查看
nluca
Contributor III

Hi Peter,

Did you try to set the "caps" options for udpsrc (e.g. caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, ....") ?

Regards,

Luca

0 项奖励

717 次查看
Yuri
NXP Employee
NXP Employee

  I think it makes sense to post this issue to meta-fsl-arm mailing list,
since there is no official Freescale gst-launch-1.0 release.

https://lists.yoctoproject.org/listinfo/meta-freescale

~Yuri.

0 项奖励