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

Example: How to record desktop #29

Closed
rkmax opened this issue Apr 26, 2014 · 8 comments
Closed

Example: How to record desktop #29

rkmax opened this issue Apr 26, 2014 · 8 comments

Comments

@rkmax
Copy link

rkmax commented Apr 26, 2014

with ffmpeg this is a easy task but i can't find a reference for do ot ith PyAV

@mikeboers
Copy link
Member

Can you point me at an ffmpeg example? I'll see if it's easy to expose the
API.

Cheers,

Mike

Mike Boers (on the road)

On Apr 26, 2014, at 10:07 AM, Julian Reyes Escrigas <
notifications@github.com> wrote:

with ffmpeg this is a easy task but i can't find a reference for do ot ith
PyAV


Reply to this email directly or view it on
GitHubhttps://github.com//issues/29
.

@rkmax
Copy link
Author

rkmax commented Apr 26, 2014

$ ffmpeg -f x11grab -s 1366x768 -r 24000/1001 -i :0.0 -c:v libx264 -pix_fmt yuv420p -preset ultrafast -qp 0 -y ~/home/rkmax/screencast1.mp4

@mikeboers
Copy link
Member

Cool. I'll give it a look. If not this weekend then Monday.

Mike Boers (on the road)

On Apr 26, 2014, at 10:48 AM, Julian Reyes Escrigas <
notifications@github.com> wrote:

$ ffmpeg -f x11grab -s 1366x768 -r 24000/1001 -i :0.0 -c:v libx264
-pix_fmt yuv420p -preset ultrafast -qp 0 -y
~/home/rkmax/screencast1.mp4


Reply to this email directly or view it on
GitHubhttps://github.com//issues/29#issuecomment-41475493
.

@rkmax
Copy link
Author

rkmax commented Apr 26, 2014

@mikeboers thanks for your quick response. I'll be waiting

@mikeboers
Copy link
Member

I'm trying to tie this into what I'm naturally doing on this project for my day job. It is taking some time to get a reasonable linux build working here due to the particulars of our software deployment (and I personally tend to run on OS X which doesn't seem to have many avdevices that I can easily test).

I think that this should be relatively straight forward (once I get a test environment up). =]

mikeboers added a commit that referenced this issue Aug 22, 2014
@mikeboers
Copy link
Member

You might actually be able to do this (with the devices branch) via av.open(':0.0', format='x11grab').

@mikeboers
Copy link
Member

This should now be doable. Let me know!

@dustinlacewell
Copy link

Hi, can we get an example? I got as far as typing av.open(':0.0', format='x11grab').

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