PNG file to encoding h264 data problem..

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

PNG file to encoding h264 data problem..

kukuman
Hi Everyone.

I'm noob of gstreamer.

i send to udpsink about my encoding PNG file data.

i think PNG file to decoding -> videoconvert -> x264enc -> rtph264pay ->
udpsink

so SENDER give to my CLIENT h264 data. but my CLIENT is not receive h264
data.

CLIENT doesn't show SENDER sended h264 data.

SENDER :
gst-launch-1.0 filesrc location=test.png ! pngdec ! videoconvert ! x264enc
tune=zerolatenc! rtph264pay ! udpsink host=127.0.0.1 port=5000

CLIENT :
gst-launch-1.0 -v udpsrc multicast-group=224.0.0.7 auto-multicast=true
port=5001
caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96"
! rtpjitterbuffer latency=500 ! rtph264depay ! h264parse ! imxvpudec !
imxipuvideotransform ! imxipuvideosink framebuffer=/dev/fb0 use-vsync=true

please give me mercy..



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: PNG file to encoding h264 data problem..

Toshick
Hello, 
Your question is quite spread around. Looking on your pipelines I see a couple of issues from the beginning:

SENDER :
gst-launch-1.0 filesrc location=test.png ! pngdec ! videoconvert ! x264enc
tune=zerolatenc! rtph264pay ! udpsink host=127.0.0.1 port=5000

I'm not quite sure that it will work. I think it is better to use multifilesrc and loop property. It reads the file, converts and produce a single frame of h264, after that pipeline should be finished. 

CLIENT :
gst-launch-1.0 -v udpsrc multicast-group=224.0.0.7 auto-multicast=true
port=5001

caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96"
! rtpjitterbuffer latency=500 ! rtph264depay ! h264parse ! imxvpudec !
imxipuvideotransform ! imxipuvideosink framebuffer=/dev/fb0 use-vsync=true

It is weird - you're sending stream as a single multicast stream, but trying to receive it from the multicast group from different addresses and port. 
Are you using imx board? (you did not state that in your question)

Best regards,
Anton.

On Mon, Apr 27, 2020 at 12:10 PM kukuman <[hidden email]> wrote:
Hi Everyone.

I'm noob of gstreamer.

i send to udpsink about my encoding PNG file data.

i think PNG file to decoding -> videoconvert -> x264enc -> rtph264pay ->
udpsink

so SENDER give to my CLIENT h264 data. but my CLIENT is not receive h264
data.

CLIENT doesn't show SENDER sended h264 data.

SENDER :
gst-launch-1.0 filesrc location=test.png ! pngdec ! videoconvert ! x264enc
tune=zerolatenc! rtph264pay ! udpsink host=127.0.0.1 port=5000

CLIENT :
gst-launch-1.0 -v udpsrc multicast-group=224.0.0.7 auto-multicast=true
port=5001
caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96"
! rtpjitterbuffer latency=500 ! rtph264depay ! h264parse ! imxvpudec !
imxipuvideotransform ! imxipuvideosink framebuffer=/dev/fb0 use-vsync=true

please give me mercy..



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: PNG file to encoding h264 data problem..

Vivia Nikolaidou
Hi,

On Tue, 28 Apr 2020 at 07:45, Anton Pryima <[hidden email]> wrote:
>
> I'm not quite sure that it will work. I think it is better to use multifilesrc and loop property. It reads the file, converts and produce a single frame of h264, after that pipeline should be finished.

Another way to achieve the same would be to use the imagefreeze element.

Best regards,

Vivia
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel