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

No video with supported format and MIME type found when using Firefox #7

Open
bryce-carson opened this issue Jun 10, 2024 · 8 comments
Assignees
Labels
bug Something isn't working STABLE The issue affects the stable/main branch, and must be fixed there. UNSTABLE The work is to be completed in the unstable branch

Comments

@bryce-carson
Copy link
Collaborator

It appears that an MP4 was output, according to the log, but that might've been from a previous connection to the same server. This needs replication and further investigation.

Output #0, mp4, to 'Infected_MP4.mp4':
  Metadata:
    encoder         : Lavf60.16.100
  Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 768x768, q=2-31, 200 kb/s, 90k tbn
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
Adding frame 11 at timestamp 15.00sec (90%) - video stream completed!
@bryce-carson bryce-carson added the bug Something isn't working label Jun 10, 2024
@bryce-carson bryce-carson self-assigned this Jun 10, 2024
@ashokkrish
Copy link
Owner

Aggregation factor of 100 is probably too much. Ideally we want the aggregation factor to be as small as possible.

@bryce-carson
Copy link
Collaborator Author

bryce-carson commented Jun 10, 2024

I reproduced the error with Greece, default options, the default generated seed data, no cropping, and an aggregation factor of fifty (50).

@bryce-carson
Copy link
Collaborator Author

Further confirmed with Greece, default options, the default generated seed data, no cropping, and an aggregation factor of five (5).

@bryce-carson
Copy link
Collaborator Author

The issue is that the codec is non-free and thus the Firefox web browser cannot play the MP4 file directly. Maybe I need to restart my computer after installing the non-free codecs.

We should use an open container format like webm.

@bryce-carson bryce-carson changed the title No MP4 found when running SVEIRD Democratic Republic of Congo (COD) with default parameters, seed data, 10 days, and aggregation factor of 100 No video with supported format and MIME type found when using Firefox Jun 12, 2024
@bryce-carson
Copy link
Collaborator Author

I think the use of a video is the wrong approach anyways. What we really want is a slideshow of the static images, an animation. Video is a convenient way to achieve this, but it is much less flexible than a slideshow.

Using Splide with Autoplay and its (viewport-slideshow) Intersection extension will offer a good alternative to a video. It will be portable across browsers, and offer another mode of interactivity and customizability (by the user) and downloading individual frames as any other image on the web.

@bryce-carson
Copy link
Collaborator Author

In #11 I wrote,

The Theora encoder with an OGG container seems like a good choice, but WEBM is more commonly known.

Whichever R package on CRAN is most popular, recent, and well-designed which can encode video files is going to be the best choice, I imagine. We we will use that encoding with multiple containers, if possible. At worst, we can provide a fully supported encoding and container and recommend the user download Handbrake to transcode their downloaded video into another format which their operating system and browser support.

Using the webm container with an open codec is probably the best path forward to resolving this issue, which affected stable. However, resolving this issue is only going to be done in unstable.

@bryce-carson bryce-carson added STABLE The issue affects the stable/main branch, and must be fixed there. UNSTABLE The work is to be completed in the unstable branch labels Jul 18, 2024
@bryce-carson
Copy link
Collaborator Author

While this issue is labelled STABLE, the work should only be completed in the UNSTABLE branch following the solution tendered in #11.

@bryce-carson
Copy link
Collaborator Author

The label STABLE merely reflects the fact that this issue is observed in the main/stable branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working STABLE The issue affects the stable/main branch, and must be fixed there. UNSTABLE The work is to be completed in the unstable branch
Projects
None yet
Development

No branches or pull requests

2 participants