<div dir="ltr"><div><div><div>I used av_sdp_create to get the correct SDP. this function gave me : <br>o=- 0 0 IN IP4 127.0.0.1<br>s=No Name<br>c=IN IP4 127.0.0.1<br>t=0 0<br>a=tool:libavformat 53.21.1<br>m=video 5000 RTP/AVP 96<br>b=AS:128<br>a=rtpmap:96 VP8/90000<br><br>And after that i tried to write the stream to a file using : <br><br>ffmpeg -i sdp.foo  -c:v copy  output.webm -loglevel debug<br><br></div>This is the output : <br><br>Applying option loglevel (set logging level) with argument debug.<br>Successfully parsed a group of options.<br>Parsing a group of options: input file sdp.foo.<br>Successfully parsed a group of options.<br>Opening an input file: sdp.foo.<br>[sdp @ 0x442a320] Format sdp probed with size=2048 and score=50<br>[sdp @ 0x442a320] video codec set to: vp8<br>[udp @ 0x4431780] end receive buffer size reported is 131072<br>[udp @ 0x4431580] end receive buffer size reported is 131072<br>[NULL @ 0x4430e20] setting jitter buffer size to 500<br>[sdp @ 0x442a320] Before avformat_find_stream_info() pos: 143 bytes read:143 seeks:0<br>[sdp @ 0x442a320] Received no start marker; dropping frame<br><br><br>It look likes ffmpeg do not read data on the line ?!<br><br></div></div><div>After launching the command It seems to wait for something, I wait few minutes and I do a Ctrl+c <br></div><div><br>then the output is :  <br></div><div><div><div><br>[sdp @ 0x442a320] Could not find codec parameters for stream 0 (Video: vp8, 1 reference frame, yuv420p): unspecified size<br>Consider increasing the value for the 'analyzeduration' and 'probesize' options<br>[sdp @ 0x442a320] After avformat_find_stream_info() pos: 143 bytes read:143 seeks:0 frames:0<br>sdp.foo: could not find codec parameters<br>Input #0, sdp, from 'sdp.foo':<br>  Metadata:<br>    title           : No Name<br>  Duration: N/A, bitrate: N/A<br>    Stream #0:0, 0, 1/90000: Video: vp8, 1 reference frame, yuv420p, 90k tbr, 90k tbn, 90k tbc<br>Successfully opened the file.<br>Parsing a group of options: output file output.webm.<br>Applying option c:v (codec name) with argument copy.<br>Successfully parsed a group of options.<br>Opening an output file: output.webm.<br>Output #0, webm, to 'output.webm':<br>Output file #0 does not contain any stream<br>[AVIOContext @ 0x4432da0] Statistics: 143 bytes read, 0 seeks<br><br> I do not understant "sdp.foo: could not find codec parameters" <br><br></div><div>Someone have an idea of what append ? <br><br></div><div>If I try with ffplay : ffplay sdp.foo <br></div><div>A windows apprear but the video is a black screen. Nothing else. <br><br></div><div>Do someone understand what's happening ? <br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 23, 2015 at 3:02 PM, William MANCON <span dir="ltr"><<a href="mailto:wmancon@gmail.com" target="_blank">wmancon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span>
</span>Just to make sure: On this mailing list, only the<br>
libraries from the FFmpeg project are supported.<span></span></div></blockquote></span><div> <span><br>> Yes, <br></span></div><span class=""><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span>
</span>I suspect the payload descriptor is not added by<br>
the encoder function (which is in libavcodec) but<br>
by the muxer (in libavformat).<br>
<br>
You should be able to use ffmpeg (the command line<br>
tool) to test.<br>
<br></div></blockquote></span><div>>I tried but  without the correct sdp it fail. I Maybe  need to set the correct payload type in the code. <br></div><div>I tried with this sdp : <br><br>v=0<br>o=- 0 0 IN IP4 127.0.0.1<br>s=No Name<br>c=IN IP4 127.0.0.1<br>t=0 0<br>a=tool:libavformat 55.22.100<br>m=video 1234 RTP/AVP 96<br>b=AS:200<br>a=rtpmap:96 VP8/90000<br>a=fmtp:96 apt=100<br><br></div><div>
with no luck. the stream is outputted at rtp://<a href="http://127.0.0.1:5000" target="_blank">127.0.0.1:5000</a> do i need the port to the sdp ? <br></div><div><br></div><div>Thanks Carl for your comment. <br><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>William.  <br></div></font></span><span class=""><div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></span></div><br></div></div>
</blockquote></div><br></div>