Add webcsm URL as channel
Added by Josu Lazkano over 6 years ago
Hello,
I want to know if it is possible to add webcam URLs of https://www.webcam-hd.fr site as a channels in tvheadend.
Maybe with ffmpeg, I don't know how to do it.
I will appreciate your help.
Kind regards.
Replies (14)
RE: Add webcsm URL as channel - Added by Nicolas Rioja over 6 years ago
Hi,
Yes you can do that using ffmpeg.
Create an IPTV Network in network section
Go to MUXEs tab and create a new MUX under the network created before
In URL field type this:
pipe:////path_to_ffmpeg/ffmpeg -loglevel fatal -i stream_of_your_webcam -vcodec copy -acodec copy -f mpegts pipe:1
This is an example:
pipe:////share/CACHEDEV1_DATA/.qpkg/QDMS/bin/ffmpeg -loglevel fatal -i rtsp://user:[email protected]:88/videoMain -vcodec copy -acodec copy -f mpegts pipe:1
Good luck!
RE: Add webcsm URL as channel - Added by Josu Lazkano over 6 years ago
Hello Nicolas,
But I want to know how could I search for the correct URL to add with -i parameter.
For example, in Biarritz webcam (https://www.webcam-hd.fr/webcam?id=48&camera=biarritz--plages--phare), I can't find any logical URL in the HTML source code.
Kind regards.
RE: Add webcsm URL as channel - Added by Nicolas Rioja over 6 years ago
Use Video Download Helper for that...
https://addons.mozilla.org/es/firefox/addon/video-downloadhelper/
Chechk this out... This is the link that you are looking for:
https://live.webcam-hd.fr/64connections/biarritzplage.stream/playlist.m3u8
Regards
RE: Add webcsm URL as channel - Added by Josu Lazkano over 6 years ago
Thanks Nicolas,
I have no Firefox installed.
Could you say me the strem URL for this webcam? https://www.webcam-hd.fr/webcam?id=15&camera=zarautz
Kind regards.
RE: Add webcsm URL as channel - Added by saen acro over 6 years ago
Josu Lazkano wrote:
Thanks Nicolas,
I have no Firefox installed.
Could you say me the strem URL for this webcam? https://www.webcam-hd.fr/webcam?id=15&camera=zarautz
Kind regards.
https://live.webcam-hd.fr/64connections/zarautz.stream/playlist.m3u8
see source code of page
RE: Add webcsm URL as channel - Added by Josu Lazkano over 6 years ago
Thanks!
I installed same addon in Chrome.
This is really cool, public webcam as a channel.
I love tvheadend!
RE: Add webcsm URL as channel - Added by saen acro over 6 years ago
You can play little more and create "mosaic" from few cameras.
RE: Add webcsm URL as channel - Added by Josu Lazkano over 6 years ago
Thanks saen,
Yes, I know that ffmpeg is so flexible for this.
But fullscreen is ok for me.
Regards.
RE: Add webcsm URL as channel - Added by bodhrul ali over 6 years ago
saen acro wrote:
You can play little more and create "mosaic" from few cameras.
Wow, this sounds intresting. Do you have more info on this "mosaic".
Thanks.
RE: Add webcsm URL as channel - Added by saen acro over 6 years ago
bodhrul ali wrote:
saen acro wrote:
You can play little more and create "mosaic" from few cameras.
Wow, this sounds intresting. Do you have more info on this "mosaic".
Thanks.
https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%20input%20videos
https://unix.stackexchange.com/questions/355424/ffmpeg-mosaic-from-wowza-streams
this is easy /or no so/
but am interested how to make "slide show" channel from web pages
example
combination of
http://wttr.in/(city1+city2... cityN) some RSS/ATOM news etc.
changing each 15 sec
example : https://slideawesome.com/slidershare/?id=1cf59ee336f202
https://blues-tea-cha.blogspot.com/2009/12/rss-feed-screensaver.html
RE: Add webcsm URL as channel - Added by Cleiton Oppenheimer over 3 years ago
Hi all! I really liked the idea of this post for adding multiple IPTV/camera streams as a mosaic.
I am able to output 4 avi videos to a file using:
ffmpeg
-i 1.avi -i 2.avi -i 3.avi -i 4.avi
-filter_complex "
nullsrc=size=640x480 [base];
[0:v] setpts=PTS-STARTPTS, scale=320x240 [upperleft];
[1:v] setpts=PTS-STARTPTS, scale=320x240 [upperright];
[2:v] setpts=PTS-STARTPTS, scale=320x240 [lowerleft];
[3:v] setpts=PTS-STARTPTS, scale=320x240 [lowerright];
[base][upperleft] overlay=shortest=1 [tmp1];
[tmp1][upperright] overlay=shortest=1:x=320 [tmp2];
[tmp2][lowerleft] overlay=shortest=1:y=240 [tmp3];
[tmp3][lowerright] overlay=shortest=1:x=320:y=240
"
-c:v libx264 output.mkv
When I change 1.avi, 2.avi, 3.avi and 4.avi to the URL of my cameras (example rtsp://192.168.100.10:554) it is not working, even for outputing to a file.
I have two questions:
1- How should I change this script to be piped into TVHEADNED?
2- Is there anythin else in the script that I need to change, in order for it to work with my rtsp streams?
Regards,
Cleiton
RE: Add webcsm URL as channel - Added by manuel neuer over 2 years ago
When I try
pipe://usr/bin/ffmpeg -loglevel fatal -i https://www.sibiu.ro/webcamfeeds/webcam2.jpg -vcodec copy -acodec copy -f mpegts pipe:1
it does not work :(
Who can help (by posting the correct mux-command line for tvheadend)?
RE: Add webcsm URL as channel - Added by manuel neuer about 2 years ago
Bump...
Still no solution...
pipe:///usr/bin/ffmpeg -loop 1 -framerate 25 -i sibiu.ro/webcamfeeds/webcam2.jpg -c:a ac3 -f mpegts -mpegts_service_type digital_tv
does not work
RE: Add webcsm URL as channel - Added by saen acro about 2 years ago
manuel neuer wrote:
Bump...
Still no solution...
pipe:///usr/bin/ffmpeg -loop 1 -framerate 25 -i sibiu.ro/webcamfeeds/webcam2.jpg -c:a ac3 -f mpegts -mpegts_service_type digital_tv
does not work
Transcode to some useful DTV/IPTV video codec MPEG2/H264/H265/VP8/VP9