R3dByt3 / PanasonicSync

A GUI tool for syncing movies from a panasonic device
GNU General Public License v3.0
1 stars 0 forks source link

nuget package error #1

Open AMT-Cheif opened 5 months ago

AMT-Cheif commented 5 months ago

Hello, I'm trying o compile it but I get many nuget packages error, Can you help me? CAn you explain how it work?

R3dByt3 commented 5 months ago

Hi @AMT-Cheif,

sorry for the late reply. When I built this software I was so naive to think ppl. might wanna buy this software, but that didn't quite work as expected. Thats the reason why you cannot build it too, bcs it has (intended) local dependencies. I'm even not quite sure, if I can still build this software since it was running for ever with just minor issues.

Feel free to use this build I have just zipped from my local machine: https://www.dropbox.com/scl/fi/sqwawkomx3q93tj5u8qht/PanasonicSync.zip?rlkey=7dyfwu0mjvnbii4ugnznh2dfp&dl=0

Currently there are 2 or 3 known bugs:

  1. The FFmpeg download page has shut down and the app does not auto update ffmpeg anymore
  2. The configured timeout for UPNP detection feels somewhat flaky. (Idk if it works as expected)
  3. From time to time windows services interfere with the UPNP broadcast:
    • In this case shut down the windows service "SSDP-Search"
    • Or try the cmd commands: -- "net stop hns" -- "net start hns"

If you want you can update the ffmpeg binaries within the bin folder from time to time; This tool also compares movie names of already synced movies by percentage of similarity (I think it was something like 90%).

If you want to modify this tool I would recommend to rewrite this tools to be up to date with dependencies and framework versions.

The important parts are: UpnpClient/Client.cs (UPNP device detection in network [does not support all VPNs as I know now ^^']) APIClient/Panasonic/PanasonicClient.cs (REST-like XML communication part for the panasonic device)

Also here you can find the "handy" ffmpeg wrapper (probably also needs refactoring etc.): https://www.dropbox.com/scl/fi/5kusblmm5926ufvwqpzr3/FFmpegStandardWrapper.zip?rlkey=iyn8s6vd77mhm9amqdt7ckrnb&dl=0

AMT-Cheif commented 4 months ago

It does not work with local folder right? when it can't find the network it ask me to retry or close. Asked because I have not a NAS, and my DRM EX773 does not have a lan port.

R3dByt3 commented 4 months ago

It works with local folders and network folders as well. There should be no issue at all since its just using System.IO.

Also I developed this tool for the model: "DMR-BST740/745" => Sadly I cannot promise that it works for others too, but that would be nice to know.

"When it can't find the network it ask me to retry or close." => Have you already tried point nr. 3 from my previous response or are there any unclear instructions? As I said already this UPNP communication was flaky from time to time and by that hard to analyse. However these fixes from above could resolve the issues when they occured.

The retry or close message simply tells you, that no device in the network did respond in time to the UPNP broadcast message; From what I figured out back in these days, I had to send a magic string via broadcast in the network and UPNP devices would pick up on that and respond to this message. Afterwards only a simple REST like communication was required in order to get the movie list.

Alternatively we could take a look in the log files. You can find these under: C:\Users\\Documents\PanasonicSync\Logs

Also please consider: At least for my device I also figured out, that it can handle always only 1 task at a time; That means that it can either record a movie or stream a movie to a single device; Multiple streams / records or both at once are not possible and lead to communication issues!