11/10/2022 0 Comments Ffmpeg ubuntu laggyIf your on a server with public access you could run python -m rver in the gym-results folder and just watch the videos there. #Ffmpeg ubuntu laggy downloadThen in a new cell Jupyter cell, or download it from the server onto some place where you can view the video. import gymĮnv = wrappers.Monitor(env, "./gym-results", force=True) I made a quick working example here which you could fork: with two examples of rendering in Jupyter - one as an mp4, and another as a realtime gif. Referencing my other answer here: Display OpenAI gym in Jupyter notebook only Ipython_show_video("/tmp/SpaceInvaders-v0/.4.4") Print("Episode finished after ".format(path)) Observation, reward, done, info = env.step(action) #Ffmpeg ubuntu laggy codeUsing the code from ' Recording and uploading results' import gymĮnv.monitor.start('/tmp/cartpole-experiment-1', force=True) With inspiration from Torxed I tried creating a video file, and then rendering it (a fully satisfying solution). I get ImportError: cannot import name gl_info. Img = env.render(mode='rgb_array', close=False) # <- ERROR Img = env.render(mode='rgb_array', close=True) I tried disabling the pop-up, and directly creating the RGB colors import gym Running the original script I now get instead GLXInfoException: pyglet requires an X server with GLX Inspired by this I tried the following, instead of the xvfb-run -s \"-screen 0 1400x900x24\" python (which I couldn't get to work). It would be ideal if I could get it inline, but any display method would be nice.Įdit: This is only an issue with some environments, like classic control. I would like to some how be able to see the simulations. NoSuchDisplayException: Cannot connect to "None" You may need a virtual frame buffer something like this should work: I would like to be able to render my simulations.Įnv.render() makes (among other things) the following errors. Strange that Hyper-V shows an almost idle machine.I am running a python 2.7 script on a p2.xlarge AWS server through Jupyter (Ubuntu 14.04). In Hyper-V manager CPU usage is at 9%, HTOP shows values near 100% (user usage and swp is at 268K / 1.98GB. Storage space is 60 GB (46 GB used) mounted on /mnt/zmdata/ The setup is a Ubuntu server 18.04.5 LTS headless running with 6 GB of memory in Hyper-V (Windows Server 2019). Video writer is set to X264 Encode (H264 Camera Passthrough was worse). Camera function is set to Modect but changing to Monitor does not help.Ĭameras and server have their own separate VLAN. We had them running at 320 x 240 for a while, but this did not improve anything. Resolution of the cameras is set to 1280 x 1024. We already changed the source method from TCP to UDP, resulting in even worse streams. The live feeds also are always 15 to 30 seconds behind the real live events. The live feeds and recordings in Zoneminder are choppy and in very low FPS (1 to 3 fps). When we log in to the webinterface of the individual cameras (Hikvision), the feeds are normal and in good quality. This happens mostly when there is a lot of movement in front of the cameras. We are having frequent dropouts and artifacts on live feed and recorded clips.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |