[gst-devel] ASF demux audio
Fabrice Triboix
gstdbg at yahoo.com
Wed Nov 15 15:54:28 CET 2006
Hi again,
Apparently, rtpasfdepay outputs only "video/x-ms-asf" anyway... So I am trying to pipe its output to asfdemux, but nothing comes out of asfdemux...
Below are some debug traces from asfdemux. Apparently, it detects correctly the audio content, that it is MP3 encoded and create a source pad for it. But then it's like there is some problem regarding streams numbers... If anybody could have a look at these traces and help me, this would be great!
$ gst-launch --gst-debug=asfdemux:3 --gst-debug-no-color rtspsrc "location=rtsp://mywmserver/XXX.mp3" ! rtpasfdepay ! asfdemux ! filesink location=dump
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.187792000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1865:gst_asf_demux_process_object: HEADER, size 549
0:00:00.191267000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1433:gst_asf_demux_process_header: object is a header with 5 parts
0:00:00.191512000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1865:gst_asf_demux_process_object: HEADER/FILE, size 104
0:00:00.191739000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1477:gst_asf_demux_process_file: object is a file with 626 data packets
0:00:00.191960000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1478:gst_asf_demux_process_file: preroll = 204
0:00:00.192179000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1865:gst_asf_demux_process_object: HEADER/HEAD1, size 46
0:00:00.204130000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1619:gst_asf_demux_process_header_ext: object is an extended header with a size of 0 bytes
0:00:00.204378000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1865:gst_asf_demux_process_object: HEADER/STREAM, size 117
0:00:00.204605000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1034:gst_asf_demux_process_stream: Object is an audio stream with 12 bytes of additional data
0:00:00.204962000 1360 0x8106688 WARN asfdemux gstasfdemux.c:906:gst_asf_demux_add_audio_stream: Audio header contains 12 bytes of codec specific data
0:00:00.219903000 1360 0x8106688 INFO asfdemux gstasfdemux.c:942:gst_asf_demux_add_audio_stream: Adding audio stream 0 codec 85 (0x0055), tags=taglist, audio-codec=(string)"MPEG-1\ layer\ 3"
0:00:00.220293000 1360 0x8106688 INFO asfdemux gstasfdemux.c:873:gst_asf_demux_setup_pad: Adding pad audio_00 for stream 0 with caps audio/mpeg, mpegversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, codec_data=(buffer)010000000000e50402000000
0:00:00.220783000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1087:gst_asf_demux_process_stream: Error correction off
0:00:00.221061000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1865:gst_asf_demux_process_object: HEADER/CODEC_COMMENT, size 142
0:00:00.230044000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1924:gst_asf_demux_process_object: Skipping object (size 142) ...
0:00:00.230279000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1865:gst_asf_demux_process_object: HEADER/COMMENT, size 110
0:00:00.230501000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1508:gst_asf_demux_process_comment: object is a comment
0:00:00.231078000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1865:gst_asf_demux_process_object: DATA, size 1583204
0:00:00.246503000 1360 0x8106688 INFO asfdemux gstasfdemux.c:1402:gst_asf_demux_process_data: object is data with 626 packets
0:00:00.247082000 1360 0x8106688 WARN asfdemux gstasfdemux.c:156:gst_asf_demux_sink_event:<asfdemux0> newsegment format not BYTES, ignoring
0:00:00.247577000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2478:gst_asf_demux_handle_data: processing packet 0/626
0:00:00.247874000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2330:gst_asf_demux_process_segment: processing segment for stream 1
0:00:00.248187000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2091:gst_asf_demux_push_buffer: pushing buffer on pad audio_00, ts=0:00:00.000000000
0:00:00.263292000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2478:gst_asf_demux_handle_data: processing packet 1/626
0:00:00.263632000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2330:gst_asf_demux_process_segment: processing segment for stream 0
0:00:00.263872000 1360 0x8106688 WARN asfdemux gstasfdemux.c:819:gst_asf_demux_get_stream: Segment found for undefined stream: (0)
0:00:00.264101000 1360 0x8106688 WARN asfdemux gstasfdemux.c:2112:gst_asf_demux_process_chunk: invalid stream number 0
0:00:00.264391000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2478:gst_asf_demux_handle_data: processing packet 2/626
0:00:00.276312000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2330:gst_asf_demux_process_segment: processing segment for stream 48
0:00:00.276630000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2478:gst_asf_demux_handle_data: processing packet 3/626
0:00:00.276895000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2330:gst_asf_demux_process_segment: processing segment for stream 105
0:00:00.277127000 1360 0x8106688 WARN asfdemux gstasfdemux.c:819:gst_asf_demux_get_stream: Segment found for undefined stream: (105)
0:00:00.292085000 1360 0x8106688 WARN asfdemux gstasfdemux.c:2112:gst_asf_demux_process_chunk: invalid stream number 105
0:00:00.292368000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2478:gst_asf_demux_handle_data: processing packet 4/626
0:00:00.292651000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2330:gst_asf_demux_process_segment: processing segment for stream 0
0:00:00.292692000 1360 0x8106688 WARN asfdemux gstasfdemux.c:819:gst_asf_demux_get_stream: Segment found for undefined stream: (0)
0:00:00.292715000 1360 0x8106688 WARN asfdemux gstasfdemux.c:2112:gst_asf_demux_process_chunk: invalid stream number 0
0:00:00.292792000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2478:gst_asf_demux_handle_data: processing packet 5/626
0:00:00.292820000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2330:gst_asf_demux_process_segment: processing segment for stream 38 (has keyframe)
0:00:00.292897000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2478:gst_asf_demux_handle_data: processing packet 6/626
0:00:00.292924000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2330:gst_asf_demux_process_segment: processing segment for stream 0
0:00:00.635040000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2478:gst_asf_demux_handle_data: processing packet 7/626
0:00:00.635110000 1360 0x8106688 INFO asfdemux gstasfdemux.c:2330:gst_asf_demux_process_segment: processing segment for stream 0
0:00:00.635136000 1360 0x8106688 WARN asfdemux gstasfdemux.c:819:gst_asf_demux_get_stream: Segment found for undefined stream: (0)
----- Original Message ----
From: Fabrice Triboix <gstdbg at yahoo.com>
To: gstreamer-devel at lists.sourceforge.net
Sent: Wednesday, November 15, 2006 1:46:38 PM
Subject: [gst-devel] ASF demux audio
Hi all,
I am trying to play an MP3 from a Windows Media Server using RTSP+RTP.
WMServer actually sends me ASF packets!
I applied the patch from bug #335067. Apparently, it works a bit: if I use filesink, the dumped file is an ASF one, but I can't play it with Windows Media Player...
So the rtpasfdepay takes some "x-asf-pf" and produces, normally, "audio/x-ms-asf" and "video/x-ms-asf".
The problem here is that ASF demux in gstreamer are for video only: gst-inspect on asfdemux and ffdemux_asf show sinks for both demuxes as "video/x-ms-asf".
So I have a few questions:
- Is there an audio demux for ASF, or should I do some tricks to get that playing through "video/x-ms-asf"?
- Has anybody tried the patch to add rtpasfdepay? If yes, I would be glad if you could share your experiences.
Thank you very much,
Fabrice
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list