<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif"'>Hi
Konstanty,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal>The second command (“vlc -vvv rtp://@:5006 -S none -4
--demux=h264”) on the receiver looks okay. With the patch and h264 demux
specified in the command the h264 demux module is selected.<o:p></o:p></p>
<p class=MsoNormal>The log looks pretty similar as in my test setup. If it is
an H.264 stream it should look for a SPS/PPS (see log below). If this is found
then it should start decoding. <o:p></o:p></p>
<p class=MsoNormal>Can you send a complete log?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>A remark: the patch had an update which is also posted. But
that should be similar with what you are using.<o:p></o:p></p>
<p class=MsoNormal><b><o:p> </o:p></b></p>
<p class=MsoNormal><i><span style='color:darkblue'>h264</span></i><i><span
style='color:gray'> debug: </span></i><span style='color:black'>using 25.00 fps</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>main</span></i><i><span
style='color:gray'> debug: </span></i><span style='color:black'>looking for
packetizer module: 21 candidates</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>main</span></i><i><span
style='color:gray'> debug: </span></i><span style='color:black'>using
packetizer module "packetizer_h264"</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>main</span></i><i><span
style='color:gray'> debug: </span></i><span style='color:black'>TIMER
module_need() : 0.224 ms - Total 0.224 ms / 1 intvls (Avg 0.224 ms)</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>main</span></i><i><span
style='color:gray'> debug: </span></i><span style='color:black'>using demux
module "h264"</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>main</span></i><i><span
style='color:gray'> debug: </span></i><span style='color:black'>TIMER
module_need() : 0.674 ms - Total 0.674 ms / 1 intvls (Avg 0.674 ms)</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>packetizer_h264</span></i><i><span
style='color:green'> warning: </span></i><span style='color:black'>waiting for
SPS/PPS</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>packetizer_h264</span></i><i><span
style='color:green'> warning: </span></i><span style='color:black'>waiting for
SPS/PPS</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>packetizer_h264</span></i><i><span
style='color:green'> warning: </span></i><span style='color:black'>waiting for
SPS/PPS</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>packetizer_h264</span></i><i><span
style='color:green'> warning: </span></i><span style='color:black'>waiting for
SPS/PPS</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>packetizer_h264</span></i><i><span
style='color:gray'> debug: </span></i><span style='color:black'>found NAL_SPS
(sps_id=0)</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>packetizer_h264</span></i><i><span
style='color:gray'> debug: </span></i><span style='color:black'>found NAL_PPS
(pps_id=0 sps_id=0)</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>main</span></i><i><span
style='color:gray'> debug: </span></i><span style='color:black'>selecting
program id=0</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>main</span></i><i><span
style='color:gray'> debug: </span></i><span style='color:black'>looking for
decoder module: 33 candidates</span><o:p></o:p></p>
<p class=MsoNormal><i><span style='color:darkblue'>avcodec</span></i><i><span
style='color:gray'> debug: </span></i><span style='color:black'>libavcodec
already initialized</span><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Regards,<o:p></o:p></p>
<p class=MsoNormal>Tony<span style='font-size:11.0pt;font-family:"Calibri","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Konstanty
[mailto:konstanty@gmail.com] <br>
<b>Sent:</b> zaterdag 2 oktober 2010 2:39<br>
<b>To:</b> Tony Vankrunkelsven<br>
<b>Subject:</b> Re: [vlc-devel] [PATCH] decode an RTP/H264 elementary stream
without using SDP<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>Hi Tony,<br>
<br>
I'm currently looking at using h264 over rtp without a SDP file - and can see
this patch being quite useful - So thank you for contributing it.<br>
<br>
However I can't seem to be able to view video using this method<br>
<br>
vlc -vvv X.mkv -S none --sout '#rtp{dst=192.168.1.2,port=5004,sdp=file:///tmp/test.sdp}'
<br>
(SDP file just being discarded basically)<br>
<br>
Which seems to create a audio stream on 5004 and video on 5006.<br>
<br>
Then on the receiver, I use:<br>
<br>
vlc -vvv rtp://@:5006 -S none<br>
or<br>
vlc -vvv rtp://@:5006 -S none -4 --demux=h264<br>
<br>
After your patch it seems to get a bit further though:<br>
[0x7f9cbc000b80] main stream debug: creating demux: access='' demux='h264'
location='' file='(null)'<br>
[0x7f9cb4000a70] main demux debug: looking for demux module: 1 candidate<br>
[0x7f9cb4000a70] h264 demux error: this doesn't look like a H264 ES stream,
continuing anyway<br>
[0x7f9cb4000a70] h264 demux debug: using 25.00 fps<br>
[0x7f9cb4000c90] main demux packetizer debug: looking for packetizer module: 21
candidates<br>
[0x7f9cb4000c90] main demux packetizer debug: using packetizer module
"packetizer_h264"<br>
[0x7f9cb4000a70] main demux debug: using demux module "h264"<br>
<br>
But video never displays.<br>
<br>
Due to your experience with this, perhaps you could shed some light on what I
am doing wrong,<br>
<br>
Thanks,<br>
<br>
Konstanty<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal>On Tue, Sep 21, 2010 at 9:21 PM, Tony Vankrunkelsven <<a
href="mailto:Tony.Vankrunkelsven@otnsystems.com">Tony.Vankrunkelsven@otnsystems.com</a>>
wrote:<o:p></o:p></p>
<p class=MsoNormal>For H264 (without transport stream TS) the RTP payload type
is in the dynamic range (not static assigned, <a
href="http://www.iana.org/assignments/rtp-parameters" target="_blank">http://www.iana.org/assignments/rtp-parameters</a>)
and in some cases other protocols (like SDP) for exchanging the payload format
are not available. This modification allows to decode these kind of H264 (which
are compatible with Annex B "Byte stream format" of ISO/IEC 14496-10)
if the demux "h264" is specified in the MRL. An example of an MRL:
"rtp/h264://@<a href="http://239.168.100.100:1234" target="_blank">239.168.100.100:1234</a>"<br>
<br>
---<br>
modules/access/rtp/rtp.c | 29 +++++++++++++++++++++++++++--<br>
1 files changed, 27 insertions(+), 2 deletions(-)<br>
mode change 100644 => 100755 modules/access/rtp/rtp.c<br>
<br>
diff --git a/modules/access/rtp/rtp.c b/modules/access/rtp/rtp.c<br>
old mode 100644<br>
new mode 100755<br>
index 32e13b3..672808d<br>
--- a/modules/access/rtp/rtp.c<br>
+++ b/modules/access/rtp/rtp.c<br>
@@ -431,7 +431,6 @@ static void codec_decode (demux_t *demux, void *data,
block_t *block)<br>
block_Release (block);<br>
}<br>
<br>
-<br>
static void *stream_init (demux_t *demux, const char *name)<br>
{<br>
return stream_DemuxNew (demux, name, demux->out);<br>
@@ -454,6 +453,11 @@ static void stream_decode (demux_t *demux, void *data,
block_t *block)<br>
(void)demux;<br>
}<br>
<br>
+static void *demux_init (demux_t *demux)<br>
+{<br>
+ return stream_init (demux, *demux->psz_demux ?
demux->psz_demux : "unknown");<br>
+}<br>
+<br>
/*<br>
* Static payload types handler<br>
*/<br>
@@ -679,7 +683,28 @@ int rtp_autodetect (demux_t *demux, rtp_session_t
*session,<br>
break;<br>
<br>
default:<br>
- return -1;<br>
+ /*<br>
+ * If the rtp payload type is unknown then check
demux if it is specified<br>
+ */<br>
+ if (*demux->psz_demux)<br>
+ {<br>
+ if ((strcmp(demux->psz_demux,
"h264") == 0) || (strcmp(demux->psz_demux, "ts") == 0))<br>
+ {<br>
+ msg_Dbg (demux, "rtp autodetect
specified demux=%s", demux->psz_demux);<br>
+ pt.init = demux_init;<br>
+ pt.destroy = stream_destroy;<br>
+ pt.decode = stream_decode;<br>
+ pt.frequency = 90000;<br>
+ break;<br>
+ }<br>
+ else<br>
+ {<br>
+ return -1;<br>
+ }<br>
+ }<br>
+ else {<br>
+ return -1;<br>
+ }<br>
}<br>
rtp_add_type (demux, session, &pt);<br>
return 0;<br>
<span style='color:#888888'>--<br>
1.7.1<br>
<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a></span><o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>