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 video file has no duration #1847

Open
Xennis opened this issue Aug 31, 2024 · 1 comment
Open

Recorded video file has no duration #1847

Xennis opened this issue Aug 31, 2024 · 1 comment
Labels
bug Something isn't working planned

Comments

@Xennis
Copy link

Xennis commented Aug 31, 2024

Describe the bug

Recording videos have no duration. The video file of a recording can be played but has no duration. This causes trouble with video applications.

My guess is it's due to muaz-khan/RecordRTC#147 . The authors added a way to fix it: muaz-khan/RecordRTC#147 (comment)

Minimal reproduction

Steps to reproduce the behavior:

  1. Run slidev --open
  2. Open the slides
  3. Start a recording.
  4. Stop the recording and save the file.
  5. Check if the file has a duration, e.g.
    • open it with VLC player and see the bar shows no proper duration
    • or use in the shell ffprobe -i <my-file-here> -show_entries format=duration -v quiet -of csv="p=0". It will print N/A instead of a duration

Environment

  • Slidev version: 0.49.29
  • Browser: Chrome (128.0.6613.113) and Firefox (125.0.2)
  • OS: Ubuntu
@Xennis
Copy link
Author

Xennis commented Sep 1, 2024

A manual workaround:

ffmpeg -i my-recording.mp4 -c my-recording-copy.mp4

@KermanX KermanX added bug Something isn't working planned labels Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working planned
Projects
None yet
Development

No branches or pull requests

2 participants