As title, whatever I use, 720, 1080 I still get .ts files.
Please see logs.
Please see logs.
2024-01-09, 02:18 PM
(This post was last modified: 2024-01-09, 02:20 PM by mvallevand.)
I think I understand your issue, cancelled recordings are not processed. Otherwise I only saw two recordings complete correctly today and neither were set to mp4
2024-01-09 07:35:23.243 [DEBUG][3] Setting '/Settings/Recording/AutoTranscode' to 'none' 2024-01-09 07:49:00.205 [DEBUG][10] Stopping recording (8802 on 45). Past end time of recording. 1 2024-01-09 11:21:06.427 [DEBUG][23] Setting '/Settings/Recording/AutoTranscode' to '1080p' 2024-01-09 11:39:00.088 [DEBUG][10] Stopping recording (8809 on 45). Past end time of recording. 8 Since you are an IPTV user do you really want to transcode and potential upconvert files to have an mp4 container? Most IPTV is in a good format already. If you want an mp4 container a simple remux would be better IMO and you can do that in PostProcessing.bat or PostCancel.bat if you cancel a lot of recordings early. Martin
2024-01-09, 07:17 PM
Thanks, I see now where the confusion has arisen, under the dropdown list of Transcode, there is a second 1080 at the bottom with ".mp4". And I've just seen it take 70 minutes at full CPU to transcode a 20 minute 1.5GB .ts file into a 500MB mp4. I wont be doing that again! I was hoping the recording would simply be saved adhoc, on the fly as a mp4 file instead of .ts. Uploading a .ts file to Google Drive. can't then be streamed from Drive, nor can a .ts file play natively on a Galaxy phone, it needs thrid party software. Guess I'm stuck with .ts files and using just Plex.
2024-01-09, 07:28 PM
(This post was last modified: 2024-01-11, 12:45 PM by mvallevand.)
No mp4 containers can't be streamed or created live.
I suggested adding something to your PostProcessing.bat file, try this. Code: "C:\Program Files\NextPVR\Other\ffmpeg.exe" -i %1 -movflags faststart -vcodec copy -acodec copy -c:s copy "%~dpn1.mp4" it should create an mp4 from your ts file. Hopefully as a faststart file you won't need to download the whole thing. Your server is extremely slow too, Plex won't be able to magically transcode faster. Phones should be able to play h264/aac from your IPTV server without transcoding anyway, so NextPVR clients for the phone should also work. Martin
2024-01-10, 08:08 AM
Good morning. I'm eager to try your suggestion, of editing this PostProcessing.bat file and adding your code at the end. But I'm unable it seems to locate this .bat file, I think I've opened every NextPVR folder in C:\Program Files\NextPVR and Users\Public\NPVR, I've also ticked "unhidden files" but still no joy. I must be denser than I had originally thought. Using Windows search isn't helpful either, "PostProcessing.bat", "<PostProcessing.bat>", "PostProcessing", etc etc Can you tell me where I need to look please.
2024-01-10, 09:26 AM
It doesn't exist by default you have to create it https://github.com/sub3/NextPVR/wiki/Scripts
Martin
Hi Martin, without wishing to waste too much of your time, could you give a little more guidance please.
I've read the Wiki, downloaded the script examples files, unzipped the PostProcessing.bat example file regarding GBPVR. Where do I place the code you gave me? Do I simply delete everything in the example file and replace with.. @echo off "C:\Program Files\NextPVR\Other\ffmpeg.exe" %1 -movflags faststart -vcodec copy -acodec copy -c copy "%~dpn1.mp4" Then save it in the sripts folder of NextPVR?
2024-01-11, 12:45 PM
Yes, but I don't know you don't just create the file PostProcessing.bat with the line I gave you
I left the @echo off so that the logs showed what is going on. Once it is working you will want to add a few more things so the logs aren't full of extra info. Code: @echo off
2024-01-11, 03:17 PM
The first time it ran, it worked great, I had two 30 min files, one .ts, one .mp4. I couldn't believe how easy and fast it was.. But just as I started investigating gettng the .ts file to auto delete, I'm not entirely sure what happened, but the .mp4 file keeps breaking now. tried multiple 15 minute shows.
@echo off "C:\Program Files\NextPVR\Other\ffmpeg.exe" -v quiet -i %1 -movflags faststart -vcodec copy -acodec copy -c copy "%~dpn1.mp4" Can you check my logs, try to see whats up please.
2024-01-11, 03:30 PM
(This post was last modified: 2024-01-11, 03:31 PM by mvallevand.)
It looks like there is something wrong with the source file, garbage in garbage. Does the ts file play ok?
If it plays maybe try from the command line first and figure out how to skip the initial problems in the file with -analyzeduration and -probesize parameters. I don't help debug ffmpeg. It will be pretty fast once it is working even if it is two passes. Martin |
|