<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello Ross,<br>
<br>
Thanks for your reply.<br>
<br>
Le 06/09/2010 20:40, Ross Finlayson a écrit :
<blockquote cite="mid:f06240802c8aae58ee2f9@%5B66.80.62.44%5D"
type="cite">
<blockquote type="cite">I'm using liveMedia library to implement an
audio / video RTSP receiver.
<br>
To do so, I have created a minimal MediumSink subclass, in which I do
my decoding stuff (using libav* code).
<br>
<br>
It works really fine with streamed audio, but I can't decode videos
properly.
<br>
I noticed that the frames I'm receiving have really small sizes (sth
like 2000 bytes), and should be more around 60000 bytes to contain an
'image'.
<br>
</blockquote>
<br>
You haven't said anything about what RTP payload format (codec) the
video is using. Please post an example of the SDP description returned
by the server (in response to the RTSP "DESCRIBE" command).
<br>
<br>
</blockquote>
<br>
Here's the complete SDP :<br>
<br>
******************* SDP message ********************<br>
v=0<br>
o=- 1283760697113531 1 IN IP4 127.0.1.1<br>
s=MPEG-1 or 2 Program Stream, streamed by MultimediaRTSPServer<br>
i=video:f24.mpg<br>
t=0 0<br>
a=tool:LIVE555 Streaming Media v2008.07.24<br>
a=type:broadcast<br>
a=control:*<br>
a=range:npt=0-105.379<br>
a=x-qt-text-nam:MPEG-1 or 2 Program Stream, streamed by
MultimediaRTSPServer<br>
a=x-qt-text-inf:video:f24.mpg<br>
m=video 0 RTP/AVP 32<br>
c=IN IP4 0.0.0.0<br>
a=control:track1<br>
m=audio 0 RTP/AVP 14<br>
c=IN IP4 0.0.0.0<br>
a=control:track2<br>
<br>
******************* End of SDP ********************<br>
<br>
This video has (on purpose) no audio track, so I can focus on video
stream only.<br>
Payload of value 32 is an MPEG1 or MPEG2 video, if I refer to FFmpeg
RTP sources.<br>
<br>
The thing is, with frames this small (~2000 bytes), I iterate video
decoding on it until libavcodec tells me we have a complete frame : it
seems to work fine with the first frame (I can't display it though),
afterwards, the video decoder seems completely lost.<br>
<br>
Then, I inserted some traces into FileSink.cpp, and just using
openRTSP, I noticed that frames sizes were identical to mine... And i
can read the resulting video file perfectly with FFmpeg or VLC.<br>
<br>
If you have any more ideas, they are of course welcomed, but liveMedia
seems not guilty on this one :)<br>
<br>
Best regards,<br>
Guillaume.<br>
<blockquote cite="mid:f06240802c8aae58ee2f9@%5B66.80.62.44%5D"
type="cite"><br>
<blockquote type="cite">PS : some interesting insight : when I try to
read one of those videos with ffplay (small player contained in ffmpeg
sources), it works just fine.
<br>
</blockquote>
<br>
Have you tried using VLC?
<br>
</blockquote>
Also fine with VLC...<br>
<br>
<div class="moz-signature">-- <br>
Guillaume FERRY<br>
Bertin Technologies<br>
Département Bertin Conseil<br>
Activité Traitement de l'Information et du Contenu<br>
<table>
<tbody>
<tr>
<td><i>Tél</i></td>
<td>01.39.30.62.09</td>
</tr>
<tr>
<td><i>Fax</i></td>
<td>01.39.30.62.45</td>
</tr>
<tr>
<td><i>Mail</i></td>
<td><a class="moz-txt-link-abbreviated" href="mailto:ferry@bertin.fr">ferry@bertin.fr</a></td>
</tr>
<tr>
<td><i>Web</i></td>
<td><a href="http://www.bertin.fr">www.bertin.fr</a></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>