[FFmpeg-user] stream hls from ffmpeg via media-server to TV

Thomas Schmiedl thomas.schmiedl at web.de
Tue Feb 6 15:25:30 EET 2018


Hello,

I tested with Streamlink (https://streamlink.github.io/) and Gerbera 
media-server (https://gerbera.io/), that works with my TV.

streamlink https://hddn01.skylinewebcams.com/live.m3u8?a=... best 
--player-external-http --player-external-http-port 1234

(complete m3u8 url from: 
http://www.skylinewebcams.com/en/webcam/czech-republic/prague/prague/old-town-bridge-tower.html)

Gerbera settings:
- External Link (URL)
- Title: Teststream
- URL: http://<local-ip>:1234
- Protocol: http-get
- Class: object.item.videoItem
- Description: Teststream
- Mimetype: video/mpeg

But Streamlink is slow on the router (Python interpreted) and doesn't 
exit when leaving the stream on TV.

The combination ffmpeg + Gerbera doesn't work:
ffmpeg -i https://hddn01.skylinewebcams.com/live.m3u8?a=... -c copy -f 
mpegts -listen 1 http://<local-ip>:1234

ffmpeg output:
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
   built with gcc 4.8.5 (GCC)
   configuration: --prefix=/home/user/ffmpeg-3.4.1-mips 
--enable-cross-compile --cross-prefix=mips-linux- --arch=mips 
--target-os=linux --enable-openssl 
--extra-cflags='-I/home/user/openssl-1.0.2n-mips/include 
-Wl,-rpath=/home/user/openssl-1.0.2n-mips/lib' 
--extra-ldflags='-L/home/user/openssl-1.0.2n-mips/lib 
-Wl,-rpath=/home/user/openssl-1.0.2n-mips/lib' 
--extra-cxxflags='-I/home/user/openssl-1.0.2n-mips/include 
-Wl,-rpath=/home/user/openssl-1.0.2n-mips/lib' --disable-mips32r2 
--disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu
   libavutil      55. 78.100 / 55. 78.100
   libavcodec     57.107.100 / 57.107.100
   libavformat    57. 83.100 / 57. 83.100
   libavdevice    57. 10.100 / 57. 10.100
   libavfilter     6.107.100 /  6.107.100
   libswscale      4.  8.100 /  4.  8.100
   libswresample   2.  9.100 /  2.  9.100
[hls,applehttp @ 0x1cf69e0] Opening 
'https://hddn23.skylinewebcams.com/09640706UX3P-1517923165424.ts' for 
reading
[hls,applehttp @ 0x1cf69e0] Could not find codec parameters for stream 1 
(Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified 
sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' 
options
Input #0, hls,applehttp, from 
'https://hddn01.skylinewebcams.com/live.m3u8?a=kaasoaq2cbgbokmum0i106dm82':
   Duration: N/A, start: 736.700000, bitrate: N/A
   Program 0
     Metadata:
       variant_bitrate : 0
     Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 
1280x1024, 12 fps, 12 tbr, 90k tbn, 180k tbc
     Metadata:
       variant_bitrate : 0
     Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp
     Metadata:
       variant_bitrate : 0
Output #0, mpegts, to 'http://192.168.178.1:1234':
   Metadata:
     encoder         : Lavf57.83.100
     Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 
1280x1024, q=2-31, 12 fps, 12 tbr, 90k tbn, 90k tbc
     Metadata:
       variant_bitrate : 0
Stream mapping:
   Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
av_interleaved_write_frame(): Broken pipe
Error writing trailer of http://192.168.178.1:1234: Broken pipe
frame=    1 fps=0.6 q=-1.0 Lsize=      32kB time=00:00:00.00 
bitrate=23831272.7kbits/s speed=6.98e-06x
video:59kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: unknown
Conversion failed!

Error message on TV is "file not readable" and in ffmpeg "Broken pipe".

Maybe someone could help me.

Thomas

Am 19.01.2018 um 12:56 schrieb Carl Eugen Hoyos:
> 2018-01-12 14:22 GMT+01:00 Thomas Schmiedl <thomas.schmiedl at web.de>:
>> The option "-f mpegts" doesn't work.
> 
> At least provide your FFmpeg command line together with the complete,
> uncut console output.
> Does your tv accept usb drives? Did you test a file created with FFmpeg?
> 
> Please do not top-post here, Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> 


More information about the ffmpeg-user mailing list