Re: [FFmpeg-user] RTSP to HLS

2020-11-17 Thread Thomas Schmiedl

Hello again,

maybe someone could help a ffmpeg-newbie to get the correct hls-settings
(hope there is something possible without re-encoding). The GOP is
IPP 31 CLOSED (got it from this script
https://gist.github.com/ragnraok/638023456771dc596e6f953b47061f0e).

Thanks,
Thomas

Am 14.11.2020 um 01:35 schrieb Thomas Schmiedl:

Hello,

I try to local restream https://herberts.meinekameras.de:10169
(rtsp-over-websocket) with this workflow: Go-script (proxy websocket to
rtsp) -> ffmpeg (rtsp to hls) -> xupnpd2 mediaserver -> vlc or TV.

It works good in vlc, but on the TV it plays too fast and there are
pauses. I tested all 4 hls-handlers (hls, hls2, hls3, hls4) in xupnpd2
with the same result.

ffmpeg command:
ffmpeg -re -rtsp_transport tcp -i
"rtsp://localhost:8554/axis-media/media.amp?overview=0=1=1280x720=empty=true=15"

-c copy -f hls /home/user/lighttpd-install/htdocs/stream.m3u8

Hope that someone could test the workflow and maybe optimize the
ffmpeg-command.

Thanks,
Thomas

PS: I never had this issue in xupnpd2 when receiving hls-streams
directly from the internet.

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

package main

import (
"net"
"fmt"
"crypto/tls"
"net/http"

"github.com/gorilla/websocket"
)

func handleConn(tcpConn net.Conn) {
d := websocket.Dialer{TLSClientConfig: {InsecureSkipVerify: 
true}}
wsConn, _, err := 
d.Dial("wss://herberts.meinekameras.de:10169/rtsp-over-websocket", http.Header{
"Sec-WebSocket-Protocol": []string{"binary"},
})
if err != nil {
panic(err)
}

go func() {
defer tcpConn.Close()
buf := make([]byte, 10 * 1024)
for {
n, err := tcpConn.Read(buf)
if err != nil {
return
}
wsConn.WriteMessage(websocket.BinaryMessage, buf[:n])
}
}()

go func() {
defer wsConn.Close()
for {
_, buf, err := wsConn.ReadMessage()
if err != nil {
return
}
tcpConn.Write(buf)
}
}()
}

func main() {
l, err := net.Listen("tcp", ":8554")
if err != nil {
panic(err)
}

fmt.Println("ready")
for {
tcpConn, err := l.Accept()
if err != nil {
panic(err)
}

go handleConn(tcpConn)
}
}

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] RTSP to HLS

2020-11-13 Thread Thomas Schmiedl

Hello,

I try to local restream https://herberts.meinekameras.de:10169
(rtsp-over-websocket) with this workflow: Go-script (proxy websocket to
rtsp) -> ffmpeg (rtsp to hls) -> xupnpd2 mediaserver -> vlc or TV.

It works good in vlc, but on the TV it plays too fast and there are
pauses. I tested all 4 hls-handlers (hls, hls2, hls3, hls4) in xupnpd2
with the same result.

ffmpeg command:
ffmpeg -re -rtsp_transport tcp -i
"rtsp://localhost:8554/axis-media/media.amp?overview=0=1=1280x720=empty=true=15"
-c copy -f hls /home/user/lighttpd-install/htdocs/stream.m3u8

Hope that someone could test the workflow and maybe optimize the
ffmpeg-command.

Thanks,
Thomas

PS: I never had this issue in xupnpd2 when receiving hls-streams
directly from the internet.
package main

import (
"net"
"fmt"
"crypto/tls"
"net/http"

"github.com/gorilla/websocket"
)

func handleConn(tcpConn net.Conn) {
d := websocket.Dialer{TLSClientConfig: {InsecureSkipVerify: 
true}}
wsConn, _, err := 
d.Dial("wss://herberts.meinekameras.de:10169/rtsp-over-websocket", http.Header{
"Sec-WebSocket-Protocol": []string{"binary"},
})
if err != nil {
panic(err)
}

go func() {
defer tcpConn.Close()
buf := make([]byte, 10 * 1024)
for {
n, err := tcpConn.Read(buf)
if err != nil {
return
}
wsConn.WriteMessage(websocket.BinaryMessage, buf[:n])
}
}()

go func() {
defer wsConn.Close()
for {
_, buf, err := wsConn.ReadMessage()
if err != nil {
return
}
tcpConn.Write(buf)
}
}()
}

func main() {
l, err := net.Listen("tcp", ":8554")
if err != nil {
panic(err)
}

fmt.Println("ready")
for {
tcpConn, err := l.Accept()
if err != nil {
panic(err)
}

go handleConn(tcpConn)
}
}

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] RTSP-over-Websocket

2020-10-21 Thread Thomas Schmiedl

Hello,

I try to display this stream https://herberts.meinekameras.de:10169
(RTSP-over-Websocket) via xupnpd2-mediaserver on the TV-device. Is it
possible in ffmpeg to receive RTSP-over-Websocket? Then I could produce
a local HLS-stream for xupnpd2.

Thanks and regards,
Thomas
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg cross compile error

2019-07-24 Thread Thomas Schmiedl

Thanks Moritz, it works now.

Am 24.07.2019 um 16:04 schrieb Moritz Barsnick:

On Wed, Jul 24, 2019 at 15:28:04 +0200, Thomas Schmiedl wrote:

Hello,

I try to cross compile ffmpeg (git) using this toolchain
https://freetz.github.io/ for a MIPS-based router. My goal is to extract
a single image from this mjpeg-webcam-stream
http://gwm.ccshpraha.cz:8087/. Attached are the make output and
config.log (contains the configure parameters)

[...]

CC  libavdevice/alldevices.o
In file included from 
/home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/stdlib.h:32:0,
  from 
/home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/bits/sched.h:116,
  from 
/home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/sched.h:34,
  from 
/home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/pthread.h:24,
  from ./libavutil/thread.h:30,
  from libavdevice/alldevices.c:22:
./config.h:17:19: error: expected identifier or '(' before 'void'
  #define getenv(x) NULL
^
./config.h:17:19: error: expected ')' before numeric constant
  #define getenv(x) NULL
^
In file included from ./libavutil/internal.h:176:0,
  from ./libavutil/common.h:491,
  from ./libavutil/avutil.h:296,
  from ./libavutil/samplefmt.h:24,
  from ./libavcodec/avcodec.h:31,
  from ./libavformat/avformat.h:317,
  from ./libavformat/internal.h:27,
  from libavdevice/alldevices.c:23:
./libavutil/libm.h:54:32: error: static declaration of 'cbrt' follows 
non-static declaration
  static av_always_inline double cbrt(double x)
 ^


This looks like this:
https://github.com/openwrt/packages/issues/6735

and the workaround seems to be adding "--cpu=". See
https://github.com/openwrt/packages/pull/6743/commits/8067051bfc99f48d02aec52265fc9b78f8e60dee

I don't know if there's a real bug in ffmpeg's source here. This here:


./config.h:17:19: error: expected identifier or '(' before 'void'
  #define getenv(x) NULL


indicates that the NULL macro is different on MIPS, and ffmpeg's macro
might have to be:


  #define getenv(x) (NULL)


just in case??

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] bitmap-subtitle in stream

2018-06-27 Thread Thomas Schmiedl

Am 26.06.2018 um 22:44 schrieb Carl Eugen Hoyos:

2018-06-26 19:57 GMT+02:00, Thomas Schmiedl :


For a test, I exported a bitmap-subtitle in "Subtitle Edit" and run this
ffmpeg (git-version) command:

ffmpeg -i
http://62.113.210.250/medienasa-live/_definst_/mp4:punktum_high/playlist.m3u8
-i sub.idx -i sub.sub -map 0:v -map 0:a -c copy -map 1 -c:s:1
dvd_subtitle -metadata:s:s:1 language=eng -movflags
frag_keyframe+empty_moov -bsf:a aac_adtstoasc -f mp4 -listen 1
http://192.168.178.22:1234

The output from http://192.168.178.22:1234 was served via
Gerbera-mediaserver to a Panasonic-TV. The TV could not display the
video and ffmpeg exited with "broken pipe".


Does it work without subtitles?
No, it doesn't work. The main problem is still the listen mode. I 
contacted Panasonic-support for help. Maybe you could test listen mode 
on your TV device.


I don't think dvdsub in mov is widely supported, test dvbsub in
mpegts (but note that the mpegts muxer has known issues, only
test one video and at most one audio stream for a start).
It also doesn't work, because of the listen mode. How to generate dvbsub 
from text or image?


Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] bitmap-subtitle in stream

2018-06-26 Thread Thomas Schmiedl



Am 21.06.2018 um 12:09 schrieb Carl Eugen Hoyos:

2018-06-21 11:44 GMT+02:00, Thomas Schmiedl :

Am 16.06.2018 um 19:03 schrieb Carl Eugen Hoyos:

2018-06-16 18:56 GMT+02:00, Thomas Schmiedl :


I use ffmpeg on a router to restream a DASH-stream
(https://live.idnes.cz/slow/slowtv7_720p/manifest.mpd) to a local
htdocs-folder as HLS on the router. The media-server xupnpd2
reads the HLS and transfers it to the TV.

On the DASH-stream website
https://slowtv.playtvak.cz/prave-ted-mazaci-tramvaj-jede-prahou-d73-/mazaci-tramvaj.aspx?c=A150908_111659_mazaci-tramvaj_plap
is a map with the actual position of the tram. The router is to slow
for re-encoding using the video-filter "overlay".

Is it possible to integrate a bitmap-based subtitle in the generated
HLS-stream containing an actual map-image (e.g.
http://staticmap.openstreetmap.de/staticmap.php?center=50.05619,14.43873=15=800x300=mapnik=50.05619,14.43873,ol-marker)
without re-encoding?


In theory, you could provide subtitles but all formats are palettized
and creating a palettized image also takes time. In any case, you
would have to implement this programmatically.


Could someone provide a workflow how to do that programmatically. Until
now I have only worked with the ffmpeg-application in combination with
xupnpd2 mediaserver.


Sorry, this is not something a beginner will be able to implement.
The overlay filter is the only way to do this currently, its performance
has been increased lately but that does not necessarily mean it will
work on slow hardware.

Carl Eugen
For a test, I exported a bitmap-subtitle in "Subtitle Edit" and run this 
ffmpeg (git-version) command:


ffmpeg -i 
http://62.113.210.250/medienasa-live/_definst_/mp4:punktum_high/playlist.m3u8 
-i sub.idx -i sub.sub -map 0:v -map 0:a -c copy -map 1 -c:s:1 
dvd_subtitle -metadata:s:s:1 language=eng -movflags 
frag_keyframe+empty_moov -bsf:a aac_adtstoasc -f mp4 -listen 1 
http://192.168.178.22:1234


The output from http://192.168.178.22:1234 was served via 
Gerbera-mediaserver to a Panasonic-TV. The TV could not display the 
video and ffmpeg exited with "broken pipe".


I already asked this question in an other issue, but again: Could 
someone test this with a TV (maybe a different vendor) to find the 
required ffmpeg settings?


Thanks, THomas

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] bitmap-subtitle in stream

2018-06-21 Thread Thomas Schmiedl

Am 16.06.2018 um 19:03 schrieb Carl Eugen Hoyos:

2018-06-16 18:56 GMT+02:00, Thomas Schmiedl :


I use ffmpeg on a router to restream a DASH-stream
(https://live.idnes.cz/slow/slowtv7_720p/manifest.mpd) to a local
htdocs-folder as HLS on the router. The media-server xupnpd2
reads the HLS and transfers it to the TV.

On the DASH-stream website
https://slowtv.playtvak.cz/prave-ted-mazaci-tramvaj-jede-prahou-d73-/mazaci-tramvaj.aspx?c=A150908_111659_mazaci-tramvaj_plap
is a map with the actual position of the tram. The router is to slow
for re-encoding using the video-filter "overlay".

Is it possible to integrate a bitmap-based subtitle in the generated
HLS-stream containing an actual map-image (e.g.
http://staticmap.openstreetmap.de/staticmap.php?center=50.05619,14.43873=15=800x300=mapnik=50.05619,14.43873,ol-marker)
without re-encoding?


In theory, you could provide subtitles but all formats are palettized
and creating a palettized image also takes time. In any case, you
would have to implement this programmatically.

Carl Eugen
Could someone provide a workflow how to do that programmatically. Until 
now I have only worked with the ffmpeg-application in combination with 
xupnpd2 mediaserver.


Thanks, Thomas

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] bitmap-subtitle in stream

2018-06-16 Thread Thomas Schmiedl

Hello,

I use ffmpeg on a router to restream a DASH-stream 
(https://live.idnes.cz/slow/slowtv7_720p/manifest.mpd) to a local 
htdocs-folder as HLS on the router. The media-server xupnpd2 reads the 
HLS and transfers it to the TV.


On the DASH-stream website 
https://slowtv.playtvak.cz/prave-ted-mazaci-tramvaj-jede-prahou-d73-/mazaci-tramvaj.aspx?c=A150908_111659_mazaci-tramvaj_plap 
is a map with the actual position of the tram. The router is to slow for 
re-encoding using the video-filter "overlay".


Is it possible to integrate a bitmap-based subtitle in the generated 
HLS-stream containing an actual map-image (e.g. 
http://staticmap.openstreetmap.de/staticmap.php?center=50.05619,14.43873=15=800x300=mapnik=50.05619,14.43873,ol-marker) 
without re-encoding?


Thanks and best regards,
Thomas
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Non-monotonous DTS in output stream 0:0

2018-05-20 Thread Thomas Schmiedl

Hello,

I try to re-stream from DASH to HLS (read the HLS-stream by 
xupnpd2-Mediaserver and transfer to TV).


ffmpeg version: N-91067-g1c2e5fc454

ffmpeg command: ffmpeg -i 
https://live.idnes.cz/slow/slowtv6_720p/manifest.mpd -c copy -f hls 
-hls_flags delete_segments  -hls_segment_filename 
"/home/user/file%03d.ts" /home/user/stream.m3u8


Sometimes there is such ffmpeg output:
[dash @ 0xd15b40] DTS 8430351390 < 8431247790 out of order
[hls @ 0xd3db80] Non-monotonous DTS in output stream 0:0; previous: 
7198740, current: 6302340; changing to 7198741. This may result in 
incorrect timestamps in the output file.
[hls @ 0xd3db80] Non-monotonous DTS in output stream 0:0; previous: 
7198741, current: 6305940; changing to 7198742. This may result in 
incorrect timestamps in the output file.
[hls @ 0xd3db80] Non-monotonous DTS in output stream 0:0; previous: 
7198742, current: 6309540; changing to 7198743. This may result in 
incorrect timestamps in the output file.
[hls @ 0xd3db80] Non-monotonous DTS in output stream 0:0; previous: 
7198743, current: 6313140; changing to 7198744. This may result in 
incorrect timestamps in the output file.


Thanks for your help.

Thomas
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] ffmpeg cross-compile

2018-05-14 Thread Thomas Schmiedl

Hello,

I try to cross-compile ffmpeg for my router using this toolchain 
https://github.com/Freetz/freetz. It is an alternative firmware for AVM 
routers 
(https://web.archive.org/web/20171105112501/http://freetz.org:80/wiki/help/howtos/common/newbie.en). 
I need support for 'https' and 'dash' (libxml2).


I tested with ffmpeg-4.0.tar.bz2, libxml2-2.9.8.tar.gz and 
openssl-1.0.2o.tar.gz.


openssl:
./configure --host=mips-linux-gnu --target=mips-linux CC=mips-linux-gcc 
AR=mips-linux-ar LD=mips-linux-ld RANLIB=mips-linux-ranlib 
--prefix=/home/user/ffmpeg-mips --without-zlib --without-python


make
make install

libxml2:
./Configure linux-generic32 shared --cross-compile-prefix=mips-linux- 
--prefix=/home/user/ffmpeg-mips


make
make install

ffmpeg:
./configure --prefix=/home/user/ffmpeg-mips --enable-cross-compile 
--cross-prefix=mips-linux- --arch=mips --target-os=linux 
--enable-openssl --enable-libxml2 
--extra-cflags='-I/home/user/ffmpeg-mips/include 
-Wl,-rpath=/home/user/ffmpeg-mips/lib' 
--extra-ldflags='-L/home/user/ffmpeg-mips/lib 
-Wl,-rpath=/home/user/ffmpeg-mips/lib' 
--extra-cxxflags='-I/home/user/ffmpeg-mips/include 
-Wl,-rpath=/home/user/ffmpeg-mips/lib' --disable-mips32r2 
--disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu


I got this error: 'ERROR: libxml-2.0 not found using pkg-config'. But 
the freetz-toolchain does not contain pkg-config. Is it possible to use 
pkg-config from the Debian 9 host system?


When calling ffmpeg's configure without '--enable-libxml2', there is no 
pkg-config error. But a warning: 'mips-linux-pkg-config not found, 
library detection may fail.'


I'm only an end-user, maybe someone could help me?

Thanks,
Thomas
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg dash demuxer support

2018-05-12 Thread Thomas Schmiedl

Am 12.05.2018 um 21:06 schrieb Moritz Barsnick:

On Sat, May 12, 2018 at 19:26:25 +0200, Thomas Schmiedl wrote:

I tested with the ffmpeg git-version. When I use './configure
--list-demuxers', there is 'dash' listed. A simple './configure' does
not list 'dash' in the 'configure summary report' under 'Enabled demuxers'.

Is there an external lib required? I tested with Debian 9, 32-bit.


As far as I can tell, you need to explicitly give ./configure the
option "--enable-libxml2" (and of course have libxml-dev or libxml2-dev
or whatever it is under Debian available).

Good point, I must enable that as well for my builds. :)

Give it a try and tell us if it works.

It works with '--enable-libxml2', thanks for your help.


Cheers,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] ffmpeg dash demuxer support

2018-05-12 Thread Thomas Schmiedl

Hello,

I try to display a DASH-stream (this one: 
https://live.idnes.cz/slow/slowtv6_720p/manifest.mpd) via the 
xupnpd2-mediaserver (installed on the router) to my TV. xupnpd2 only 
supports HLS-streams.


My idea is to receive the DASH-stream in ffmpeg and 'save' it as 
HLS-stream in the xupnpd2's docroot (integrated http-server).


I tested with the ffmpeg git-version. When I use './configure 
--list-demuxers', there is 'dash' listed. A simple './configure' does 
not list 'dash' in the 'configure summary report' under 'Enabled demuxers'.


Is there an external lib required? I tested with Debian 9, 32-bit.

Thanks for your help and best regards,
Thomas
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

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

2018-02-10 Thread Thomas Schmiedl

Am 07.02.2018 um 19:15 schrieb Carl Eugen Hoyos:

2018-02-06 14:25 GMT+01:00 Thomas Schmiedl <thomas.schmi...@web.de>:


ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers


Please test current FFmpeg git head, nothing else is supported here.

I tested now with ffmpeg version N-89978-gcb97400



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


Assuming this means the hls file, what differences do you see between
a working and a "not readable" file?
I have no sniffing experience to see the differences between ffmpeg 
listen mode and streamlink.


Please find out what top-posting means and stop doing it!

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

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

2018-02-06 Thread Thomas Schmiedl

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://: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://: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
  libavformat57. 83.100 / 57. 83.100
  libavdevice57. 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.70, 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.schmi...@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@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

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

2018-01-30 Thread Thomas Schmiedl

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
  libavformat57. 83.100 / 57. 83.100
  libavdevice57. 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.70, 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.schmi...@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@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, v

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

2018-01-22 Thread Thomas Schmiedl

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
  libavformat57. 83.100 / 57. 83.100
  libavdevice57. 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.70, 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.schmi...@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@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, v

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

2018-01-12 Thread Thomas Schmiedl
The option "-f mpegts" doesn't work. Could someone test this with 
xupnpd2 and a Panasonic-TV from 2012/2013? Maybe a DLNA issue?


Best regards,
Thomas

Am 11.01.2018 um 15:55 schrieb Moritz Barsnick:

On Thu, Jan 11, 2018 at 14:44:11 +0100, Thomas Schmiedl wrote:

xupnpd2 doesn't support https,


Wow. Welcome to the 21st century.


so my idea is to receive the hls-stream in ffmpeg.


Should work.


ffmpeg -i https://hddn01.skylinewebcams.com/live.m3u8?a= -c copy -f 
mpeg -listen 1 http://:1234

[...]

The stream is displayed on PC (vlc-player) without problems, but the TV
doesn't display it.


VLC is very tolerant in terms of what it accepts (partly thanks to
libavformat and libavcodec, but also their own implementations). But
what you are sending with "-f mpeg" is an MPEG Program Stream (as meant
for files and e.g. for VOB files on DVDs). Most streaming receivers
won't accept this, but should instead be fine with the format MPEG
*Transport* Stream. Thus please use "-f mpegts" and it should work. :-)

Cheers,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

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

2018-01-11 Thread Thomas Schmiedl

Hello,

I use the xupnpd2 media-server (http://xupnpd.org/xupnpd2_en.html) on my 
router to transport hls-streams from the internet to my Panasonic-TV.


I try to stream some webcams from http://www.skylinewebcams.com/. 
xupnpd2 doesn't support https, so my idea is to receive the hls-stream 
in ffmpeg.


ffmpeg command:
ffmpeg -i 
https://hddn01.skylinewebcams.com/live.m3u8?a= -c copy 
-f mpeg -listen 1 http://:1234


 is in the website, e.g. 
http://www.skylinewebcams.com/de/webcam/czech-republic/prague/prague/old-town-bridge-tower.html


and the xupnpd2-playlist:
#EXTINF:-1 handler=http type=mpeg, webcam-name
http://:1234

The stream is displayed on PC (vlc-player) without problems, but the TV 
doesn't display it.


On http://xupnpd.org/download.html is a public-beta for xupnpd2. Maybe 
someone could help me to find the correct ffmpeg command or 
xupnpd2-settings (the russian author doesn't reply my e-mail).


Best regards,
Thomas
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] HLS-Stream via ffmpeg/Mediaserver to TV

2016-04-14 Thread Thomas Schmiedl

I tried with this command on a linux pc:

ffmpeg-3.0.1-installation/bin/ffmpeg -i 
http://62.113.210.250/medienasa-live/_definst_/mp4:tvhalle_high/playlist.m3u8 
-acodec copy -vcodec copy -f mpeg -listen 1 http://192.168.178.27:8899


output:

ffmpeg version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.4.5 (Debian 4.4.5-8)
  configuration: --prefix=/home/user/ffmpeg-3.0.1-installation
  libavutil  55. 17.103 / 55. 17.103
  libavcodec 57. 24.102 / 57. 24.102
  libavformat57. 25.100 / 57. 25.100
  libavdevice57.  0.101 / 57.  0.101
  libavfilter 6. 31.100 /  6. 31.100
  libswscale  4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
Input #0, hls,applehttp, from 
'http://62.113.210.250/medienasa-live/_definst_/mp4:tvhalle_high/playlist.m3u8':

  Duration: N/A, start: 812.762000, bitrate: N/A
  Program 0
Metadata:
  variant_bitrate : 1925436
Stream #0:0: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), 
yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc

Metadata:
  variant_bitrate : 1925436
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 
stereo, fltp, 280 kb/s

Metadata:
  variant_bitrate : 1925436
[mpeg @ 0xa92e3c0] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, mpeg, to 'http://192.168.178.27:8899':
  Metadata:
encoder : Lavf57.25.100
Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 
1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc

Metadata:
  variant_bitrate : 1925436
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 
stereo, 280 kb/s

Metadata:
  variant_bitrate : 1925436
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help

The stream plays on the TV, but without audio. When I stop the stream on 
the TV, ffmpeg exits with:


[http @ 0xa84e780] Stream ends prematurely at 472320, should be 
17066643.3kbits/s speed= 1.6x

skipping 4 segments ahead, expired from playlists
[mpegts @ 0xa84d940] PES packet size mismatch
av_interleaved_write_frame(): Broken pipeB time=00:01:40.75 bitrate= 
861.0kbits/s speed=3.31x
Error writing trailer of http://192.168.178.27:8899: Broken pipeframe= 
1286 fps= 42 q=-1.0 Lsize=   10690kB time=00:01:40.80 bitrate= 
868.8kbits/s speed= 3.3x
video:9399kB audio:1222kB subtitle:0kB other streams:0kB global 
headers:0kB muxing overhead: 0.648537%

Conversion failed!

What I need to add in the command for audio output and that ffmpeg does 
not exit. DLNA-server is mediatomb.


Thomas

Am 12.04.2016 um 16:27 schrieb Moritz Barsnick:

On Sun, Apr 10, 2016 at 17:08:42 +0200, Thomas Schmiedl wrote:

I try to receive this HLS-stream:
http://62.113.210.250/medienasa-live/_definst_/mp4:tvhalle_high/playlist.m3u8
on my router (Fritzbox 7312; MIPS-based) via a mediaserver (e.g.
Mediatomb) and transfer the stream to my DLNA-TV (Panasonic).

The TV doesn't play the .m3u8 directly ("file not readable"). My idea is
to process the .m3u8 in ffmpeg (without transcoding), which sends the
stream to a network socket, the mediaserver reads from this socket and
transfers the stream to my TV.


Isn't mediatomb itself capable of sourcing from HLS URLs? I don't
remember. (I may be confusing it with Universal Media Server.)

What sort of socket are you thinking of? Is the mediaserver listening
on a socket of its own? Is it connecting to another server's socket?
What protocol does it expect? (Pure TCP/UDP, or HTTP? RTMP, RTSP?) What
container types will it accept?

Anyway: ffmpeg can host its own listening socket, e.g.:
$ ffmpeg -f lavfi -i testsrc2 -c:v libx264 -f matroska -listen 1 
tcp://localhost:1234
$ ffmpeg -f lavfi -i testsrc2 -c:v libx264 -f matroska -listen 1 
http://localhost:8899
ffmpeg can send to another host's socket, e.g.:
$ ffmpeg -f lavfi -i testsrc2 -c:v libx264 -f mpegts udp://otherhost:


Could someone help me to realize this? I'm not an expert in this issue.


You need to be more precise in terms of what your environment needs.
One of those three examples could work, but what do we know. ffmpeg
can't host DLNA by itself though AFAIK, but that's what you have
mediatomb for.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] HLS-Stream via ffmpeg/Mediaserver to TV

2016-04-12 Thread Thomas Schmiedl

Thanks Moritz for your reply.

I would use livestreamer (http://docs.livestreamer.io/) to receive the 
stream 
(hlsvariant://62.113.210.250/medienasa-live/_definst_/mp4:tvhalle_high/playlist.m3u8) 
and send it to an http port (--player-external-http 
--player-external-http-port 1234). I paste these url in mediatomb as an 
external link (http://:1234) and it transfers the stream to the TV. 
But livestreamer is programmed in python. I don't want to use it because 
of the less memory on the router and execution time.


I'm a beginner in ffmpeg. I read, that ffmpeg supports hls-streams. 
Could someone give me the command to receive the stream and send it to 
an http-port (like livestreamer), that mediatomb can transport it to the 
TV. I can't give more information.


Thomas

Am 12.04.2016 um 16:27 schrieb Moritz Barsnick:

On Sun, Apr 10, 2016 at 17:08:42 +0200, Thomas Schmiedl wrote:

I try to receive this HLS-stream:
http://62.113.210.250/medienasa-live/_definst_/mp4:tvhalle_high/playlist.m3u8
on my router (Fritzbox 7312; MIPS-based) via a mediaserver (e.g.
Mediatomb) and transfer the stream to my DLNA-TV (Panasonic).

The TV doesn't play the .m3u8 directly ("file not readable"). My idea is
to process the .m3u8 in ffmpeg (without transcoding), which sends the
stream to a network socket, the mediaserver reads from this socket and
transfers the stream to my TV.


Isn't mediatomb itself capable of sourcing from HLS URLs? I don't
remember. (I may be confusing it with Universal Media Server.)

What sort of socket are you thinking of? Is the mediaserver listening
on a socket of its own? Is it connecting to another server's socket?
What protocol does it expect? (Pure TCP/UDP, or HTTP? RTMP, RTSP?) What
container types will it accept?

Anyway: ffmpeg can host its own listening socket, e.g.:
$ ffmpeg -f lavfi -i testsrc2 -c:v libx264 -f matroska -listen 1 
tcp://localhost:1234
$ ffmpeg -f lavfi -i testsrc2 -c:v libx264 -f matroska -listen 1 
http://localhost:8899
ffmpeg can send to another host's socket, e.g.:
$ ffmpeg -f lavfi -i testsrc2 -c:v libx264 -f mpegts udp://otherhost:


Could someone help me to realize this? I'm not an expert in this issue.


You need to be more precise in terms of what your environment needs.
One of those three examples could work, but what do we know. ffmpeg
can't host DLNA by itself though AFAIK, but that's what you have
mediatomb for.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] HLS-Stream via ffmpeg/Mediaserver to TV

2016-04-10 Thread Thomas Schmiedl

Hello,

I try to receive this HLS-stream: 
http://62.113.210.250/medienasa-live/_definst_/mp4:tvhalle_high/playlist.m3u8 
on my router (Fritzbox 7312; MIPS-based) via a mediaserver (e.g. 
Mediatomb) and transfer the stream to my DLNA-TV (Panasonic).


The TV doesn't play the .m3u8 directly ("file not readable"). My idea is 
to process the .m3u8 in ffmpeg (without transcoding), which sends the 
stream to a network socket, the mediaserver reads from this socket and 
transfers the stream to my TV.


Could someone help me to realize this? I'm not an expert in this issue.

Thanks for your help and best regards,
Thomas
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user