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 … 4 5 6 7 8 … 102 Next »
Deleting recordings leaves .MP4 files

 
  • 0 Vote(s) - 0 Average
Deleting recordings leaves .MP4 files
ronsfsd
Offline

Junior Member

US
Posts: 5
Threads: 1
Joined: Feb 2025
#1
2025-02-19, 05:47 PM
Hi Everyone

New user here. 
I was able to get almost everything working.  I am recording on a Win10 box, using NPVR ver7.0.1.241229, using a Schedules Direct trial, and I watch the recordings primarily on my DLNA capable TV and/or Roku.

First of all - THANK YOU to all that make this system possible!
I was a TVmosaic user until it pulled the plug on me a few years ago.  I don't recall if I tried NPVR at the time.  I think I did, but I ran into something that lead me to abandon the idea until now.  It may have been the inability (at the time) to transcode to .mp4 automagically.  (Necessary for Win10 DLNA server to stream the files.)

Anyway - moving on...
The one thing I have left to figure out is related to my transcoded (720p) .mp4 files.  (Sorry if I have missed something, but a couple forum searches revealed nothing.)

This one last issue is that the system will delete my recording files (.TS and others) when I click the delete link - HOWEVER, it leaves the .mp4 files.
I looked in the log files, but I didn't find anything when I searched for ".MP4".
While not a huge deal, it does then require me to regularly and manually delete those files to avoid running out of disk space.
Thoughts?

Thanks, R
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,172
Threads: 958
Joined: May 2006
#2
2025-02-19, 05:54 PM
If you are leaving NextPVR with the ts you can add mp4 to this list in config.xml

<DeleteAdditionalExtensions>srt,txt,log,d2a,edl,csv,bat,wme,vprj,logo.txt,dvbsub,sm,xml,ts.map,m3u8,timing,thumbnail</DeleteAdditionalExtensions>

Optionally you can update the file in the database to use the mp4 file instead of the ts file and delete the ts file at the start if you never use it.

Martin
ronsfsd
Offline

Junior Member

US
Posts: 5
Threads: 1
Joined: Feb 2025
#3
2025-02-19, 07:11 PM
(2025-02-19, 05:54 PM)mvallevand Wrote: If you are leaving NextPVR with the ts you can add mp4 to this list in config.xml

    <DeleteAdditionalExtensions>srt,txt,log,d2a,edl,csv,bat,wme,vprj,logo.txt,dvbsub,sm,xml,ts.map,m3u8,timing,thumbnail</DeleteAdditionalExtensions>

Optionally you can update the file in the database to use the mp4 file instead of the ts file and delete the ts file at the start if you never use it.

Martin

Thanks Martin

I gave that a try.  Actually, I tried three different recordings to make sure...
Even after restarting the service - same result (the .MP4 file remains after clicking the delete link).

Here is my config.xml "DeleteAdditionalExtensions" line:
<DeleteAdditionalExtensions>srt,txt,log,d2a,edl,csv,bat,wme,vprj,logo.txt,dvbsub,sm,xml,map,m3u8,thumbnails,timing,mp4</DeleteAdditionalExtensions>

Here is the snippet from the LOG file showing the last attempt.  Notice, no attempt to delete the .MP4.
2025-02-19 13:03:08.301 [DEBUG][75] Got request [::1]: /services/service (recording.delete)
2025-02-19 13:03:08.301 [DEBUG][75] parameters:
2025-02-19 13:03:08.302 [DEBUG][75]   method: recording.delete
2025-02-19 13:03:08.302 [DEBUG][75]   recording_id: 1030
2025-02-19 13:03:08.302 [DEBUG][75]   format: json
2025-02-19 13:03:08.302 [DEBUG][75]   sid: 7e1c5516-80c0-4d63-9fa0-92277a0d7aa0
2025-02-19 13:03:08.302 [DEBUG][75]   client_ip: ::1
2025-02-19 13:03:08.302 [DEBUG][75]   client_local: true
2025-02-19 13:03:08.303 [DEBUG][75]   user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0
2025-02-19 13:03:08.303 [DEBUG][75]   host_callback: ...
2025-02-19 13:03:08.303 [DEBUG][75] DeleteRecording
2025-02-19 13:03:08.304 [DEBUG][75] Requesting deletion of (1030): C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.ts
2025-02-19 13:03:08.304 [DEBUG][75] DeleteRecording(1030)
2025-02-19 13:03:08.304 [DEBUG][75] DeleteRecording@1
2025-02-19 13:03:08.305 [DEBUG][75] -removing: C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.ts
2025-02-19 13:03:08.644 [DEBUG][75] DeleteRecording@2
2025-02-19 13:03:08.656 [DEBUG][75] -removing: C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.xml
2025-02-19 13:03:08.657 [DEBUG][75] -removing: C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.thumbnails
2025-02-19 13:03:08.658 [DEBUG][75] -removing: C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.timing
2025-02-19 13:03:08.666 [DEBUG][75] PlaybackPositionHelper.DeletePlaybackPosition(C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.ts)
2025-02-19 13:03:08.675 [DEBUG][75] DeleteRecording@5
2025-02-19 13:03:08.675 [DEBUG][75] DeleteRecording@exit
2025-02-19 13:03:08.675 [DEBUG][75] {"stat":"ok"}

R
ronsfsd
Offline

Junior Member

US
Posts: 5
Threads: 1
Joined: Feb 2025
#4
2025-02-19, 07:19 PM
(2025-02-19, 07:11 PM)ronsfsd Wrote:
(2025-02-19, 05:54 PM)mvallevand Wrote: If you are leaving NextPVR with the ts you can add mp4 to this list in config.xml

    <DeleteAdditionalExtensions>srt,txt,log,d2a,edl,csv,bat,wme,vprj,logo.txt,dvbsub,sm,xml,ts.map,m3u8,timing,thumbnail</DeleteAdditionalExtensions>

Optionally you can update the file in the database to use the mp4 file instead of the ts file and delete the ts file at the start if you never use it.

Martin

Thanks Martin

I gave that a try.  Actually, I tried three different recordings to make sure...
Even after restarting the service - same result (the .MP4 file remains after clicking the delete link).

Here is my config.xml "DeleteAdditionalExtensions" line:
<DeleteAdditionalExtensions>srt,txt,log,d2a,edl,csv,bat,wme,vprj,logo.txt,dvbsub,sm,xml,map,m3u8,thumbnails,timing,mp4</DeleteAdditionalExtensions>

Here is the snippet from the LOG file showing the last attempt.  Notice, no attempt to delete the .MP4.
2025-02-19 13:03:08.301 [DEBUG][75] Got request [::1]: /services/service (recording.delete)
2025-02-19 13:03:08.301 [DEBUG][75] parameters:
2025-02-19 13:03:08.302 [DEBUG][75]   method: recording.delete
2025-02-19 13:03:08.302 [DEBUG][75]   recording_id: 1030
2025-02-19 13:03:08.302 [DEBUG][75]   format: json
2025-02-19 13:03:08.302 [DEBUG][75]   sid: 7e1c5516-80c0-4d63-9fa0-92277a0d7aa0
2025-02-19 13:03:08.302 [DEBUG][75]   client_ip: ::1
2025-02-19 13:03:08.302 [DEBUG][75]   client_local: true
2025-02-19 13:03:08.303 [DEBUG][75]   user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0
2025-02-19 13:03:08.303 [DEBUG][75]   host_callback: ...
2025-02-19 13:03:08.303 [DEBUG][75] DeleteRecording
2025-02-19 13:03:08.304 [DEBUG][75] Requesting deletion of (1030): C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.ts
2025-02-19 13:03:08.304 [DEBUG][75] DeleteRecording(1030)
2025-02-19 13:03:08.304 [DEBUG][75] DeleteRecording@1
2025-02-19 13:03:08.305 [DEBUG][75] -removing: C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.ts
2025-02-19 13:03:08.644 [DEBUG][75] DeleteRecording@2
2025-02-19 13:03:08.656 [DEBUG][75] -removing: C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.xml
2025-02-19 13:03:08.657 [DEBUG][75] -removing: C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.thumbnails
2025-02-19 13:03:08.658 [DEBUG][75] -removing: C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.timing
2025-02-19 13:03:08.666 [DEBUG][75] PlaybackPositionHelper.DeletePlaybackPosition(C:\Users\dvr\Videos\TCT Today\TCT Today_20250219_12001230.ts)
2025-02-19 13:03:08.675 [DEBUG][75] DeleteRecording@5
2025-02-19 13:03:08.675 [DEBUG][75] DeleteRecording@exit
2025-02-19 13:03:08.675 [DEBUG][75] {"stat":"ok"}

R

After looking at the LOG a little more, I see that there are two "." in the filename.  Maybe the system is seeing the extension as "temp.mp4" instead of just .mp4.  (?)

Trying another extension in the config.xml line:
    <DeleteAdditionalExtensions>srt,txt,log,d2a,edl,csv,bat,wme,vprj,logo.txt,dvbsub,sm,xml,map,m3u8,thumbnails,timing,mp4,temp.mp4</DeleteAdditionalExtensions>
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,172
Threads: 958
Joined: May 2006
#5
2025-02-19, 09:47 PM
Since the transcoded mp4 file is actually named .temp.mp4 that seems like the best approach, not sure why sub does that? It's actually kind of annoying

Martin
ronsfsd
Offline

Junior Member

US
Posts: 5
Threads: 1
Joined: Feb 2025
#6
2025-02-19, 10:23 PM
(2025-02-19, 09:47 PM)mvallevand Wrote: Since the transcoded mp4 file is actually named .temp.mp4 that seems like the best approach, not sure why sub does that?  It's actually kind of annoying

Martin

Unfortunately, adding "temp.mp4" to the XML line didn't help.

It appears that some of the recordings get saved to files with multiple "."s in the name, and other recordings get saved with multiple "_"s in the name.
I haven't been able to recreate the "_" scenario yet, but I definitely remember seeing the "_"s.

I guess I'll just have to live with it this way for now.  Let me know if you (or anyone else in the audience) has any additional ideas.

Thanks Martin.

R
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,172
Threads: 958
Joined: May 2006
#7
2025-02-19, 10:47 PM
There is a bug in the logic stopping things from completing that's why I wanted to see your logs. You probably are seeing what I see here, sub's assumption about how long it takes to create the thumbs is optimistic.

If you don't use NextPVR clients you can turn off thumbnail and timing extraction in config.xml and it probably will work as expected as an mp4 file.

Code:
2025-02-19 16:45:00.273    [DEBUG][170]    StreamableConverter(C:\Users\Public\Videos\SpongeBob SquarePants\Season 03\SpongeBob.SquarePants.S03E12.Club.SpongeBob;.My.Pretty.Seahorse.ts)..
2025-02-19 16:45:00.274    [DEBUG][170]    Will convert to MP4
2025-02-19 16:45:00.306    [DEBUG][144]    downloader terminating
2025-02-19 16:45:00.338    [DEBUG][104]    Reached end of in-progress recording. Dropping connection.
2025-02-19 16:45:00.369    [DEBUG][104]    Sent total of 49011600 bytes
2025-02-19 16:45:00.378    [DEBUG][135]    timing closed
2025-02-19 16:45:00.938    [DEBUG][170]    source VideoCodec: avc (1280x720)
2025-02-19 16:45:00.938    [DEBUG][170]    source AudioCodec: aac
2025-02-19 16:45:00.938    [DEBUG][170]    Converting to streamable using: "D:\v8\programs\Other\ffmpeg.exe" -y  -i "C:\Users\Public\Videos\SpongeBob SquarePants\Season 03\SpongeBob.SquarePants.S03E12.Club.SpongeBob;.My.Pretty.Seahorse.ts" -ignore_unknown -sn -fflags +genpts -movflags faststart -codec:v copy  -codec:a copy "C:\Users\Public\Videos\SpongeBob SquarePants\Season 03\SpongeBob.SquarePants.S03E12.Club.SpongeBob;.My.Pretty.Seahorse.temp.mp4"
2025-02-19 16:45:01.181    [DEBUG][170]    streamable conversion completed: "C:\Users\Public\Videos\SpongeBob SquarePants\Season 03\SpongeBob.SquarePants.S03E12.Club.SpongeBob;.My.Pretty.Seahorse.temp.mp4"
2025-02-19 16:45:01.950    [ERROR][170]    Unexpected error in StreamableConverter: System.IO.IOException: The process cannot access the file because it is being used by another process.
   at System.IO.FileSystem.MoveFile(String sourceFullPath, String destFullPath, Boolean overwrite)
   at NShared.Streaming.StreamableConverter.Child_Exited(Object sender, EventArgs e)
2025-02-19 16:45:02.952    [INFO][170]    AutoTranscode complete C:\Users\Public\Videos\SpongeBob SquarePants\Season 03\SpongeBob.SquarePants.S03E12.Club.SpongeBob;.My.Pretty.Seahorse.ts
2025-02-19 16:45:08.378    [DEBUG][11]    No longer active
ronsfsd
Offline

Junior Member

US
Posts: 5
Threads: 1
Joined: Feb 2025
#8
2025-02-20, 11:52 AM
Another followup to the topic...
I finally ran across a couple shows that recorded using "_"s in the file name instead of "."s. With the updated config.xml line mentioned above (and below), the .mp4 files actually DO get deleted.
<DeleteAdditionalExtensions>srt,txt,log,d2a,edl,csv,bat,wme,vprj,logo.txt,dvbsub,sm,xml,map,m3u8,thumbnails,timing,mp4,temp.mp4</DeleteAdditionalExtensions>
So, it would seem that file naming/renaming has something to do with the issue.
Thanks you Martin for all of your attention to the matter. For now, I am not sure what else I can report. Let me know if there is.

R
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,172
Threads: 958
Joined: May 2006
#9
2025-02-20, 04:53 PM (This post was last modified: 2025-02-20, 04:53 PM by mvallevand.)
The logs would explain what is happening, i still figure timing if you have temp.mp4 files. The only time an underscore might be added to a filename is if the show uses a character not allowed for filenames.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Recent recordings contain several corrupt data VanKuiSh 3 171 2025-07-07, 04:55 PM
Last Post: mvallevand
  Since v7: EPG mostly "no listings", and channels change during recordings :'( rightbryce 40 4,493 2025-06-23, 01:15 AM
Last Post: sub
  Series Recordings - Bug? MalcolmInman 32 1,452 2025-05-31, 01:52 AM
Last Post: mvallevand
  Pending recordings not showing in web interface and NextPVR gadget not working... henryixV 4 428 2025-05-27, 08:29 PM
Last Post: henryixV
  Failed recordings "Operation timed out" Stanno 8 632 2025-04-27, 07:26 PM
Last Post: Nick017
  Can't delete scheduled recordings Druhl 3 292 2025-04-22, 09:10 PM
Last Post: mvallevand
  Manual Recurring Recordings jcole998 3 302 2025-04-17, 09:10 PM
Last Post: mvallevand
  NPVR Windows recordings folder cleanup.... Colincam 21 3,499 2025-04-16, 07:38 PM
Last Post: mvallevand
  Portions of recordings are missing MovieBuff 6 606 2025-04-14, 03:15 PM
Last Post: MovieBuff
  Recordings not displaying Jakesty 4 377 2025-04-12, 01:15 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