After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 311272 - Reading mpeg-ts stream from standard input does not work
Reading mpeg-ts stream from standard input does not work
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
0.8.8
Other All
: Normal normal
: 0.10.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-22 16:42 UTC by Gijsbert de Haan
Modified: 2006-03-13 18:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Gijsbert de Haan 2005-07-22 16:42:12 UTC
Please describe the problem:
Got a test file test2.mpeg (attached)

Trying to display it through fdsrc fd=0 fails using:

cat test2.mpegts | gst-launch-0.8 fdsrc fd=0 ! decodebin ! ffmpegcolorspace !
xvimagesink

Using filesrc on the same file works (gst-launch-0.8 filesrc
location=test2.mpegts ! decodebin ! ffmpegcolorspace ! xvimagesink) works so the
data and pipeline setup seems to be in order.

Steps to reproduce:
1. cat test2.mpegts | gst-launch-0.8 fdsrc fd=0 ! decodebin ! ffmpegcolorspace !
xvimagesink
2. 
3. 


Actual results:
 
** (process:3618): WARNING **: Unexpected/unwanted eos in data function
ERROR: from element /pipeline0/decodebin0/ffdemux_mpegts0: GStreamer encountered
a general supporting library error.
Additional debug info:
gstffmpegdemux.c(539): gst_ffmpegdemux_open: /pipeline0/decodebin0/ffdemux_mpegts0:
Unknown error
Execution ended after 1 iterations (sum 109013000 ns, average 109013000 ns, min
109013000 ns, max 109013000 ns).


Expected results:
Display of short static scene.

Does this happen every time?
yes

Other information:
Attaching the test file: test2.mpegts
Comment 1 Gijsbert de Haan 2005-07-22 17:23:42 UTC
Bummer test2.mpegts is bigger than 1MB. I'm looking for a place to put it on the
web.
Comment 2 Gijsbert de Haan 2005-07-22 21:10:10 UTC
test file: http://gijsbert.dyndns.info/download/test2.mpegts
Comment 3 Gijsbert de Haan 2005-07-22 21:17:43 UTC
That is on gstreamer 0.8.8-0 and gstreamer-ffmpeg 0.8.4-0
Comment 4 Luca Ognibene 2005-09-19 18:58:51 UTC
confirming.
Comment 5 Tim-Philipp Müller 2005-10-09 14:36:42 UTC
I'd guess that the reason is that the input stream isn't seekable. Not sure if
this is supposed to work at all.
Comment 6 Wim Taymans 2006-02-17 18:04:39 UTC
it should work fine, mpeg TS is streamable.

Current CVS gives an error in typefind:

cat ~/data/test2.mpegts | gst-launch fdsrc fd=0 ! decodebin ! ffmpegcolorspace ! ximagesink

ERROR: from element /pipeline0/decodebin0/typefind: Could not determine type of stream.
Additional debug info:
gsttypefindelement.c(781): gst_type_find_element_chain (): /pipeline0/decodebin0/typefind
Comment 7 Wim Taymans 2006-02-17 19:00:00 UTC
with the typefind functions of current CVS gst-ffmpeg, it does find the type and goes a bit further.

ffdemux_mpegts: cannot be activate in push mode yet and thus fails (commited a patch to post an error message for those cases)

flutsdemux: starts decoding but current svn version does not handle PCRs correctly yet so the timestamps are wrong.
Comment 8 Wim Taymans 2006-03-13 18:04:34 UTC
closing, flutsdemux works fine now.