NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Docker amd64 v
« Previous 1 2 3 4 5 … 9 Next »
Can't get postprocessing.sh to run

 
  • 0 Vote(s) - 0 Average
Can't get postprocessing.sh to run
themarf
Offline

Junior Member

USA
Posts: 8
Threads: 2
Joined: May 2024
#1
2024-11-01, 02:14 PM (This post was last modified: 2024-11-01, 02:18 PM by themarf.)
Hi All, having a minor issue with recorded files not playing correctly in plex or VLC, it seems pretty hit or miss.  I've talked a a few others with similar recording setup they found that utilizing postprocessing to remux to .mp4 solved almost every issue with file lengths showing something like 1d 4h and the quick ffmpeg corrects the timestamp issues.

I've setup postprocessing.sh abut I cannot figure out how to make it run.  I'm not great with docker or linux but a generic suggestion I found was to make sure it was executable with chmod -x, which I did.  I tried using chatgpt to help me figure out how to manually run the script on a file, but I can't get that to work either.  I tried adding an echo to the script to generate a log file which is was leads me to believe it's not running as it's not created.

TL;DR: I've spent like 90 minutes trying to get this to run, it's probably a stupid error and I can't for the life of me figure it out.

Docker settings showing config mapping.
[Image: Is4NmZ5.png]

Location of postprocessing.sh
[Image: Gncf8th.png]
themarf
Offline

Junior Member

USA
Posts: 8
Threads: 2
Joined: May 2024
#2
2024-11-01, 02:15 PM (This post was last modified: 2024-11-01, 02:18 PM by themarf. Edit Reason: attachment attempt 5,672 )
postprocessing.sh attached

edit: for some reason the text file doesn't want to attach...contents of postprocessing.sh

#!/bin/bash
echo "Post-processing started for file: $1" >> /config/scripts/postprocessing.log
ffmpeg -fflags +genpts -i "$1" -vcodec copy -acodec copy -cConfused copy -movflags faststart "${1%.*}.mp4" >> /config/scripts/postprocessing.log 2>&1
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,107
Threads: 957
Joined: May 2006
#3
2024-11-01, 02:19 PM
Attachments need to be zipped.

You probably need to post the logs but not that Linux is case sensitive so that probably should be PostProcessing.sh your screen shot didn't show +x

Martin
themarf
Offline

Junior Member

USA
Posts: 8
Threads: 2
Joined: May 2024
#4
2024-11-18, 02:41 PM
For some reason my comment a few days ago didn't post. Was away on vacation.

Flipping to PostProcessing.sh was the trick. I also made a copy of it named PostCancel.sh to make it easier to test that it was running.

Thanks for the help as usual Martin
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Docker postprocessing script aTF6i 12 1,245 2024-11-17, 01:17 AM
Last Post: aTF6i
  PostProcessing.sh not being invoked vintdiesel 3 2,203 2019-07-30, 08:46 PM
Last Post: vintdiesel

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

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

Linear Mode
Threaded Mode