MpegTS playback bug.

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

MpegTS playback bug.

Igor Tarasov
Hello,

I found a problem to playback MpegTS video file with gstreamer. The
image is broken, looks like a random pixels.

I create this mpegts file using ffmpeg:

ffmpeg -i somefile.avi -f mpegts  -vcodec mpeg4 -acodec mp2 -ac 2 -ab
128k -s 720x432 -r 30 -re -b 10240k -threads 2 test.ts

Seems stream 0 codec frame rate differs from container frame rate:
23.98 (65535/2733) -> 23.98 (10000000/417083)
Input #0, avi, from 'ohotniki.avi':
  Metadata:
    ISFT            : VirtualDubMod 1.5.10.2 (build 2542/release)
    INAM           : Chasseurs de Dragons (2008)
    IART            : vladaudi (BDRip 720)
    ICOP            : HQ-ViDEO
    ICMT            : 11.11.2008
  Duration: 01:22:15.13, start: 0.000000, bitrate: 2537 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 720x384 [PAR 1:1 DAR 15:8],
PAR 128:135 DAR 16:9, 23.98 tbr, 23.98 tbn, 23.98 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s

When I'm trying to play - I have the result I described above:
gst-launch playbin  uri=file:///home/foo/bar/somefile.ts

But both VLC and MPlayer playback this file perfectly.

Is it a gstreamer bug? Or something wrong with ffmpeg which creates this file?

Thanks,
Igor.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: MpegTS playback bug.

Marco Ballesio
Hi,

On Wed, Dec 29, 2010 at 9:28 PM, Igor Tarasov <[hidden email]> wrote:

> Hello,
>
> I found a problem to playback MpegTS video file with gstreamer. The
> image is broken, looks like a random pixels.
>
> I create this mpegts file using ffmpeg:
>
> ffmpeg -i somefile.avi -f mpegts  -vcodec mpeg4 -acodec mp2 -ac 2 -ab
> 128k -s 720x432 -r 30 -re -b 10240k -threads 2 test.ts
>
> Seems stream 0 codec frame rate differs from container frame rate:
> 23.98 (65535/2733) -> 23.98 (10000000/417083)
> Input #0, avi, from 'ohotniki.avi':
>  Metadata:
>    ISFT            : VirtualDubMod 1.5.10.2 (build 2542/release)
>    INAM           : Chasseurs de Dragons (2008)
>    IART            : vladaudi (BDRip 720)
>    ICOP            : HQ-ViDEO
>    ICMT            : 11.11.2008
>  Duration: 01:22:15.13, start: 0.000000, bitrate: 2537 kb/s
>    Stream #0.0: Video: mpeg4, yuv420p, 720x384 [PAR 1:1 DAR 15:8],
> PAR 128:135 DAR 16:9, 23.98 tbr, 23.98 tbn, 23.98 tbc
>    Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
>
> When I'm trying to play - I have the result I described above:
> gst-launch playbin  uri=file:///home/foo/bar/somefile.ts
>
> But both VLC and MPlayer playback this file perfectly.
>
> Is it a gstreamer bug? Or something wrong with ffmpeg which creates this file?
>

Can you collect some debug setting e.g. GST_DEBUG = 3 or more (and
attach the output somewhere to pastebin)?

Regards

> Thanks,
> Igor.
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: MpegTS playback bug.

Janne Grunau
In reply to this post by Igor Tarasov
On 29.12.2010 20:28, Igor Tarasov wrote:

> Hello,
>
> I found a problem to playback MpegTS video file with gstreamer. The
> image is broken, looks like a random pixels.
>
> I create this mpegts file using ffmpeg:
>
> ffmpeg -i somefile.avi -f mpegts  -vcodec mpeg4 -acodec mp2 -ac 2 -ab
> 128k -s 720x432 -r 30 -re -b 10240k -threads 2 test.ts
>
> Seems stream 0 codec frame rate differs from container frame rate:
> 23.98 (65535/2733) -> 23.98 (10000000/417083)
> Input #0, avi, from 'ohotniki.avi':
>   Metadata:
>     ISFT            : VirtualDubMod 1.5.10.2 (build 2542/release)
>     INAM           : Chasseurs de Dragons (2008)
>     IART            : vladaudi (BDRip 720)
>     ICOP            : HQ-ViDEO
>     ICMT            : 11.11.2008
>   Duration: 01:22:15.13, start: 0.000000, bitrate: 2537 kb/s
>     Stream #0.0: Video: mpeg4, yuv420p, 720x384 [PAR 1:1 DAR 15:8],
> PAR 128:135 DAR 16:9, 23.98 tbr, 23.98 tbn, 23.98 tbc
>     Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
>
> When I'm trying to play - I have the result I described above:
> gst-launch playbin  uri=file:///home/foo/bar/somefile.ts
>
> But both VLC and MPlayer playback this file perfectly.
>
> Is it a gstreamer bug? Or something wrong with ffmpeg which creates this file?

Reproduced, probably with a very different FFmpeg version. Gstreamer
feeds the mpeg4 decoder (ffmpeg's in my) data it doesn't understand. I
see lot's of decoding errors. The same FFmpeg command with mpeg2video as
-vcodec works as expected.

It looks like GStreamer and FFmpeg disagree about the bitstream format.

Janne

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel