Bug #4705

MPEG-TS spawn profile not working with Kodi add-on.

Added by Peter Tofte 18 days ago. Updated 6 days ago.

Status:InvalidStart date:2017-11-04
Priority:HighDue date:
Assignee:Adam Sutton% Done:

0%

Category:Transcoding
Target version:4.4
Found in version:4.3-554~ga37d5bc Affected Versions:

Description

I got the new mpeg-ts spawn profile working. Tvheadend now transcodes using my custom scripts;
i have a script in /home/hts/scripts/stream2.sh that looks like this
#!/bin/bash
ffmpeg -analyzeduration 1M -probesize 1M -i pipe:0 -bitrate 3000k -bufsize 3000k -c:v libx264 -preset superfast -c:a aac -c:s copy -f mpegts pipe:1

, and it works well with VLC or my Android client TVHClient which does not rely on HTSP.
Kodi on the other hand does not see the MPEG-TS Spawn/built-in profile. When playback start is falls back to using the pass profile.
Kodi can use the transcode/av-lib profile, but that does not fulfill my transcoding needs

History

#1 Updated by Jaroslav Kysela 18 days ago

  • Status changed from New to Invalid

It's how things works. It's not possible to use spawn profile for the HTSP clients, because the filter (spawn process) is executed on the output file descriptor / socket.

#2 Updated by Peter Tofte 14 days ago

Jaroslav Kysela wrote:

It's how things works. It's not possible to use spawn profile for the HTSP clients, because the filter (spawn process) is executed on the output file descriptor / socket.

OK, but build in transcoding works. Why is there a fundamental difference making it impossible?

#3 Updated by Jaroslav Kysela 12 days ago

As you can see, the data from spawn muxer are not returned back to tvheadend: https://drive.google.com/file/d/0B0J8IKhUuUAWRW9QT0lhNFl1LUk

#4 Updated by Peter Tofte 6 days ago

Jaroslav Kysela wrote:

As you can see, the data from spawn muxer are not returned back to tvheadend: https://drive.google.com/file/d/0B0J8IKhUuUAWRW9QT0lhNFl1LUk

OK, so it is more a feature request; being able to e.g. pass the output of the spawn profile scripts to the HTSP protocol or Plug-in machinery.

Also available in: Atom PDF