You are not logged in.

#1 2012-02-18 06:47:23

lastland
Member
Registered: 2012-02-07
Posts: 10

[SOLVED] "No codec present that can handle the stream's type" issue

Hello. I got a python program that would play musics on a website, which doesn't work for a "no codec present that can handle the stream's type" issue. I have installed things like gstreamer, gstreamer-plugins, gstreamer-python, gstreamer-ffmpeg, and libmpeg2, etc. However, this issue still remains. Would someone here be able to help?
Here's the error message:

** Message: don't know how to handle audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)2, layer=(int)3, rate=(int)24000, channels=(int)2, parsed=(boolean)true
Error: There is no codec present that can handle the stream's type. gstplaybasebin.c(2322): prepare_output (): /GstPlayBin:player

Here's the program, written by a Chinese: https://github.com/zhendi/DoubanFM-CLI

Edit:
I'm able to play the musics on the websites via chromium.

Edit:
I tried to download the music, and use gst-launch-0.10 filesrc location=~/p535960.mp3 ! decodebin ! autovideosink, but only find these messages:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegAudioParse:mpegaudioparse0: GStreamer encountered a general stream error.
Additional debug info:
gstbaseparse.c(2695): gst_base_parse_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMpegAudioParse:mpegaudioparse0:
streaming stopped, reason not-linked
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Last edited by lastland (2012-02-18 07:47:47)

Offline

#2 2012-02-18 07:47:33

lastland
Member
Registered: 2012-02-07
Posts: 10

Re: [SOLVED] "No codec present that can handle the stream's type" issue

Sorry. I just found the reason. I missed gstreamer-ugly in this case.

Offline

Board footer

Powered by FluxBB