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

video for simulator #11

Open
saikrishna321 opened this issue Nov 11, 2016 · 8 comments
Open

video for simulator #11

saikrishna321 opened this issue Nov 11, 2016 · 8 comments

Comments

@saikrishna321
Copy link

@isonic1 is it possible to take videos from simulator ?

@isonic1
Copy link
Owner

isonic1 commented Nov 11, 2016

@saikrishna321 right now it's just real devices. I haven't had a chance to look into it yet but when I have a moment I will. I know people in the past used quicktime to do it but that library is not maintained anymore.

@saikrishna321
Copy link
Author

@isonic1 why not use apple script to take screenshot

      def capture_script
        "osascript <<EOF
        tell application \"#{simulator_app_name}\"
        activate
        delay 0.5
        tell application \"System Events\" to keystroke \"1\" using {command down}
        delay 0.5
        tell application \"System Events\" to keystroke \"s\" using {command down}
        end tell
        EOF"
      end

@isonic1
Copy link
Owner

isonic1 commented Nov 23, 2016

@saikrishna321 sorry, was traveling and missed this. Does that apple script take a screenshot of a simulator? If so, I can add the logic to Flick. :)

@saikrishna321
Copy link
Author

saikrishna321 commented Nov 23, 2016

@isonic1 yah it does .. Trust selconf went well 👍

@isonic1
Copy link
Owner

isonic1 commented Nov 23, 2016

@saikrishna321 Cool! When I have some time I'll add this. Thank you for the code!

ya, seconf went very well. The organizers did an amazing job. The next one has already been announced for Austin, Texas in April next year. Should be a good one too.

@JulesMoorhouse
Copy link

You can use the simulator directly xcrun simctl io booted recordVideo however this doesn't include sound.

I found this, which isn't the simulator
https://apple.stackexchange.com/questions/63056/can-applescript-be-used-to-automate-a-screen-recording-session-on-os-x

There's also soundflower
https://apple.stackexchange.com/questions/45689/can-i-get-system-sound-along-with-quicktime-player-screen-recording

@isonic1
Copy link
Owner

isonic1 commented Feb 16, 2018

thanks @jules2010. This looks great! I should be able to implement both screenshots and video for ios simulator easily.

@JulesMoorhouse
Copy link

I’ve also had to automate QuickTime to record sound and use ffmpeg to merge and resize. I also rotate, as my app is landscape but haven’t got this acceptable with itc yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants