On Mon, Oct 20, 2008 at 2:32 PM, Sphurti Durgade <[EMAIL PROTECTED]> wrote: > Hi all , > i am running a mp3 file on N810 with gst-launch-o.10 as : > Nokia-N810-50-2:/media/mmc2/Audio/Dostana# gst-launch-0.10 playbin > uri=file:///media/mmc2/Audio/Dostana/dostana02\(www.songs.pk\).mp3 > it is able to play with playbin > > but the same file if i play with filesrc as : > Nokia-N810-50-2:/media/mmc2/Audio/Dostana# gst-launch-0.10 filesrc > location=/media/mmc2/Audio/Dostana/dostana02\(www.songs.pk\).mp3 ! dspmp3sink > is not able to play :( > exit with > Nokia-N810-50-2:/media/mmc2/Audio/Dostana# gst-launch-0.10 filesrc > location=/media/mmc2/Audio/Dostana/dostana02\(www.songs.pk\).mp3 ! dspmp3sink > Setting pipeline to PAUSED ... > Pipeline is PREROLLING ... > Pipeline is PREROLLED ... > Setting pipeline to PLAYING ... > New clock: DSPClock > ERROR: from element /pipeline0/dspmp3sink0: Could not determine type of > stream. > Additional debug info: > gstdspmp3sink.c(1026): gst_dspmp3sink_render (): /pipeline0/dspmp3sink0: > gst_dspmp3sink_loop_initialization > Execution ended after 16846000 ns. > Setting pipeline to PAUSED ... > Setting pipeline to READY ... > Setting pipeline to NULL ... > FREEING pipeline ... > Nokia-N810-50-2:/media/mmc2/Audio/Dostana# > > file info: > MIME type : audio/mpeg > Audio > Codec: MPEG 1 Audio, Layer 3 (MP3) > Channels: Stereo > Sample rate : 44100 Hz > Bitrate :128kbps > > does anyone know why playbin is able to play same file and not filesrc ? > and why filesrc is not able to not determine type of stream.
That's because filesrc doesn't determine the type of the stream. You need to add typefind after filesrc for that, or manually set the right caps. -- Felipe Contreras _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers