FAQ  •  Register  •  Login

Streamlink pipe: H264 profile null, levels [{}] and null ref

<<

mihai

Serviio newbie

Posts: 16

Joined: Sat Nov 30, 2013 1:33 pm

Post Sun Nov 10, 2019 1:33 pm

Streamlink pipe: H264 profile null, levels [{}] and null ref

Hi,

I'm trying to watch the NASA Public-Education live stream on my non-smart Samsung TV, and for that I have modified the ffmpeg.bat script to change what it's executing based on the corresponding URL:
  Code:
streamlink ustream.tv/nasahdtv best -O | %~dp0\ffmpeg.exe %ALL_PARAMS:ustream.tv/nasahdtv=pipe:0%

This works for "Check Stream URL" in Serviio Console, so I save the online source. However, the station does not get listed in the Online sources on my TV. I can see this in the verbose logs:
  Code:
2019-11-09 23:41:04,433 DEBUG [FFmpegMetadataRetriever] Retrieving H264 profile/level for file 'ustream.tv/nasahdtv'
2019-11-09 23:41:04,433 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve H264 header for file: ustream.tv/nasahdtv
2019-11-09 23:41:04,433 DEBUG [ProcessExecutor] Starting "c:\Progra~1\Serviio\lib\ffmpeg.bat" -analyzeduration 10000000 -i ustream.tv/nasahdtv -frames:v 1 -c:v copy -f h264 -bsf:v h264_mp4toannexb -an pipe:
2019-11-09 23:41:06,433 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2019-11-09 23:41:10,314 DEBUG [FFmpegMetadataRetriever] File 'ustream.tv/nasahdtv' has H264 profile null, levels [{}] and null ref frames

This seems to be very close to working.

What am I doing wrong though?

Thanks in advance,
Mihai
<<

mihai

Serviio newbie

Posts: 16

Joined: Sat Nov 30, 2013 1:33 pm

Post Mon Nov 11, 2019 1:00 pm

Re: Streamlink pipe: H264 profile null, levels [{}] and null

@zip, any ideas?
<<

mihai

Serviio newbie

Posts: 16

Joined: Sat Nov 30, 2013 1:33 pm

Post Thu Nov 14, 2019 9:17 am

Re: Streamlink pipe: H264 profile null, levels [{}] and null

Injecting an extra ffmpeg instance into the path seems to get closer to getting this to work, in that the channel now appears in the Online list on the TV, but it's not playable:
  Code:
streamlink ustream.tv/nasahdtv best -O | %~dp0\ffmpeg.exe -i pipe:0 -c copy -f mpegts - | %~dp0\ffmpeg.exe %ALL_PARAMS:ustream.tv/nasahdtv=pipe:0%

Thoughts, anyone?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Nov 20, 2019 9:35 pm

Re: Streamlink pipe: H264 profile null, levels [{}] and null

I'd try to use this differently. If streamlink supports just outputting the media URLs, instead of playing it, you could run the command and then add the URL into Serviio as a live stream.

Alternatively you could make it even better by writing a simple Groovy plugin for Serviio that would execute streamlink, get the urls and pass them to Serviio.
<<

mihai

Serviio newbie

Posts: 16

Joined: Sat Nov 30, 2013 1:33 pm

Post Thu Nov 21, 2019 8:42 am

Re: Streamlink pipe: H264 profile null, levels [{}] and null

Yes, I know, but for this particular stream, the stream URL can't be extracted:
  Code:
streamlink --stream-url ustream.tv/nasahdtv best
error: The stream specified cannot be translated to a URL

Any other suggestions? Thanks.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 29 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.