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

record mpegts bad files #3206

Closed
3 of 13 tasks
pikachu937 opened this issue Apr 8, 2024 · 5 comments · Fixed by bluenviron/mediacommon#131
Closed
3 of 13 tasks

record mpegts bad files #3206

pikachu937 opened this issue Apr 8, 2024 · 5 comments · Fixed by bluenviron/mediacommon#131

Comments

@pikachu937
Copy link

pikachu937 commented Apr 8, 2024

Which version are you using?

v1.1.0 and later

Which operating system are you using?

  • Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (LXC)

Describe the issue

An incorrect file is generated when recording in mpegts format(record server function). There is no way to play it in chrome/safari/ quick time player.
However, if you take a file in mpegts format generated by the hls server, everything plays perfectly.

Describe how to replicate the issue

  1. enable the HLS server in the configuration file and allow it to save segments in mpegts format to a folder.
  2. enable saving of published streams in the configuration file.
  3. start the server
  4. publish with rtsp any stream
  5. read with HLS the published stream
  6. copy files generated by the hls server and make playlist1 in m3u8 format
  7. copy files generated by the server's built-in recording function and make playlist2 in m3u8 format
  8. play received playlists via chrome/safari
  9. copy files generated by the hls server and play mpegts files in quick time player
  10. copy files generated by the server's built-in recording function and play mpegts files in quick time player

Did you attach the server logs?

yes / no

Did you attach a network dump?

yes / no
GOOD FILES GENERATED HLS SERVER 408608627_good_ts.tar.gz
BAD FILES GENERATED RECORD FUNCTION 408608627_bad_ts.tar.gz

@pikachu937
Copy link
Author

UPD.
I rechecked the playlist generation in my service and found an error.
I apologize for misleading you.

However, one of the problems still remains: the files ts generated by the server's built-in recording function cannot be read by the native player(Quick Time Player) in iOS/MacOS.

aler9 added a commit to bluenviron/mediacommon that referenced this issue May 25, 2024
(bluenviron/mediamtx#3206)

always add an AUD to H264 and H265 access units.
@aler9
Copy link
Member

aler9 commented May 25, 2024

Thanks for reporting the QuickTime compatibility issue with recording segments, this is fixed by bluenviron/mediacommon#131

aler9 added a commit to bluenviron/mediacommon that referenced this issue May 25, 2024
(bluenviron/mediamtx#3206)

always add an AUD to H264 and H265 access units.
@moenodedev
Copy link

Could fix #3350 and #3313

@aler9
Copy link
Member

aler9 commented May 25, 2024

@moenodedev absolutely yes, but I don't want to examine issues that do not follow rules (for instance reporting two problems at once or not attaching any useful info), otherwise I would go crazy.

@moenodedev
Copy link

Thanks for all your work. It's a game changer for my organization

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

Successfully merging a pull request may close this issue.

3 participants