Comments (5)
That would be so insane.
I only test it a bit my self (simply use SendAdbRequest
to get the data and output it to the Console). But i never worked before with VideoStreams. So i'm at point i dont how how to capture a "Frame" out of the stream.
The hole part could be even more complicated if we use H264. Because i think we would need a decoder.
I search for a projekt that simply accept a H264-Stream and do the work for us^^. But i dont find one :'(
from madb.
Yeah, H.264 is not something we do every day as.NET developers :)
You can have a look at (amongst others):
- FFmpeg
- Accord
- streamcoders.com
They tend to come with specific licenses so you may want to watch out for that.
You could, at first, try these things separately:
- Can you invoke screenrecord via
SendAdbRequest
and save the output to a file - Is the file valid (e.g. can you open it with something like VLC)
- Can you use any of the H.264 decoders to extract the individual frames
And if that works, you could try to do it real time (although Iām not sure what the CPU overhead of that would be, though).
Let me know if you make any progress on this. I may have some time to look into this, but that will be a couple of sprints from now.
From: Viper2k4 [mailto:[email protected]]
Sent: Thursday, June 30, 2016 4:44 PM
To: quamotion/madb [email protected]
Cc: Frederik Carlier [email protected]; Author [email protected]
Subject: Re: [quamotion/madb] Add support for screenrecord (#55)
That would be insane.
I only test it a bit by my self (simply use SendAdbRequest to get the data and out put it to the Console). But i never worked before with VideoStreams. So i'm at point i dont how how to capture a "Frame" out of the stream.
The hole part could be even more complicated if we use H264. Because i think we would need a decoder.
I search for a projekt that simply accept a H264-Stream and do the work for us^^. But i dont finde one :'(
ā
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/55#issuecomment-229679891, or mute the threadhttps://github.com/notifications/unsubscribe/AJdWsbfOZQQtoXNNNK2duQ2PXwH50iO-ks5qQ9YagaJpZM4JCMjG.
from madb.
Cant get a valid video.
Saving to file is no problem (the file it self is not playable with VLC or so). FFmpeg can demuxe it but with many fragments. I try differnt options but every time the same result.
I god many error while decoding:
"P slice to large", "out if range intra chroma", "negative number of zero coeff" and so on.
The only valid file i got is if the screen is off and there are no frames^^
from madb.
I found the reason why the file is corrupted, if you send the screenrecorder output to stdout. Here you have the same issue only for screencap https://stackoverflow.com/questions/13578416/read-binary-stdout-data-from-adb-shell
I tested this with my windows10 pc and android phone.
adb shell screenrecord --output-format=h264 - > E:\ffmpeg\bin\testfile.h264
Afterwards i opened my testfile.h264 with a hexeditor and replaced the values 0d 0a with 0a.
from madb.
what about this -> https://github.com/secile/OpenH264Lib.NET
from madb.
Related Issues (20)
- How to resubscribe DeviceMonitor.DeviceConnected after disposing?
- Crossplatform compatibility HOT 2
- Getting files in directory and modified timestamp
- Is there a function/method monitor for OnDeviceReconnect
- "File doesn't exist" but it exists HOT 1
- System.ArgumentOutOfRangeException: ""
- Send command realtime
- Make DeviceData a partial class for extension
- How to wait for connection?
- Serial number is the connection IP when using adb over WiFi HOT 1
- The buffer length X does not match the expected buffer length for a picture of width W, height H and pixel depth D HOT 2
- Memory leak caused by GetFrameBufferAsync HOT 2
- StartServer hangs
- Filename of Download/Upload with characters other than English/Numbers
- Starting ADB Server results in a dangling process as the server is treated as a child process
- ADBClient changes (singelton is gone) HOT 1
- ADB Command without shell HOT 1
- DeviceMonitor does not work
- Adb commands for windows 7 rooted device not responding.
- GetFrameBufferAsync artefacts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from madb.