Video and audio play problem

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

Video and audio play problem

lessonZhang
Hi,
I want to play a ts file with specified program-number(then i can choose different program), and play video/audio at same time, then i use following cmd:

gst-launch-1.0 filesrc location=/home/vadmin/test.ts ! tsdemux program-number=40002 name=d ! queue ! decodebin ! videoconvert ! videoscale ! autovideosink d.video_07d1 ! queue ! decodebin ! audioconvert ! audioresample ! autoaudiosink d.audio_07d2

the work flow will be


but it just out one video frame and stop there, also no audio output.
i also tried playbin, but playbin cannot play with specified program,thanks for any help.
Reply | Threaded
Open this post in threaded view
|

Re: Video and audio play problem

lessonZhang
lessonZhang wrote
Hi,
I want to play a ts file with specified program-number(then i can choose different program), and play video/audio at same time, then i use following cmd:

gst-launch-1.0 filesrc location=/home/vadmin/test.ts ! tsdemux program-number=40002 name=d ! queue ! decodebin ! videoconvert ! videoscale ! autovideosink d.video_07d1 ! queue ! decodebin ! audioconvert ! audioresample ! autoaudiosink d.audio_07d2

the work flow will be


but it just out one video frame and stop there, also no audio output.
i also tried playbin, but playbin cannot play with specified program,thanks for any help.
The following cmd works
gst-launch-1.0 filesrc location=/home/vadmin/test.ts ! tsdemux program-number=40003 name=d ! queue ! decodebin ! videoconvert ! xvimagesink d. ! queue ! decodebin ! audioconvert ! autoaudiosink