How can I push a linux ffmpeg stream via USB ADB to Android - General Questions and Answers

There are a lot of ways to push the android screen to a Linux Desktop.
But I would like to push a Desktop mirror or an ffmpeg stream to Android.
ffmpeg -video_size 1920x1080 -framerate 60 -f x11grab -i :0.0+7680,1080 -preset ultrafast -vcodec libx264 -tune zerolatency -r 60 -f mpegts -listen 1 rtmp://localhost:8081/test/
ffmp
I did try an ADB reverse
adb reverse tcp:8081 tcp:8081;
This is supposed to grab the image of my third monitor and I want to push it to Android via ADB.
When I point Android VLC at rtmp://@127.0.0.1:8081
It won't work. Some one an idea?

AFAIK reverse tethering over ADB means to allow the Android device to use the Internet connection of a PC over ADB. An PC's private IP4 address ( private IP addresses provide a way for devices that don't need a connection to the internet, such as file servers and printers, to communicate with the other devices on a network without being directly exposed to the public ) may have been assigned as 192.168.1.xxx and not as 127.0.0.1.
IIRC then the IP address 127.0.0.1 is a special-purpose IPv4 address and is called the localhost or loopback address. All computers use this address as their own, but it doesn't let computers communicate with other devices as a real IP address does.

e.g. you can use reverse adb to connect the VPN client on your Android tablet to the Host computer over USB.
In this case this is used, to use the Android tablet as an external monitor for Linux. Issue is it is not fast enough.
I found these methods on youtube so far:
But the VNC perfomance goes down with the screen size.
With ffmpeg und a cast receiver over USB, theoretically, it should be as fast as the windows/mac version, which are basically lag free , like it is shown here.
A lag free version is this, but it is absolutely limited in usage
So yes, I want to use ffmpeg and a cast receiver on Android, to use the tablet as an external monitor for windows.
This App doed not work for me

Related

Remote control: Android VNC server

Android Market Link: http:/ / goo.gl/fiOeA
Note: Your device need to be rooted before using this app.
This is a vnc server app created by me running on an Android device.
You can make a connection to the vnc server via PC/NB over WiFi network or USB cable connection. Also with the capability to let you remotely control your android device within your vnc client running on your PC/NB. Besides, you could turn off the feature of remote control to just demo something.
Advanced information:
http:/ / goo.gl/lz8YR

[App][4.0+]WiFi Audio Wireless speaker

https://play.google.com/store/apps/details?id=com.vnd.wifi_audio
With this Android application you can use your Android device as a wireless speaker.
New Features in
Windows Server :-
1) Auto start at bootup
2) Auto discover mobile device (Needs firewall exception for port 32000 in Windows Firewall)
3) Remember last used IP address and auto start audio transmission if IP address is stored.
Linux Server :-
1) Auto discover mobile device
2) Movie mode for very low latency audio.
[Please note: if you loose audio video sync pause video for 1 sec and resume, it will solve audio video sync issue.]
How to download Windows and Linux Servers -
1) The App now has in-built HTTP server to download Windows and Linux server executable. If your mobile device IP is 192.186.1.1 then the servers can be downloaded from http://192.168.1.1:8888 from PC's browser. (Please note that the http port is 8888)
How it works:
Download Windows or Linux executable on your machine depending on the OS
a) Run WiFi Audio Android App and Press start, you will see IP address of mobile device in the bottom
after that run Windows/Linux application and put mobile device's IP address in the IP address field and then press start on PC application. Now all audio coming out from PC will be send to mobile device and you will hear audio on mobile device.
b) This version also supports auto-discover function it will work in following conditions
1) Users has to allow incoming packets from port 32000 on the PC, For Windows user has to add exception for either application executable or for the port 32000. On Linux following command will add exception for port 32000
iptables -I INPUT -p udp --dport 32000 -j ACCEPT or users can use firewalld to add exception permanently.
(Note: to run iptables command root permission is required on Linux)
Links to download PC's Application is available in the application itself
Requirements:
Windows Vista or above
Linux PC with Pulse Audio (64bit version only)
Wow! Nice work
ajeet17181 said:
https://play.google.com/store/apps/details?id=com.vnd.wifi_audio
With this Android application you can use your Android device as a wireless speaker.
New Features in
Windows Server :-
1) Auto start at bootup
2) Auto discover mobile device (Needs firewall exception for port 32000 in Windows Firewall)
3) Remember last used IP address and auto start audio transmission if IP address is stored.
Linux Server :-
1) Auto discover mobile device
2) Movie mode for very low latency audio.
[Please note: if you loose audio video sync pause video for 1 sec and resume, it will solve audio video sync issue.]
How to download Windows and Linux Servers -
1) The App now has in-built HTTP server to download Windows and Linux server executable. If your mobile device IP is 192.186.1.1 then the servers can be downloaded from http://192.168.1.1:8888 from PC's browser. (Please note that the http port is 8888)
How it works:
Download Windows or Linux executable on your machine depending on the OS
a) Run WiFi Audio Android App and Press start, you will see IP address of mobile device in the bottom
after that run Windows/Linux application and put mobile device's IP address in the IP address field and then press start on PC application. Now all audio coming out from PC will be send to mobile device and you will hear audio on mobile device.
b) This version also supports auto-discover function it will work in following conditions
1) Users has to allow incoming packets from port 32000 on the PC, For Windows user has to add exception for either application executable or for the port 32000. On Linux following command will add exception for port 32000
iptables -I INPUT -p udp --dport 32000 -j ACCEPT or users can use firewalld to add exception permanently.
(Note: to run iptables command root permission is required on Linux)
Links to download PC's Application is available in the application itself
Requirements:
Windows Vista or above
Linux PC with Pulse Audio (64bit version only)
Click to expand...
Click to collapse
Does it work with Mac?

Network connection with Macintosh

Hello,
I'm trying to connect my S7 to my mac using Total Commander but I can't connect... Do someone konw how to do that ?
I'm using the Lan plugin for TC.
Thanks !
Not sure there are drivers available for Mac, I remember others having the same problem with the S5 unless something has changed since then
Thanks for your answer, in fact my question was more like "how to access to my LAN connected devices, and I'm a Mac user with 2 Mac connected, one on a lan connexion, the other one via wifi (MBair), and I have also 1 NAS connected to this network, in order to be able to play (for exemple) mp3 or video files located on a Mac or on the NAS from my S7, or the reverse opération, playing media files located on my S7 from from of my Mac or my internet box without having to transfer the files locally".
I managed to create sftp connexions, but that only allows file transfers, not remote playing.
In fact I would like to turn my S7 into a "regular" network connected device. I understood that Android can connect easily to windows networks and it is possible to have a network with Mac and windows devices connected together. Why not not an Android device with Mac devices to NAS devices ? I don't want to connect the S7 with a wired connection, I still want to use the wifi connection. Like my MacBook Air is connected with wifi to my local network.
I don't know if this is clear... My English is not perfect and my LAN knowingness is even more tiny...
essor-13 said:
Thanks for your answer, in fact my question was more like "how to access to my LAN connected devices, and I'm a Mac user with 2 Mac connected, one on a lan connexion, the other one via wifi (MBair), and I have also 1 NAS connected to this network, in order to be able to play (for exemple) mp3 or video files located on a Mac or on the NAS from my S7, or the reverse opération, playing media files located on my S7 from from of my Mac or my internet box without having to transfer the files locally".
I managed to create sftp connexions, but that only allows file transfers, not remote playing.
In fact I would like to turn my S7 into a "regular" network connected device. I understood that Android can connect easily to windows networks and it is possible to have a network with Mac and windows devices connected together. Why not not an Android device with Mac devices to NAS devices ? I don't want to connect the S7 with a wired connection, I still want to use the wifi connection. Like my MacBook Air is connected with wifi to my local network.
I don't know if this is clear... My English is not perfect and my LAN knowingness is even more tiny...
Click to expand...
Click to collapse
Ah sorry I misunderstood your question
ES File Explorer can create LAN/FTP connections for playing between network connected devices
I use it for playing from my NAS to my S7
I surely made something wrong with ES Explorer, I tried it, because I couldn't create a LAN connection. Only sftp. Did you configure something special on you Mac ? I removed ES Explorer because I was overwhelmed with notifications (battery saving, etc)... And it seems that it creates internet connexions even when I don't use it.
essor-13 said:
I surely made something wrong with ES Explorer, I tried it, because I couldn't create a LAN connection. Only sftp. Did you configure something special on you Mac ? I removed ES Explorer because I was overwhelmed with notifications (battery saving, etc)... And it seems that it creates internet connexions even when I don't use it.
Click to expand...
Click to collapse
I'm not using a Mac, the connection it makes is LAN so should work on both PC and Mac alike / anything with network access
The free version of ES File Explorer is full of ads, I bought the Pro version
Left Hamburger menu > Network > LAN > + sign for making a new connection > Enter IP address of NAS and login
(Or press the top scan button to auto discover)
You can create FTP server connections on the phone using ES too afaik but have not done that yet, I used to use FTP Server app on the play store for that, and FileZilla Client on the PC (Any FTP client Mac alternative will work)
Thanks, no problem to access the NAS (with ES FE) but I have this message when trying to connect to my Mac : (personal English translation...) "the server you want to configure needs SMB 2.0. Please first unlock it"...
essor-13 said:
Thanks, no problem to access the NAS (with ES FE) but I have this message when trying to connect to my Mac : (personal English translation...) "the server you want to configure needs SMB 2.0. Please first unlock it"...
Click to expand...
Click to collapse
Looks like a limit of the Mac
Some suggestions I found:
If you're trying to connect to a mac, take it from me and give up on AFP & SMB.
Just follow wrxtasy's advice and use NFS with NFS Manager. It works perfectly.
It takes a little in the setup, but it's worth it.
https://forum.kodi.tv/showthread.php?tid=214091&page=3
Networking with non OSX computers is always a nightmare. With ES FE or TC I can create a ftp connexion without problems. And Ia can access to my NAS. The issue with to connect to the Mac's HD... Thank you for your link, I'm gonna try this.
Sorry I don't have a Mac to help further
File Explorer is a file management app on Android. It helps you to access your files not only on Android device, but also on PC, Mac, NAS and cloud storages (Dropbox, Google Drive etc). Stream movies and songs from computer, NAS to your Android device. Directly view photos, documents without downloading.
https://play.google.com/store/apps/details?id=com.skyjos.apps.fileexplorerfree
Ok, thanks for your time !
If someone has another idea... I can't believe that I'm the only human being trying to connect an Android device to a mac...

Android TV Box, VNC Client autostart on boot to a specific IP address

Hi,
We have an industrial equipment that is running a VNC Server. I have bought an Android TV box to connect to the equipment with a VNC Client. The Android TV Box is connected to a 65 inches television. I'm able to connect to the equipment's VNC server and it is rendered on the big screen TV. The VNC Client is "bVNC free", an open source VNC client. The Android TV Bos is running Android 10.
What I would like to achieve, is on bootup of the Android TV Box, have the VNC Client automatically connect to the VNC Server, unattended to a specific IP address.
Is there anyone that has a solution on how to achieve that?
Thanks!

Controlling T-Mobile TVision HUB v2 from Linux laptop

I just purchased the above device planning to use it to replace my Raspberry Pi Zero W in my media system. I have been controlling the pi via SSH from my laptop and have an sftp share to it for file transfers from my laptop. I mostly made use of vlc on the pi this way, which worked quite well.
Obviously I will usually be using the remote with the device when I want to select and view video content. But when I am working with music and internet radio it is more convenient to do so from my laptop where I have an actual keyboard.
Obviously the TVision environment differs from the Raspbian running on the pi, so I doubt that I can take the same approach with it. I am working now to take advantage of the fact that it is a Chromecast device, which allows me to manage internet radio from my laptop via stream2chromecast. What I still need is a way to load media onto the device from my laptop, preferably via a share of some sort, and to be able to initiate or change playback there from the laptop.
I have installed vlc on the device, but from what I can tell there is no support in this version for using one of its remote control interfaces included. Of course this is the android version of vlc, so even if I can install and use an SSH connection to the device I don't know how to interact with it from the terminal window.
Has anyone worked with this device and found a way to do what I want to with it? Has anyone taken a similar approach with another Google TV device that should work here?
Dave

Categories

Resources