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

Add support OPUS codec for MPEG-TS source #788

Closed
diver-ua opened this issue Nov 30, 2023 · 4 comments
Closed

Add support OPUS codec for MPEG-TS source #788

diver-ua opened this issue Nov 30, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@diver-ua
Copy link

diver-ua commented Nov 30, 2023

When used "pipe" transport - there is no audio, and in logs media=video

18:57:33.357 TRC [streams] check prod=0 media=video, recvonly, H.264 Main 4.0
18:57:33.357 DBG [streams] start producer url=exec:/scripts/nvrs 2 4 1

Using mpegts format, thet contains audio and video:

root@7a174ab66f12:/app# /scripts/nvrs 2 4 1 | ffprobe -hide_banner -
Input #0, mpegts, from 'pipe:':
  Duration: N/A, start: 1.400000, bitrate: N/A
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
  Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 12 fps, 25 tbr, 90k tbn
  Stream #0:1[0x101]: Audio: opus (Opus / 0x7375704F), 48000 Hz, stereo, fltp

Maybe, I'm doing something wrong?

I tried to add #media=video+audio param, but is used with ffmpeg and rtsp producers and has no effect with exec.

Have to pipe to ffmpeg for rtsp output...

@AlexxIT AlexxIT added the question Further information is requested label Nov 30, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Nov 30, 2023

Never heard about OPUS inside MPEG-TS. Probably it's non standard situation. Will check if it is described by any spec

@diver-ua
Copy link
Author

diver-ua commented Dec 1, 2023

AAC with mpegts does not work also
mpegts is a container format, so there can be virtually any audio/video codecs embedded.

Is there any recommended audio codec for the mpegts?

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 1, 2023

I know only one well supported codec for MPEG-TS. It is AAC.
You can use any codecs inside. But the popular players on the market won't be able to open them :)

@AlexxIT AlexxIT self-assigned this Dec 1, 2023
@AlexxIT AlexxIT changed the title exec producer: no audio with pipe Add support OPUS codec for MPEG-TS source Dec 11, 2023
@AlexxIT AlexxIT added enhancement New feature or request and removed question Further information is requested labels Dec 11, 2023
@AlexxIT AlexxIT added this to the v1.8.5 milestone Dec 12, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 1, 2024

@AlexxIT AlexxIT closed this as completed Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants