ac-freeman / davis-EDI-rs

A fast, Rust-based, open-source implementation of the paper "Bringing a Blurry Frame Alive at High Frame-Rate with an Event Camera" (2019) by Pan et al.
GNU General Public License v2.0
11 stars 3 forks source link

Output resolution #15

Closed sherifsas closed 1 year ago

sherifsas commented 1 year ago

Hi! first of all, great work. I am interested in deblur using the aid of event camera. I have setup everything and built the project. Unfortunately, the resolution of the output video i corrupted can you please assist me with this issue ?

I used the dataset in the project ( dvSave-2022_05_17_14_48_18.aedat4)

resullt )

ac-freeman commented 1 year ago

Hm. Did you generate the video with the --write-video option, or do it manually?

sherifsas commented 1 year ago

with both ways .... same result

ffmpeg -f rawvideo -pix_fmt gray -s:v 346x260 -r 30 -i ./tmp.gray8 -crf 0 -c:v libx264 -y ./output_file.mp4

sherifsas commented 1 year ago

here is my Argos.toml

args_filename = "" base_path = "/home/davis-EDI-rs/dataset"

base_path = "/tmp"

mode = "file"

mode = "socket"

events_filename_0 = "dv-runtime.sock"

events_filename_0 = "dvSave-2022_05_17_14_48_18.aedat4" events_filename_1 = "dv-runtime2.sock" start_c = 0.30344322344322345 deblur_only = false events_only = false simulate_packet_latency = true target_latency = 500.0 optimize_c = true optimize_controller = false show_display = false show_blurred_display = false output_fps = 10000 write_video = true

ac-freeman commented 1 year ago

Pull the latest changes and try it now. Writes to an .avi file directly, without the undefined behavior you encountered. I think it's slightly lossy, so let me know if that's a problem for you and I can see what else I can do.

sherifsas commented 1 year ago

still the issue was not resolved

image

ac-freeman commented 1 year ago

Can you email me the .avi file? acfreeman@cs.unc.edu

Also, what version of ffmpeg do you have installed?

sherifsas commented 1 year ago

@ac-freeman thanks now it's working ... I was building the repo on the WSL2<ubuntu 18.04> on a windows laptop, I had to switch to a unix system, i.e., macbook.

ac-freeman commented 1 year ago

Gotcha. I've only tested this on Linux, so I can't vouch for how it works on Windows.