Commit graph

29 commits

Author SHA1 Message Date
Joshua M. Boniface
e58df24e7f Use consistent logger function naming 2020-02-26 18:26:00 -05:00
Joshua M. Boniface
fe91730d56 Fix typo in error output 2020-02-26 16:35:09 -05:00
Joshua M. Boniface
72a1da23a7 Clean up handling of stdout/stderr/stdin 2020-02-23 23:56:24 -05:00
Joshua M. Boniface
e431c4072b Remove the SSH pseudoterminal
This caused some issues with ffprobe if the remote command ever sends
something to stderr (which then gets sent to stdout locally, causing
format issues).

However, from some testing, this was original though needed to ensure
the 'q' sent to FFmpeg was sent directly over the pipe, but this seems
to not be required (any longer?).
2020-02-23 23:54:12 -05:00
Joshua M. Boniface
f83ab6de74 Major revamp fixing some bugs
From top to bottom:
1. Use dict comprehension instead of try/catch
2. Never output anything to stdout; this breaks Jellyfin's parsing
3. Print more helpful debug messages including PID
4. Fix broken handling of full command paths vs. basenames
5. Use stdout=stdout for ffprobe
6. Only quote arguments that need it (bad shell chars)
2020-02-08 03:22:18 -05:00
Joshua M. Boniface
d664e8c766 Include encoders/decoders strings in stdout fix 2020-02-08 02:19:04 -05:00
Joshua M. Boniface
6a62ae4c83 Revert "Remove bad workaround with stdout"
This reverts commit 750461620e.
2020-02-08 02:17:14 -05:00
Joshua M. Boniface
750461620e Remove bad workaround with stdout
Not needed and breaks encoding parameter selection.
2020-02-08 02:07:15 -05:00
Joshua M. Boniface
48b9741af5 Update README with new setup information 2020-02-08 00:35:43 -05:00
Joshua M. Boniface
022334e1e9 Fix stdout/stderr when running -version 2020-02-05 20:16:09 -05:00
Joshua Boniface
e88f6f5bdc Add nice output code message 2019-11-13 11:35:11 -05:00
Joshua Boniface
487e18edf1 Add file logging support 2019-11-13 11:14:53 -05:00
Joshua Boniface
6751b41e6a Debug to stdout instead of stderr
The output of this script is backwards, since Jellyfin captures the
stderr for its own processing instead of the stdout.
2019-11-13 11:03:51 -05:00
Joshua Boniface
bb3ad49db0 Mention NFS tuning options 2019-11-02 17:47:04 -04:00
Joshua Boniface
a142f48821 Set output of subprocess to stderr
Required otherwise Jellyfin doesn't pick up the output properly.
2019-11-02 16:24:47 -04:00
Joshua Boniface
9e5235a9fc Add default SSH arguments as example 2019-10-19 19:11:11 -04:00
Joshua Boniface
773c5d032c Set nicer comments and defaults 2019-10-19 19:10:03 -04:00
Joshua Boniface
7f6a519d1c Remove unneeded imports 2019-10-19 19:06:02 -04:00
Joshua Boniface
65e4bfbccc Mention UID compatibility 2019-10-19 19:01:49 -04:00
Joshua Boniface
01f1ceebba Add section on hosts selection to README 2019-10-19 18:50:03 -04:00
Joshua Boniface
df28fce595 Improve clarity in README 2019-10-19 18:43:23 -04:00
Joshua Boniface
251b6be574 Fix typo in readme 2019-10-19 18:42:08 -04:00
Joshua Boniface
d6d797622c Properly support ffprobe mode too 2019-10-19 18:33:43 -04:00
Joshua Boniface
94cebebfb5 Mention SSH key acceptance and testing command 2019-10-19 18:20:36 -04:00
Joshua Boniface
62d192a9ce Nicer comment on ffmpeg path 2019-10-19 18:18:00 -04:00
Joshua Boniface
41eb400bb0 Use proper arg layout 2019-10-19 18:15:14 -04:00
Joshua Boniface
7e03fad19f Mention dependencies 2019-10-19 18:13:00 -04:00
Joshua Boniface
f317fd6ef7 Add README 2019-10-19 18:10:05 -04:00
Joshua Boniface
c5e00fcb51 Add initial rffmpeg 2019-10-19 17:54:20 -04:00