Many green artefacts when playing mpeg-2 file with gstreamer-1.0

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

Many green artefacts when playing mpeg-2 file with gstreamer-1.0

dina
Hi

I'm trying:

gst-launch-1.0 -v filesrc location=/home/user/v2ts.mpg ! mpegvideoparse ! mpeg2dec ! xvimagesink

It plays, but the quality is not good, there are lots of artefacts, green and grey squares.

The file is mpeg 2

# ffmpeg -i v2ts.mpg

Input #0, mpegts, from 'v2ts.mpg':
  Duration: 00:01:59.98, start: 0.104000, bitrate: 4617 kb/s
  Program 3
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 5000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s

I can play the same file with gstreamer-0.1, but I need gstreamer-1.0 version. Could you help me with the right pipeline on  gstreamer-1.0 ?

gstreamer version 1.4.4 on Debian linux.

Actually, I need to stream it

I tried

Sender:

gst-launch-1.0 filesrc location=/home/user/v2ts.mpg ! mpegvideoparse ! mpegtsmux ! rtpmp2pay ! udpsink host=230.255.0.20 port 1234

Reseiver:

gst-launch-1.0 playbin uri=udp://@230.255.0.20:1234


The same -  lots of artefacts.

Any help would appreciate

Dina
Reply | Threaded
Open this post in threaded view
|

Re: Many green artefacts when playing mpeg-2 file with gstreamer-1.0

Tim Müller
On Thu, 2016-06-16 at 04:12 -0700, dina wrote:

Hi,

> I'm trying:
>
> gst-launch-1.0 -v filesrc location=/home/user/v2ts.mpg !
> mpegvideoparse ! mpeg2dec ! xvimagesink
>
> It plays, but the quality is not good, there are lots of artefacts,
> green and grey squares.

Please try playing it with gst-play-1.0 first, or with

  gst-launch-1.0 playbin uri=file:///home/user/v2ts.mpg

I suspect you're missing a demuxer in your pipeline.

Cheers
 -Tim

--

Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Many green artefacts when playing mpeg-2 file with gstreamer-1.0

dina
Hi Tim

thanks,

I  tried  and it plays fine. What should I check in it? Is it running with debug will tell more information?

Demux is for the playback client side, right? What if I need to stream with gstreamer and play it with vlc? Can I use demux then ?


Best regards,
Dina