[issue2478] MMSH shows full metadata, RTSP does not
Ronald S. Bultje rsbul...@gmail.com added the comment: Input #0, rtsp, from 'rtsp://djxmmx.net/Rap-RnB': Metadata: genre : Rap WMFSDKVersion : 11.0.6002.18049 WMFSDKNeeded: 0.0.0. IsVBR : 0 album : Double Trouble track : 4 WM/Year : 2007 title : U Aint Gotta Ask artist : Al Fatz Chip Tha Ripper copyright : comment : Duration: 00:03:06.64, start: 123.965000, bitrate: 128 kb/s Stream #0.0: Audio: wmapro, 44100 Hz, stereo, flt, 128 kb/s Stream #0.1: Data: [0][0][0][0] / 0x 127.58 A-V: 0.000 s:0.0 aq= 94KB vq=0KB sq=0B f=0/0 FFmpeg issue tracker iss...@roundup.ffmpeg.org https://roundup.ffmpeg.org/issue2478 Index: libavformat/rtpdec_asf.c === --- libavformat/rtpdec_asf.c(revision 26130) +++ libavformat/rtpdec_asf.c(working copy) @@ -96,6 +96,7 @@ int ret = 0; if (av_strstart(p, pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,, p)) { ByteIOContext pb; +AVMetadataTag *t; RTSPState *rt = s-priv_data; int len = strlen(p) * 6 / 8; char *buf = av_mallocz(len); @@ -112,6 +113,9 @@ ret = av_open_input_stream(rt-asf_ctx, pb, , asf_demuxer, NULL); if (ret 0) return ret; +while ((t = av_metadata_get(rt-asf_ctx-metadata, , t, +AV_METADATA_IGNORE_SUFFIX))) +av_metadata_set2(s-metadata, t-key, t-value, 0); rt-asf_pb_pos = url_ftell(pb); av_free(buf); rt-asf_ctx-pb = NULL;
[issue2478] MMSH shows full metadata, RTSP does not
Ronald S. Bultje rsbul...@gmail.com added the comment: does the metadata update in this radio station in WMP, btw? If so, we should try supporting that also... FFmpeg issue tracker iss...@roundup.ffmpeg.org https://roundup.ffmpeg.org/issue2478
[issue2478] MMSH shows full metadata, RTSP does not
Ronald S. Bultje rsbul...@gmail.com added the comment: At the end of each song, the server sends us this: line='SET_PARAMETER rtsp://djxmmx.net:554/Rap-RnB RTSP/1.0'=0/0 line='Content-Type: application/x-wms-extension-cmd' line='X-Notice: 2101 End-of-Stream Reached' line='RTP-Info: url=rtsp://djxmmx.net:554/Rap-RnB/audio;Seq=58258' line='X-Playlist-Gen-Id: 81157' line='Content-Length: 71' line='Date: Mon, 03 Jan 2011 19:07:30 GMT' line='CSeq: 1' line='User-Agent: WMServer/9.5.6001.18281' line='' Apparently we have to open a new stream then, which we don't do - so we get silence. Would be interesting to support... FFmpeg issue tracker iss...@roundup.ffmpeg.org https://roundup.ffmpeg.org/issue2478
[issue2478] MMSH shows full metadata, RTSP does not
Ronald S. Bultje rsbul...@gmail.com added the comment: Metadata from the ASF layer isn't forwarded to the RTSP layer, this should be relatively easy to fix... FFmpeg issue tracker iss...@roundup.ffmpeg.org https://roundup.ffmpeg.org/issue2478