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

Recorded videos from Firefox play at the wrong speed #6337

Closed
flotwig opened this issue Feb 6, 2020 · 11 comments
Closed

Recorded videos from Firefox play at the wrong speed #6337

flotwig opened this issue Feb 6, 2020 · 11 comments
Labels
browser: firefox stale no activity on this issue for a long period topic: video 📹 type: bug v4.0.0 🐛 Issue present since 4.0.0

Comments

@flotwig
Copy link
Contributor

flotwig commented Feb 6, 2020

Current behavior:

  • Firefox records videos as a WEBM with variable framerate.
  • When Cypress streams these chunks to ffmpeg, the variable framerate is incorrectly interpreted at a constant 15fps.
  • This results in the output video appearing to run more quickly and more slowly at times, as the CPU load of other processes go up and down and affect the output framerate.
  • A related issue occurs when a navigation of the runner occurs, which causes the timestamps of the WEBM to reset to 0.

Desired behavior:

Versions

  • Cypress 4.0.0
  • Firefox, any version

Possibly caused by https://bugzilla.mozilla.org/show_bug.cgi?id=1717868

@cypress-bot cypress-bot bot added the stage: needs investigating Someone from Cypress needs to look at this label Feb 6, 2020
@jennifer-shehane jennifer-shehane added the v4.0.0 🐛 Issue present since 4.0.0 label Feb 10, 2020
@flotwig
Copy link
Contributor Author

flotwig commented Sep 24, 2020

Seems to be much more evident with FF 80 now that we're not pausing so much...

@cypress-bot cypress-bot bot added stage: work in progress stage: needs review The PR code is done & tested, needs review and removed stage: needs investigating Someone from Cypress needs to look at this stage: work in progress labels Oct 14, 2020
@cypress-bot cypress-bot bot added stage: work in progress stage: needs review The PR code is done & tested, needs review and removed stage: needs review The PR code is done & tested, needs review stage: work in progress labels Oct 16, 2020
@jennifer-shehane
Copy link
Member

With the provided video from #9566, the Test Runner shows 13 seconds of runtime, but the video has already spread through it in 1 second of video time - then the frames are frozen for the rest of the 17 secs of video. https://github.com/cypress-io/cypress/files/5660042/actions.spec.js.mp4.zip

I was able to easily reproduce this on my Mac, running Firefox 81. The video speeds up very quickly (showing 30 seconds of tests in 1 sec) and then is frozen for the duration of the video. This makes the videos recorded from Firefox completely unusable.

@jpita
Copy link

jpita commented Dec 16, 2020

I'm also having this issue on circleCI with firefox 83, so it seems platform independent

@oembe
Copy link

oembe commented Jan 14, 2021

Same issue on Azure DevOps

Versions:
Cypress 6.2.1
Firefox 84.0.2

@flotwig
Copy link
Contributor Author

flotwig commented Jun 23, 2021

This seems to be a bug with the mediaSource: 'browser' API used in video-recorder.ts to record videos in FF. Filed a bug on Mozilla's end: https://bugzilla.mozilla.org/show_bug.cgi?id=1717868

@flotwig flotwig added the stage: awaiting external fix A 3rd party bug in Cypress - awaiting release label Jun 23, 2021
@cypress-bot cypress-bot bot added stage: backlog and removed stage: awaiting external fix A 3rd party bug in Cypress - awaiting release stage: to do labels Sep 9, 2021
@jennifer-shehane jennifer-shehane added stage: awaiting external fix A 3rd party bug in Cypress - awaiting release and removed stage: backlog labels Sep 9, 2021
@cypress-bot cypress-bot bot added stage: icebox and removed stage: awaiting external fix A 3rd party bug in Cypress - awaiting release labels Sep 9, 2021
@flotwig flotwig removed their assignment Sep 1, 2022
@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label May 17, 2023
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2023
@jennifer-shehane
Copy link
Member

This issue still exists. Reopening for tracking purposes.

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label May 20, 2024
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: firefox stale no activity on this issue for a long period topic: video 📹 type: bug v4.0.0 🐛 Issue present since 4.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants