Yesterday, 06:06 AM
(Yesterday, 05:06 AM)mvallevand Wrote: Yes ffmpeg get the Next PVR url. Your last option is using CUDA too, so you may need to add that too for your card.so I have tried using cuda and such and that did not work .. so i tried to pass it off to a bash script to change the ip for transcoding but i couldnt even get it to talk to nextpvr ..its well beyond my skill set.. thanks for the help anyways .
Martin
heres the bash script in case anyone wants to play with it ...
#---------------------
#!/bin/bash
#location -> /app/nextpvr-transcode.sh
echo "NextPVR passed: $1" >> /tmp/npvr-transcode.log
# Parse the internal NextPVR URL from the first argument
NEXTPVR_URL="$1"
# Map NextPVR channeloid to actual source URL
case "$NEXTPVR_URL" in
*channeloid=7165*) REALURL="http://domain.com/5.m3u8?mode=hls-direct" ;;
*channeloid=7166*) REALURL="http://domain.com/iptv/channel/6.m3u8?mode=hls-direct" ;;
*channeloid=7167*) REALURL="http://domain.com/iptv/channel/7.m3u8?mode=hls-direct" ;;
*) REALURL="$NEXTPVR_URL" ;;
esac
ffmpeg -hwaccel cuda -i "$REALURL" -c:v h264_nvenc -c:a aac -f mpegts pipe:1