Videomixer to h.264 to udp

buzzy zygjys at gmail.com
Thu Nov 21 01:29:46 PST 2013


Hello again,

I have updated my line to sink the stream to a ts file for testing purposes.
Now my line looks like this:

videomixer name=mix ! videoconvert ! x264enc ! mpegtsmux ! filesink
location=~/Desktop/stream.ts    mix.  multifilesrc name = \"fl2\"
location=\"~/Desktop/html/img0.png\" caps=\"image/png,framerate=24/1\" !
pngdec ! videoscale ! video/x-raw, width=1280, height=384 ! imagefreeze !
alpha method=0 alpha=0.5 ! videobox border-alpha=0 top=-300 left=0 ! mix. 
multifilesrc name = \"fl\" location=\"~/Desktop/html/img3.png\"
caps=\"image/png,framerate=24/1,width=1280,height = 720\" ! pngdec !
videoscale ! video/x-raw, width=1280, height=720 ! imagefreeze ! mix.

With this line I can watch the stream.ts file through vlc. Everything fine
except when I try to change the image:

GstElement *scr = gst_bin_get_by_name(GST_BIN(pipeline),name); /* name e.g.
== "fl2" */
g_object_set(G_OBJECT(scr),"location",loc,NULL);               /* loc e.g.
== "/home/user/img4.png" */

When I change the location of the image, my stream corrupts and vlc shows
errors like:

libdvbpsi error (PSI decoder): TS discontinuity (received 14, expected 4)
for PID 0

I guess something is wrong with the framerate, but I can't figure out what.
If I change x264enc to xvimagesink:

videomixer name=mix ! videoconvert ! xvimagesink    mix.  multifilesrc name
= \"fl2\" ....

Then the image changes without any problem.
Can someone help me with this h.264 encoding?
Thank you.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Videomixer-to-h-264-to-udp-tp4663434p4663451.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list