<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I am trying to stream a live video from IP camera to remote client (Like Microsoft Edge browser) using HLS protocol.<br><br></div><div>My question is, how to make the files (seg*.ts and playlist.m3u8) get copied to remote web server (call it <b>PC2</b>) rather than in the local directories. Is playlist-root used for this purpose?<br></div><div><br></div>I have Linux machine (call it <b>PC1</b>) which runs the following command<br><br><i><b>gst-launch-1.0 rtspsrc location="rtsp://<camera url>"  ! rtph264depay ! h264parse ! mpegtsmux !   hlssink  max-files=2 target-duration=2  location=/hlsdir/seg00%d.ts playlist-location=/hlsdir/<wbr>playlist.m3u8 playlist-root=<web server IP address><br><br></b></i></div><div><br>When I give the 'location' and 'playlist-location' as the local directories of the PC1, everything works fine independent of the what is given in the playlist-root.<br><br></div><div><br></div>Point to note here is that as per my requirement I want the web server to be different and remotely located from the my Linux machine (PC1) which is running the above command.<br><br>But, when I give the 'location' and 'playlist-location' as per the directories of PC2 (which is a remote web server) and  in the
 'playlist-root' I give the IP address of web server, I get an error of 'No such file or directory' as below:<br></div><i><br>Setting pipeline to PAUSED ...<br>Pipeline is live and does not need PREROLL ...<br>Progress: (open) Opening Stream<br>Progress: (connect) Connecting to rtsp://<camer url><br>Progress: (open) Retrieving server options<br>Progress: (open) Retrieving media info<br>Progress: (request) SETUP stream 0<br>Progress: (request) SETUP stream 1<br>Progress: (open) Opened Stream<br>Setting pipeline to PLAYING ...<br>New clock: GstSystemClock<br>Progress: (request) Sending PLAY request<br>Progress: (request) Sending PLAY request<br>Progress: (request) Sent PLAY request<br>ERROR: from element /GstPipeline:pipeline0/<wbr>GstHlsSink:hlssink0/<wbr>GstMultiFileSink:<wbr>multifilesink0: Error while writing to file.<br>Additional debug info:<br>gstmultifilesink.c(790): gst_multi_file_sink_write_<wbr>buffer (): /GstPipeline:pipeline0/<wbr>GstHlsSink:hlssink0/<wbr>GstMultiFileSink:<wbr>multifilesink0:<br><b><u>No such file or directory</u></b><br>Execution ended after 0:00:00.215107823<br>Setting pipeline to PAUSED ...<br>Setting pipeline to READY ...<br>Setting pipeline to NULL ...<br>Freeing pipeline ...</i><br><br></div><div>I want to know how HLSSINK uploads the files to remote web server using the property of 'playlist-root', does it use FTP or HTTP? I have added MIME types of .ts and .m3u8 in the my web server configuration.<br></div><div>Let me know if I have to give any information.<br><br></div><div>Thanks<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Tarun<br></div></font></span></div>
</div><br></div>