mconnect icon indicating copy to clipboard operation
mconnect copied to clipboard

Failed to send .mp4 video file from PC to phone.

Open amitbha opened this issue 5 years ago • 3 comments

Execute mconnectctl share-file /org/mconnect/device/0 /tmp/download/八段锦.mp4

Got this error:

** (mconnectctl:13429): CRITICAL **: 11:35:54.691: file ../src/mconnectctl/main.vala: line 79: unexpected error: Invalid byte sequence in conversion input (g_convert_error, 1)

Change the filename to 7.mp4, and the transfer finished successfully but I can't find the video file in the phone. The last messages of mconnect -d is:

** (mconnect:12259): DEBUG: 11:28:30.475: transfer-upload.vala:115: progress: 38.3 MB/38.3 MB 99% ** (mconnect:12259): DEBUG: 11:28:30.476: transfer-upload.vala:115: progress: 38.3 MB/38.3 MB 100% ** (mconnect:12259): DEBUG: 11:28:30.476: io-job.vala:64: transfer done, got 38.3 MB bytes ** INFO: 11:28:30.476: transfer-upload.vala:127: transfer finished ** (mconnect:12259): DEBUG: 11:28:30.476: transfer-upload.vala:130: transfer done, got 38.3 MB ** (mconnect:12259): DEBUG: 11:28:30.486: transfer-proxy.vala:45: unregister transfer at path /org/mconnect/transfer/0

So,

  1. Hope mconnectctl can support Unicode filenames with multi-byte characters.
  2. Why failed to save video file to phone? Is it a problem of kde-connect app?

amitbha avatar Feb 11 '20 04:02 amitbha

--- a/src/mconnectctl/main.vala
+++ b/src/mconnectctl/main.vala
@@ -59,6 +59,8 @@ namespace Mconnect {
         private delegate int CommandFunc (string[] args);
 
         public static int main (string[] args) {
+            Intl.setlocale(LocaleCategory.ALL, "");
+            
             try {
                 var opt_context = new OptionContext ();
                 opt_context.set_description (

amitbha avatar Mar 02 '20 10:03 amitbha

This issue describes a problem when sending bigger files (file does not appear on the phone) this can be solved with https://github.com/grimpy/mconnect/commit/0b51ff34c45930ec4c154b9185fe27dabac336d8

grimpy avatar Jun 07 '21 21:06 grimpy