Gabriel Galand wrote:
> Hello Hiro,
>
> I have checked with ssh that the path of ffmpeg on my synology is indeed /usr/bin/. Your script should work. But when I try to give it to TVH it does not seem to like it. The scan does not find any transponder.
> I am not sure TVH can read m3u lists which are in fact pipes from ffmpeg ! Is it not possible to execute the pipe somewhere else ? Or maybe I code something wrong when specifying the local network URL.
I can assure you this does work.
You can try without the pipe if you like:
#EXTM3U
#EXTINF:0,Deutsche Welle
http://dwstream4-lh.akamaihd.net:80/i/dwstream4_live@131329/index_1_av-p.m3u8
#EXTINF:0,Bloomberg
http://cdn-videos.akamaized.net/btv/desktop/akamai/europe/live/primary.m3u8
> The problem with TVH is that we cannot know which URL pleases it and which doesn't. And if it does not work, it does not say why. Is there no log of errors in TVH ?
When using the TVH web interface, at the bottom right of the window, click on the button that looks like two ^ on top of each other, This will display the current TVHeadend log.
However, when it comes to evaluating URL's, access to ffmpeg [or ffprobe] is more useful, e.g.
ffprobe 'http://dwstream4-lh.akamaihd.net:80/i/dwstream4_live@131329/index_1_av-p.m3u8'
...
Input #0, hls,applehttp, from 'http://dwstream4-lh.akamaihd.net:80/i/dwstream4_live@131329/index_1_av-p.m3u8':
Duration: N/A, start: 8754.045467, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv), 720x400 [SAR 1:1 DAR 9:5], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 0
Stream #0:2: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 0
I've deleted some noise from the output above, the important thing is that you see a video stream. If it's not working you'll usually see just a 404 [not found] or 403 [not authorized] message.
If you don't have ffprobe, use ffmpeg -i 'url' instead, it will complain that "At least one output file must be specified" but you can ignore that. Make sure you put the URL to be tested inside ''.