NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 17 18 19 20 21 … 102 Next »
Unable to transcode into .mp4

 
  • 0 Vote(s) - 0 Average
Unable to transcode into .mp4
stat
Offline

Junior Member

uk
Posts: 14
Threads: 3
Joined: Sep 2023
#1
2024-01-09, 01:50 PM (This post was last modified: 2024-01-09, 01:51 PM by stat.)
As title, whatever I use, 720, 1080 I still get .ts files.
Please see logs.


Attached Files
.zip   logs-20240109-1449.zip (Size: 1.55 MB / Downloads: 3)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#2
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
stat
Offline

Junior Member

uk
Posts: 14
Threads: 3
Joined: Sep 2023
#3
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.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#4
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
stat
Offline

Junior Member

uk
Posts: 14
Threads: 3
Joined: Sep 2023
#5
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.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#6
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
stat
Offline

Junior Member

uk
Posts: 14
Threads: 3
Joined: Sep 2023
#7
2024-01-11, 11:53 AM (This post was last modified: 2024-01-11, 11:55 AM by stat.)
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 -cConfused copy "%~dpn1.mp4"

Then save it in the sripts folder of NextPVR?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#8
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
"C:\Program Files\NextPVR\Other\ffmpeg.exe" -v quiet -i %1 -movflags faststart -vcodec copy -acodec copy -c:s copy  "%~dpn1.mp4"
stat
Offline

Junior Member

uk
Posts: 14
Threads: 3
Joined: Sep 2023
#9
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 -cConfused copy  "%~dpn1.mp4"
Can you check my logs, try to see whats up please.


Attached Files
.zip   logs-20240111-1613.zip (Size: 838.25 KB / Downloads: 1)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#10
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
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Installed V7 - unable to record. Dave48167 6 474 2025-05-11, 08:02 PM
Last Post: Dave48167
  Unable to delete recording. File may be in use. seattlefog 24 1,192 2025-04-13, 01:08 AM
Last Post: sub
  What's the link between Preferred Streaming Profile and config.xml Transcode Profile? aderlopas 5 2,273 2025-03-10, 07:52 AM
Last Post: mmortal03
  Unable to login web interface JohnySmith1010 8 835 2025-02-19, 08:34 PM
Last Post: JohnySmith1010
  Recording Auto Transcode Problem and HDHR Viewing Problems in v7 Metroid 8 1,195 2024-12-06, 04:42 AM
Last Post: mvallevand
  not able to play recording in client after transcode millertinymouse 5 847 2024-04-26, 01:56 AM
Last Post: millertinymouse
  Unable to connect to remote server Brucek2839 18 2,288 2024-04-05, 02:33 PM
Last Post: mvallevand
  Unable to find some channels MaccaHV 12 1,492 2024-03-12, 04:25 AM
Last Post: sub
  Unable to access the server Brucek2839 3 619 2024-01-01, 03:31 PM
Last Post: mvallevand
  Unable to find available capture device - NextPVR Desktop App -Live TV rmarquar 4 1,068 2023-12-13, 05:42 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode