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

Thomas Schmiedl thomas.schmiedl at web.de
Mon Jan 22 16:59:46 EET 2018


ffmpeg command:

ffmpeg -i 
https://hddn01.skylinewebcams.com/live.m3u8?a=8i2q89556mjh7dlo87u31qm2h1 
-c copy -f mpegts -listen 1 http://192.168.178.1: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://hddn01.skylinewebcams.com/09640706UX3P-1516629132398.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=8i2q89556mjh7dlo87u31qm2h1':
   Duration: N/A, start: 25336.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
skipping 3 segments ahead, expired from playlists
[hls,applehttp @ 0x1cf69e0] Opening 
'https://hddn01.skylinewebcams.com/09640706UX3P-1516629164315.ts' for 
reading
[hls,applehttp @ 0x1cf69e0] Opening 
'https://hddn01.skylinewebcams.com/09640706UX3P-1516629172340.ts' for 
reading
[hls,applehttp @ 0x1cf69e0] Opening 
'https://hddn01.skylinewebcams.com/09640706UX3P-1516629180323.ts' for 
reading
[hls,applehttp @ 0x1cf69e0] Opening 
'https://hddn01.skylinewebcams.com/09640706UX3P-1516629188321.ts' for 
reading
[hls,applehttp @ 0x1cf69e0] Opening 
'https://hddn01.skylinewebcams.com/09640706UX3P-1516629196273.ts' for 
reading
[hls,applehttp @ 0x1cf69e0] Opening 
'https://hddn01.skylinewebcams.com/09640706UX3P-1516629204308.ts' for 
reading
[hls,applehttp @ 0x1cf69e0] Opening 
'https://hddn01.skylinewebcams.com/09640706UX3P-1516629212260.ts' for 
reading
[hls,applehttp @ 0x1cf69e0] Opening 
'https://hddn01.skylinewebcams.com/09640706UX3P-1516629220280.ts' for 
reading
av_interleaved_write_frame(): Broken pipe
Error writing trailer of http://192.168.178.1:1234: Broken pipe
frame=  768 fps= 45 q=-1.0 Lsize=    4289kB time=00:01:27.91 bitrate= 
399.6kbits/s speed=5.12x
video:3906kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 9.808136%
Conversion failed!

I tested with curl:

curl http://192.168.178.1:1234 > test.ts

and the file is playable on tv (via usb-hdd and xupnpd2), but not when 
using http://192.168.178.1:1234 directly in xupnpd2. I think it's an 
issue from xupnpd2, but I don't get a reply from the author. Maybe I can 
get help here.

The ffmpeg output "av_interleaved_write_frame(): Broken pipe" and lines 
below is because of canceling (ctrl+c) curl.

An actual querystring for the .m3u8 url can be copied from: 
http://www.skylinewebcams.com/de/webcam/czech-republic/prague/prague/old-town-bridge-tower.html

Regards,
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