hongzimao / pensieve

Neural Adaptive Video Streaming with Pensieve (SIGCOMM '17)
http://web.mit.edu/pensieve/
MIT License
516 stars 279 forks source link

empty result folder(run_exp) #114

Open juliaa123 opened 3 years ago

juliaa123 commented 3 years ago

hi, I run run_all_traces.py in folder run_exp, the result folder includes empty files, i follow the suggested solutions at issue #98, but still the same problem. I think the problem in URL address which used in run-video code , can you explain how select this link and why use it, and how change it ?? note , the chrom_rerty_log is not includes any error.

thanks for your time.

hongzimao commented 3 years ago

If you copy over the html files to the apache server folder (done in the setup step here: https://github.com/hongzimao/pensieve/blob/master/setup.py#L44-L47), you should be able to watch the video with your browser. See if you can load the video by typing in the localhost and url to the video in a regular chrome?

The video might only play the first chunk --- this is because the second and future chunks need an ABR decision from the ABR server. In this case, if you run a python ABR server, similar to https://github.com/hongzimao/pensieve/blob/master/run_exp/run_video.py#L54, you should be able to see the ABR server making every ABR decision (you can print it) and the video client receive the bitrate for each chunk (you can log it in javascript) and the video keeps playing.

Hope these help!

juliaa123 commented 3 years ago

Thanks for reply me, I did what you suggested, and the video is playing but without autoplay, i started the video manually after running the apache server.

hongzimao commented 3 years ago

This might help: #73

juliaa123 commented 3 years ago

still empty, i check all the software environment, google chroom V56, driver 2.27 and i change the URL to local host , when i change it and run the RL server manually based #98 issue , i see log file with data in result folder in the RL server folder , but when i run all-traces direct , the result folder is empty in RL server folder and in Run_exp folder.

now , i do not have any idea how to solve this problem.

please help me, thanks for your time

hongzimao commented 3 years ago

So you can watch the video manually (video loads, new chunks are downloaded, ABR server runs nominally, etc.) but when you run everything together with run_all_traces, it doesn't log anything, is that the issue?

So run_all_traces starts a virtual display (with chromium). If you really want to debug, you can ask the virtual display to screenshot to see what's the video state (does it load the first chunk, is it the auto play issue, etc.)

Did #73 not help with the auto play issue?

Also, one thing you can try is this repo https://github.com/park-project/park. Try using the abr environment. This codebase has slightly more robust support for the ABR environment.

ali1hammoud commented 3 years ago

aa1

I did everything in issue 98, And I saw that the video doesn't load even if I bypass mahimahi So the video didn't start automatically, I pressed the play button, And the video didn't load at all.

I WROTE here because I have the same problem.

hongzimao commented 3 years ago

@ali1hammoud This is strange. If you bypass mahimahi the video should play at least for the first chunk (it doesn't ask the ABR server for the bitrate). I see you use firefox as the browser. Can you try chrome too? Make sure the chromedriver and selenium version is correct. Can you also try the abr environment in repo https://github.com/park-project/park. This codebase has slightly more robust support for the ABR environment.

chutoutian commented 3 years ago

I have the same problem. I run the rl_server_no_training.py in /rl_server , then I run the run_all_traces.py in /run_exp. The video can play completely. But /run_exp/results/ is empty .

ry4nzhu commented 3 years ago

I experience similar problem here, I changed the video to my own video chunks, the player only request the first 6 chunks and never send any request to the ABR server at localhost:8333 again even the buffer is drained.

hongzimao commented 3 years ago

@ry4nzhu Did you manage to get the original video to work? If that works, can you try just swapping out the original video with your own video chunks (rename them with the same name), that should load the video.

ry4nzhu commented 3 years ago

Yes. I got the original video to work. Does it matter if I use my own mpd file and put all the video chunk in one folder in the apache server? I can try to swapping out the original video with my own video chunks, but I doubt if this is different from changing the mpd file in myindex_${algorithm}.html and put all the video file in a separate folder..

hongzimao commented 3 years ago

Sorry for replying late. I think you should swap out the mpd file too. You can put the videos in the apache server, then use the browser to go to the URL https://github.com/hongzimao/pensieve/blob/master/run_exp/run_video.py#L39. You can check if your videos are loading and playing. Hope this helps.

SunTingxin commented 3 years ago

hi I have run https://github.com/hongzimao/pensieve/blob/master/run_exp/run_video.py#L54 ,but it still just plays the first chunk. How can I know whether the ABR server works? 2021-05-26 10-06-44 的屏幕截图 2021-05-26 10-06-49 的屏幕截图