How to play videos of my laptop in my android phone using ssh?












-1















I have installed ssh in both 'Ubuntu 18.04.2' and android phone(moto e4 plus).

Now I have connected remotely my laptop with my android phone.

Now I can control all the things with the android like editing file, creating files, rebooting, deleting etc.

But When I am trying to play videos of my laptop in my phone using the command--

COMMAND 1 :



mpv play.mp4


then it gives the error..

ERROR :




Playing: play.mp4
(+) Video --vid=1 () (vp9 1280x720 23.976fps)
(+) Audio --aid=1 --alang=eng (
) (opus 2ch 48000Hz)

Segmentation fault




Now I am trying to play same video with the another video player (smplayer) using the command

COMMAND 2 :



smplayer play.mp4


this time it gives different error




qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.




What's the problem ? How can i Play videos ?










share|improve this question


















  • 1





    Are you trying to stream the videos to your phone??? If so the short answer is no you can't use ssh to play video on your phone. SSH is a text based protocol. The no display error you're seeing is because you are running that command in that remote terminal session and it doesn't have a display it can use. For playing the videos on your laptop on your phone your best bet will be to use something like samba to setup a share and stream from there. To have things start on your laptop you'll most likely need to set the display parameter. Have a look here gerardnico.com/ssh/x11/display

    – rohtua
    10 hours ago






  • 1





    You need to run a player on the phone, and not on Ubuntu. Transferring uncompressed video frames over ssh will never work.

    – mikewhatever
    10 hours ago











  • @mikewhatever read question carefully.

    – Abhishek Kamal
    10 hours ago











  • @mikewhatever I already did commands in my android phone not in Ubuntu.

    – Abhishek Kamal
    10 hours ago











  • Ok, let's start again, the player must be installed and run on the phone. You can use a file manager on the phone to connect to Ubuntu via sftp(provided by ssh), then select a media file on Ubuntu remotely, and it will play on the phone. Typing commands on the phone keyboard does not ensure they run on the phone, this is ssh after all. Hope it is clear.

    – mikewhatever
    8 hours ago


















-1















I have installed ssh in both 'Ubuntu 18.04.2' and android phone(moto e4 plus).

Now I have connected remotely my laptop with my android phone.

Now I can control all the things with the android like editing file, creating files, rebooting, deleting etc.

But When I am trying to play videos of my laptop in my phone using the command--

COMMAND 1 :



mpv play.mp4


then it gives the error..

ERROR :




Playing: play.mp4
(+) Video --vid=1 () (vp9 1280x720 23.976fps)
(+) Audio --aid=1 --alang=eng (
) (opus 2ch 48000Hz)

Segmentation fault




Now I am trying to play same video with the another video player (smplayer) using the command

COMMAND 2 :



smplayer play.mp4


this time it gives different error




qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.




What's the problem ? How can i Play videos ?










share|improve this question


















  • 1





    Are you trying to stream the videos to your phone??? If so the short answer is no you can't use ssh to play video on your phone. SSH is a text based protocol. The no display error you're seeing is because you are running that command in that remote terminal session and it doesn't have a display it can use. For playing the videos on your laptop on your phone your best bet will be to use something like samba to setup a share and stream from there. To have things start on your laptop you'll most likely need to set the display parameter. Have a look here gerardnico.com/ssh/x11/display

    – rohtua
    10 hours ago






  • 1





    You need to run a player on the phone, and not on Ubuntu. Transferring uncompressed video frames over ssh will never work.

    – mikewhatever
    10 hours ago











  • @mikewhatever read question carefully.

    – Abhishek Kamal
    10 hours ago











  • @mikewhatever I already did commands in my android phone not in Ubuntu.

    – Abhishek Kamal
    10 hours ago











  • Ok, let's start again, the player must be installed and run on the phone. You can use a file manager on the phone to connect to Ubuntu via sftp(provided by ssh), then select a media file on Ubuntu remotely, and it will play on the phone. Typing commands on the phone keyboard does not ensure they run on the phone, this is ssh after all. Hope it is clear.

    – mikewhatever
    8 hours ago
















-1












-1








-1








I have installed ssh in both 'Ubuntu 18.04.2' and android phone(moto e4 plus).

Now I have connected remotely my laptop with my android phone.

Now I can control all the things with the android like editing file, creating files, rebooting, deleting etc.

But When I am trying to play videos of my laptop in my phone using the command--

COMMAND 1 :



mpv play.mp4


then it gives the error..

ERROR :




Playing: play.mp4
(+) Video --vid=1 () (vp9 1280x720 23.976fps)
(+) Audio --aid=1 --alang=eng (
) (opus 2ch 48000Hz)

Segmentation fault




Now I am trying to play same video with the another video player (smplayer) using the command

COMMAND 2 :



smplayer play.mp4


this time it gives different error




qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.




What's the problem ? How can i Play videos ?










share|improve this question














I have installed ssh in both 'Ubuntu 18.04.2' and android phone(moto e4 plus).

Now I have connected remotely my laptop with my android phone.

Now I can control all the things with the android like editing file, creating files, rebooting, deleting etc.

But When I am trying to play videos of my laptop in my phone using the command--

COMMAND 1 :



mpv play.mp4


then it gives the error..

ERROR :




Playing: play.mp4
(+) Video --vid=1 () (vp9 1280x720 23.976fps)
(+) Audio --aid=1 --alang=eng (
) (opus 2ch 48000Hz)

Segmentation fault




Now I am trying to play same video with the another video player (smplayer) using the command

COMMAND 2 :



smplayer play.mp4


this time it gives different error




qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.




What's the problem ? How can i Play videos ?







ssh smplayer mpv-media-player






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 11 hours ago









Abhishek KamalAbhishek Kamal

15211




15211








  • 1





    Are you trying to stream the videos to your phone??? If so the short answer is no you can't use ssh to play video on your phone. SSH is a text based protocol. The no display error you're seeing is because you are running that command in that remote terminal session and it doesn't have a display it can use. For playing the videos on your laptop on your phone your best bet will be to use something like samba to setup a share and stream from there. To have things start on your laptop you'll most likely need to set the display parameter. Have a look here gerardnico.com/ssh/x11/display

    – rohtua
    10 hours ago






  • 1





    You need to run a player on the phone, and not on Ubuntu. Transferring uncompressed video frames over ssh will never work.

    – mikewhatever
    10 hours ago











  • @mikewhatever read question carefully.

    – Abhishek Kamal
    10 hours ago











  • @mikewhatever I already did commands in my android phone not in Ubuntu.

    – Abhishek Kamal
    10 hours ago











  • Ok, let's start again, the player must be installed and run on the phone. You can use a file manager on the phone to connect to Ubuntu via sftp(provided by ssh), then select a media file on Ubuntu remotely, and it will play on the phone. Typing commands on the phone keyboard does not ensure they run on the phone, this is ssh after all. Hope it is clear.

    – mikewhatever
    8 hours ago
















  • 1





    Are you trying to stream the videos to your phone??? If so the short answer is no you can't use ssh to play video on your phone. SSH is a text based protocol. The no display error you're seeing is because you are running that command in that remote terminal session and it doesn't have a display it can use. For playing the videos on your laptop on your phone your best bet will be to use something like samba to setup a share and stream from there. To have things start on your laptop you'll most likely need to set the display parameter. Have a look here gerardnico.com/ssh/x11/display

    – rohtua
    10 hours ago






  • 1





    You need to run a player on the phone, and not on Ubuntu. Transferring uncompressed video frames over ssh will never work.

    – mikewhatever
    10 hours ago











  • @mikewhatever read question carefully.

    – Abhishek Kamal
    10 hours ago











  • @mikewhatever I already did commands in my android phone not in Ubuntu.

    – Abhishek Kamal
    10 hours ago











  • Ok, let's start again, the player must be installed and run on the phone. You can use a file manager on the phone to connect to Ubuntu via sftp(provided by ssh), then select a media file on Ubuntu remotely, and it will play on the phone. Typing commands on the phone keyboard does not ensure they run on the phone, this is ssh after all. Hope it is clear.

    – mikewhatever
    8 hours ago










1




1





Are you trying to stream the videos to your phone??? If so the short answer is no you can't use ssh to play video on your phone. SSH is a text based protocol. The no display error you're seeing is because you are running that command in that remote terminal session and it doesn't have a display it can use. For playing the videos on your laptop on your phone your best bet will be to use something like samba to setup a share and stream from there. To have things start on your laptop you'll most likely need to set the display parameter. Have a look here gerardnico.com/ssh/x11/display

– rohtua
10 hours ago





Are you trying to stream the videos to your phone??? If so the short answer is no you can't use ssh to play video on your phone. SSH is a text based protocol. The no display error you're seeing is because you are running that command in that remote terminal session and it doesn't have a display it can use. For playing the videos on your laptop on your phone your best bet will be to use something like samba to setup a share and stream from there. To have things start on your laptop you'll most likely need to set the display parameter. Have a look here gerardnico.com/ssh/x11/display

– rohtua
10 hours ago




1




1





You need to run a player on the phone, and not on Ubuntu. Transferring uncompressed video frames over ssh will never work.

– mikewhatever
10 hours ago





You need to run a player on the phone, and not on Ubuntu. Transferring uncompressed video frames over ssh will never work.

– mikewhatever
10 hours ago













@mikewhatever read question carefully.

– Abhishek Kamal
10 hours ago





@mikewhatever read question carefully.

– Abhishek Kamal
10 hours ago













@mikewhatever I already did commands in my android phone not in Ubuntu.

– Abhishek Kamal
10 hours ago





@mikewhatever I already did commands in my android phone not in Ubuntu.

– Abhishek Kamal
10 hours ago













Ok, let's start again, the player must be installed and run on the phone. You can use a file manager on the phone to connect to Ubuntu via sftp(provided by ssh), then select a media file on Ubuntu remotely, and it will play on the phone. Typing commands on the phone keyboard does not ensure they run on the phone, this is ssh after all. Hope it is clear.

– mikewhatever
8 hours ago







Ok, let's start again, the player must be installed and run on the phone. You can use a file manager on the phone to connect to Ubuntu via sftp(provided by ssh), then select a media file on Ubuntu remotely, and it will play on the phone. Typing commands on the phone keyboard does not ensure they run on the phone, this is ssh after all. Hope it is clear.

– mikewhatever
8 hours ago












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1122266%2fhow-to-play-videos-of-my-laptop-in-my-android-phone-using-ssh%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1122266%2fhow-to-play-videos-of-my-laptop-in-my-android-phone-using-ssh%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局