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

Recordings plays only in Safari, error in Chrome #791

Open
SlavikCA opened this issue Aug 7, 2024 · 15 comments
Open

Recordings plays only in Safari, error in Chrome #791

SlavikCA opened this issue Aug 7, 2024 · 15 comments

Comments

@SlavikCA
Copy link

SlavikCA commented Aug 7, 2024

All recording, for all of my cameras can not be played in Chrome or Brave browser.
Tried on my:

  • Mac M1
  • Android Pixel 6

Getting error:

VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) Playback cannot continue. No available working or supported playlists.

Recording can only be played in Safari.

Screenshot 2024-08-07 at 06 16 27

2 of my cameras are HEVC (x265) and 2 are x264. Same error for all.

Live MJPEG works fine on all browsers.

Viseron - 3.0.0b9 - 7f94317
Tried with CPU docker image and with CUDA docker image. Same result.

@roflcoopter
Copy link
Owner

Strange, works fine for me in Chrome on Windows.
If you go the the Network tab in the dev tools, there should be a request ending in index.m3u8 after you press play.
What is the contents of that request?

@SlavikCA
Copy link
Author

SlavikCA commented Aug 7, 2024

Here are 3 requests I see in Network tab AFTER I click PLAY in Chrome:

Screenshot 2024-08-07 at 07 15 15

Here is the request details:
Screenshot 2024-08-07 at 07 17 53

And PREVIEW:

#EXTM3U
#EXT-X-VERSION:6
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:6
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="/files/segments/street/init.mp4"
#EXT-X-PROGRAM-DATE-TIME:2024-08-07T14:06:30.000+00:00
#EXTINF:4.9976,
/files/segments/street/1723039590.m4s
#EXT-X-DISCONTINUITY
#EXT-X-PROGRAM-DATE-TIME:2024-08-07T14:06:35.000+00:00
#EXTINF:4.92546,
/files/segments/street/1723039595.m4s
#EXT-X-DISCONTINUITY
#EXT-X-PROGRAM-DATE-TIME:2024-08-07T14:06:40.000+00:00
#EXTINF:4.98538,
/files/segments/street/1723039600.m4s
#EXT-X-DISCONTINUITY
#EXT-X-PROGRAM-DATE-TIME:2024-08-07T14:06:46.000+00:00
#EXTINF:5.00814,
/files/segments/street/1723039606.m4s
#EXT-X-DISCONTINUITY
#EXT-X-PROGRAM-DATE-TIME:2024-08-07T14:06:50.000+00:00
#EXTINF:5.01579,
/files/segments/street/1723039610.m4s
#EXT-X-DISCONTINUITY
#EXT-X-PROGRAM-DATE-TIME:2024-08-07T14:06:56.000+00:00
#EXTINF:4.98377,
/files/segments/street/1723039616.m4s
#EXT-X-DISCONTINUITY
#EXT-X-PROGRAM-DATE-TIME:2024-08-07T14:07:01.000+00:00
#EXTINF:5.02089,
/files/segments/street/1723039621.m4s
#EXT-X-DISCONTINUITY
#EXT-X-PROGRAM-DATE-TIME:2024-08-07T14:07:06.000+00:00
#EXTINF:4.95023,
/files/segments/street/1723039626.m4s
#EXT-X-DISCONTINUITY
#EXT-X-ENDLIST

@roflcoopter
Copy link
Owner

Plays fine for me, on iOS tho
image

@SlavikCA
Copy link
Author

SlavikCA commented Aug 7, 2024

Right.

On iOS - plays fine.

It looks like the issues only on Chrome (any OS: Win or Mac)

@roflcoopter
Copy link
Owner

It works for me on my Windows 11 PC using Chrome.
What codecs are your cameras using for video (and audio if they have any)?

@madman2012
Copy link

madman2012 commented Aug 7, 2024 via email

@SlavikCA
Copy link
Author

SlavikCA commented Aug 7, 2024

my codecs:

doorbell:

  • H.264/AVC/MPEG-4AVC/MPEG-4part10
  • AAC

street:

  • H.265/HEVC
  • AAC

living:

  • H.265/HEVC
  • AAC

loft:

  • H.264/AVC/MPEG-4AVC/MPEG-4part10
  • AAC (but in logs it shows as pcm_mulaw)

@SlavikCA
Copy link
Author

SlavikCA commented Aug 7, 2024

@madman2012 is right.

I just tried, and loft & doorbell are working fine in Chrome.

Issues are only with living and street which are h265.

So, it looks like the issue with h265 streams only

@roflcoopter
Copy link
Owner

Might be a browser issue then with h265: videojs/video.js#7257

Either change the encoding in your cameras if possible or Viseron can transcode it for you (less efficient)

@SlavikCA
Copy link
Author

SlavikCA commented Aug 7, 2024

My camera doesn't have setting to change codec.

Can Viseron transcode already? Or is it feature, which can be potentially added?

If it existing feature - where can I configure that transcoding?

@madman2012
Copy link

madman2012 commented Aug 7, 2024 via email

@roflcoopter
Copy link
Owner

Right, forgot that it is not in v3 yet.

It is on the checklist here tho: #716
Will try to squeeze in a quick change for that right away, can hopefully release it tomorrow if i dont hit any hurdles

@roflcoopter
Copy link
Owner

In the current dev build you can now set codec: h264 under recorder for each camera and it should transcode the segments for you

@madman2012
Copy link

Hi @roflcoopter,

I’ve encountered a peculiar issue with the latest dev version. While H.265 (HEVC) events play back fine in the browser now, the recordings don’t. The codec is set to copy.

@roflcoopter
Copy link
Owner

If its set to copy it is still h265, the Events uses another player than the recordings, but i dont think that should matter.
Does it work better if you set codec to h264 under recorder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants