Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amitbha opened this issue Feb 11, 2020 · 3 comments · May be fixed by #65
Open

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

amitbha opened this issue Feb 11, 2020 · 3 comments · May be fixed by #65

Comments

@amitbha
Copy link

amitbha commented Feb 11, 2020

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
Copy link
Author

amitbha commented Mar 2, 2020

--- 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 (

@grimpy
Copy link

grimpy commented Jun 7, 2021

This issue describes a problem when sending bigger files (file does not appear on the phone) this can be solved with grimpy@0b51ff3

@cireu cireu linked a pull request Mar 24, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants