2021-03-30, 08:11 PM
Not all Roku devices cannot handle all TS files that NextPVR can record. Also skipping, resume, comskip etc all are noticeable slower and potentially not as accurate as with indexed containers such as mp4 and mkv files.
To solve this issue on recordings I suggest using one of the following two choices to remux from ts to mp4 in PostProcessing.bat. The Roku client will automatically use an mp4 file when found and the resume position is shared with the TS file in other clients.
or in Linux
If your Roku is not AC3 compatible you will not only need to remux you will need to transcode to change -acodec copy to -acodec aac -ac 2
There are more sophisticated options but these give a good start for Roku users. I believe this approach is better the Emby or Plex approach which is to transcode on demand.
Martin
To solve this issue on recordings I suggest using one of the following two choices to remux from ts to mp4 in PostProcessing.bat. The Roku client will automatically use an mp4 file when found and the resume position is shared with the TS file in other clients.
Code:
"C:\Program Files\NextPVR\Other\ffmpeg.exe" -i %1 -vcodec copy -acodec copy -c:s copy -f matroska -| "C:\Program Files\NextPVR\Other\ffmpeg.exe" -i pipe: -codec copy -movflags faststart -y "%~dpn1.mp4"
or
"C:\Program Files\NextPVR\Other\ffmpeg.exe" -fflags +genpts -i %1 -movflags faststart -vcodec copy -acodec copy -c:s copy "%~dpn1.mp4"
or in Linux
Code:
ffmpeg -i "$1" -vcodec copy -acodec copy -c:s copy -f matroska -| ffmpeg -i pipe: -codec copy -movflags faststart -y "${1%.*}.mp4"
or
ffmpeg -fflags +genpts -i "$1" -vcodec copy -acodec copy -c:s copy -movflags faststart "${1%.*}.mp4"
If your Roku is not AC3 compatible you will not only need to remux you will need to transcode to change -acodec copy to -acodec aac -ac 2
There are more sophisticated options but these give a good start for Roku users. I believe this approach is better the Emby or Plex approach which is to transcode on demand.
Martin