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

Save Camera_Output in the form of Video #938

Open
asifsid-32 opened this issue Aug 25, 2020 · 15 comments
Open

Save Camera_Output in the form of Video #938

asifsid-32 opened this issue Aug 25, 2020 · 15 comments
Labels
answered Waiting for response

Comments

@asifsid-32
Copy link

Hello LGSVL team,

Can we use save_camera_image python api to generate videos captured from the main camera and other cameras if added to json scripts ?

@EricBoiseLGSVL
Copy link
Contributor

@asifsid-32 Yes, what ever encoding libraries you want can be used to create videos from images. We already have this and plan on releasing in the near future. You can implement in simulator or outside after all images are captured.

@EricBoiseLGSVL EricBoiseLGSVL added the answered Waiting for response label Aug 25, 2020
@asifsid-32
Copy link
Author

asifsid-32 commented Aug 25, 2020

@asifsid-32 Yes, what ever encoding libraries you want can be used to create videos from images. We already have this and plan on releasing in the near future. You can implement in simulator or outside after all images are captured.

@EricBoiseLGSVL can you please help me with the API here ?? I tried using the given api but all I was able to do was getting the image dumped of the last frame !!

@EricBoiseLGSVL
Copy link
Contributor

Are you looping to continuously capture the images in the .py?

@asifsid-32
Copy link
Author

Are you looping to continuously capture the images in the .py?

@EricBoiseLGSVL yes I tried that !!

@asifsid-32
Copy link
Author

Are you looping to continuously capture the images in the .py?

As you mentioned about the encoding libraries, I tried with .avi but of no help !!

@EricBoiseLGSVL
Copy link
Contributor

@asifsid-32 I'm confused, are you having issues with capturing images from the API or encoding?

@asifsid-32
Copy link
Author

asifsid-32 commented Aug 25, 2020

@asifsid-32 I'm confused, are you having issues with capturing images from the API or encoding?

@EricBoiseLGSVL what I basically need is the output from my main camera and other cameras which I haved added to my ego vehicle in the form of video. Now I tried saving video the same way you have mentioned in the .py file using save() but it didn't work !!

I wanted to ask how can I get the video output from my main camera ??

@EricBoiseLGSVL
Copy link
Contributor

@asifsid-32 To save video you will need to use an encoder. I recommend using ffmpeg which we used to encode directly in simulator as the images are captured from the camera rendertexture. You can also use a simple approach and use the encoder after you have collected all the images with the API. Here is a site that will help.

@asifsid-32
Copy link
Author

asifsid-32 commented Aug 25, 2020

@asifsid-32 To save video you will need to use an encoder. I recommend using ffmpeg which we used to encode directly in simulator as the images are captured from the camera rendertexture. You can also use a simple approach and use the encoder after you have collected all the images with the API. Here is a site that will help.

@EricBoiseLGSVL Also I am facing this problem where I am getting only the last frame image from the simulator dumped to my system. Not able to get all the images in between the starting frame and the ending frame !!!

@EricBoiseLGSVL
Copy link
Contributor

Are you looping the API save method in the .py file or are you running it once?

@EricBoiseLGSVL
Copy link
Contributor

Can you please post the error? Also, can you post the relevant code that you are using?

@asifsid-32
Copy link
Author

Can you please post the error? Also, can you post the relevant code that you are using?

Hello @EricBoiseLGSVL I was able to solve the error !! Thank you

@EricBoiseLGSVL
Copy link
Contributor

@asifsid-32 Excellent! Please post code or a description of the solution so other users that might have the same issue can find it. Thanks.

@asifsid-32
Copy link
Author

@asifsid-32 Excellent! Please post code or a description of the solution so other users that might have the same issue can find it. Thanks.

Sure !! I will .

@OrbitXN
Copy link

OrbitXN commented Nov 7, 2021

@asifsid-32 can you post your solution? I have the same problem...

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

No branches or pull requests

3 participants