Streaming web.conf content using ffmpeg

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
pcjco
Posts: 2
Joined: Fri May 06, 2016 7:42 am

Streaming web.conf content using ffmpeg

Post by pcjco »

I am trying to stream to a Panasonic GT50 TV some content from WEB.conf (focusing on TEDTalks contents only for now, but to be able to use YT addon from Kodi through Jumpy later).

For now, I have been unable to make the transcoding with FFMpeg Web Video worked, and it only worked when transcoding with Mencoder Web (and VLC not working either).

If I download the web video file locally on my hard drive and stream it by forcing transcoding using FFMpeg, it works and the FFMpeg command line is very similar for the working local file than for the non working web file :

ffmpeg64.exe -y -loglevel info -i http://feedproxy.google.com/~r/TEDTalks ... _2015X.mp4
-c:a ac3 -c:v libx264 -tune zerolatency -preset ultrafast -level 31 -pix_fmt yuv420p -f mpegts -bufsize 31250000 -maxrate 31250000 -crf 16 -q:a 3 -ar 48000 \\.\pipe\ffmpegwebvideo_75_1462700588498

ffmpeg64.exe -y -loglevel info -i C:\MichaelBodekaer_2015X.mp4
-c:a ac3 -c:v libx264 -tune zerolatency -preset ultrafast -level 31 -pix_fmt yuv420p -f mpegts -bufsize 31250000 -maxrate 31250000 -crf 16 -ab 192k -ar 48000 \\.\pipe\ffmpegvideo_81_1462700730055


If I force the ffmpeg command by using CustomFFmpegOptions in the renderer conf to be the same as for the local video file, it doesn't work better, so this small difference doesn't seem to be the problem.
Now, if I don't use my Panasonic TV to access the web stream but use Kodi UPnP source (and forcing the UMS renderer to be the one of my Panasonic in order have the same transcoding behavior for Kodi than for my TV), then FFMpeg trancoding works...so it must be something with the client.

The behavior when trying to stream web content onto my TV using ffmpeg is the following : TV seems to be waiting for something for around 30 seconds, then shows the message "Cannot read file". Using Mencoder, video starts after few seconds.
On the UMS log side, what is strange is that it seems that something is sent to the TV as there is a succession of

Code: Select all

11:50:17 TRACE Resume Read: readCount=1253376 / writeCount=1540472
11:50:17 TRACE Suspend Read: readCount=1441792 / writeCount=1540472
11:50:18 TRACE Resume Read: readCount=1441792 / writeCount=1577320
11:50:18 TRACE Suspend Read: readCount=1482752 / writeCount=1577320
11:50:18 TRACE buffered: 94,568 bytes / inputs: 1
...
even after the TV states that it cannot read the file.

So for now, I am using Mencoder for web content but the main problem is that when this content uses HTTPS such as YT, then it doesn't work as it seems that mencoder build do not support HTTPS as seen in the log :

Code: Select all

12:29:32 DEBUG MEncoder SB65-UMS (C) 2000-2016 MPlayer Team
12:29:32 DEBUG 
12:29:32 DEBUG https protocol not found, recompile with openssl or gnutls enabled.
Is there a way to have the embedded Mencoder compiled with this protocol (I read some info about this in https://trac.mplayerhq.hu/ticket/2183) ?
Attachments
ums_dbg.zip
log when trying to read a web file using ffmpeg
(154.63 KiB) Downloaded 545 times
Post Reply