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 2 3 4 5 … 101 Next »
ffmpeg in postprocessing fails on spaces in filename

 
  • 0 Vote(s) - 0 Average
ffmpeg in postprocessing fails on spaces in filename
Druhl
Offline

Junior Member

USA
Posts: 22
Threads: 8
Joined: Feb 2025
#1
2025-03-29, 05:37 PM
Hi all.

This problem seems like something others must have come across before but I can't find a single discussion of it here.

I have postprocessing.bat calling a ffmpeg copy but it errors out on a path / filename with spaces. I have the "%1" in quotes but I guess after the %1 is expanded out to the passed path and filename, the quotes are lost, and ffmpeg fails...

Logs attached as well as my postprocessing.bat. I don't even know if the rest of it works, I can't get past passing the input file yet.  haha

There's an example of the failure in nrecord.log at 2025-03-29 12:25:00.184

Thanks for any suggestions!


Attached Files
.zip   logs-20250329-1332.zip (Size: 1.34 MB / Downloads: 3)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#2
2025-03-29, 05:48 PM
I don't support user scripts but I suggest the best thing to do is to look at the command line that NextPVR runs (it shows in the log)

Code:
C:\Users\Public\NPVR-data\scripts\PostProcessing.bat "X:\PVR\SPORTS\F1 Explained\F1 Explained Whats New In 2025_20250329_12151220.ts" 275 16458 43 "F1 Explained What's New In 2025"

and run that from the command line to see what the error is.

Martin
Druhl
Offline

Junior Member

USA
Posts: 22
Threads: 8
Joined: Feb 2025
#3
2025-03-29, 06:12 PM
Thanks for the prompt reply.

From the command line ffmpeg reports the exact same error as what's in nrecord.log:

2025-03-29 12:25:00.184 [DEBUG][115] Starting: C:\Users\Public\NPVR-data\scripts\PostProcessing.bat "X:\PVR\SPORTS\F1 Explained\F1 Explained Whats New In 2025_20250329_12151220.ts" 275 16458 43 "F1 Explained What's New In 2025"
<snip ffmpeg version reporting etc>
2025-03-29 12:25:00.772 [DEBUG][131] > [in#0 @ 000002b04654fcc0] Error opening input: No such file or directory
2025-03-29 12:25:00.772 [DEBUG][131] > Error opening input file X:\PVR\SPORTS\F1.
2025-03-29 12:25:00.772 [DEBUG][131] > Error opening input files: No such file or directory

It's failing once it encounters the first space in the expanded path/filename, even though I have the "%1" in quotes in the ffmpeg command line (postprocessing.bat was attached):

"C:\Program Files\ffmpeg\bin\ffmpeg" -i "%1" -c copy -f mpegts %1-temp.ts >> "C:\Users\Public\NPVR-data\logs\postprocess.log"

Is there something else I need to or can do to fix this? I think in essence I just have to be able to pass %1 from nextpvr to ffmpeg while preserving quotes around the expanded/substituted filename.

Thanks
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#4
2025-03-29, 06:25 PM (This post was last modified: 2025-03-29, 06:27 PM by mvallevand.)
OK, but why are you putting %1 in quotes in the first place? It will already by quoted.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  postprocessing tsduck on recordings Druhl 3 271 2025-03-07, 02:24 AM
Last Post: mvallevand
  Fails After a Few seconds The1nOnlyHMatt 8 392 2025-02-26, 09:14 PM
Last Post: mvallevand
  [FIXED!] NPVRSetup.exe fails to install the latest version Pete (NZ) 5 947 2024-12-27, 03:08 PM
Last Post: mvallevand
  Channel 10 AU IPTV Fails TheFonz 17 995 2024-11-11, 12:32 AM
Last Post: sub
  Help with PostProcessing.bat and Episode names TVHelp 3 333 2024-10-06, 10:16 PM
Last Post: mvallevand
  Login from other PC on LAN fails with "Login Failed" DWORD32 5 896 2023-10-28, 07:52 PM
Last Post: sub
  PostProcessing.bat, Can I do this? three6zerocool 15 1,929 2023-09-26, 11:39 AM
Last Post: three6zerocool
  ffmpeg output to NextPVR device stevepen1974 4 1,105 2023-08-20, 08:44 PM
Last Post: sub
  FFMPEG - Likely end of VOD Boots315 9 1,229 2023-06-26, 01:17 AM
Last Post: mvallevand
  PostProcessing.bat Boots315 6 1,054 2023-06-26, 01:08 AM
Last Post: Boots315

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

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

Linear Mode
Threaded Mode