Giter VIP home page Giter VIP logo

Comments (5)

 avatar commented on September 27, 2024

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.

qmfrederik avatar qmfrederik commented on September 27, 2024

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.

 avatar commented on September 27, 2024

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.

Shazter avatar Shazter commented on September 27, 2024

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.

demo7up avatar demo7up commented on September 27, 2024

what about this -> https://github.com/secile/OpenH264Lib.NET

from madb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.