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

[功能请求] G726 audio recording #3394

Open
pubpy2015 opened this issue Mar 20, 2024 · 5 comments
Open

[功能请求] G726 audio recording #3394

pubpy2015 opened this issue Mar 20, 2024 · 5 comments

Comments

@pubpy2015
Copy link

描述该功能的用处,可以提供相关资料描述该功能
I use MediaServer to stream and record video streams from network cameras. (use addStreamProxy method)
If the camera has an audio codec of AAC or G711, I can listen audio from stream of the MediaServer (via VLC player) and the mp4 recording file also has audio.
However, if the camera has an audio codec of G726, even though I can listen audio from stream of the MediaServer, the mp4 recording file has no audio.
该功能是否用于改进项目缺陷,如果是,请描述现有缺陷
Yes, mp4 recording files have no audio if the camera's audio codec is G726
描述你期望实现该功能的方式和最终效果
I would like the MediaServer to be able to record from the video stream of a camera with G726 audio codec

@xia-chu
Copy link
Member

xia-chu commented Mar 20, 2024

Do you have a link to the RFC document for RTP packetization of G.726 ?

@pubpy2015
Copy link
Author

@pubpy2015
Copy link
Author

It seems that mp4 container does not support g726 audio codec. Can MediaServer transcode audio codec to aac like in ffmpeg?
The command below will record video with sound:
"ffmpeg -probesize 20000000 -analyzeduration 20000000 -rtsp_transport tcp -rtsp_flags prefer_tcp -stimeout 15000000 -buffer_size 2000000 -i rtsp://127.0.0.1:8554/proxy/cam8 -vcodec copy -acodec aac -y C://123.mp4"

@xia-chu
Copy link
Member

xia-chu commented Mar 22, 2024

No, zlmediakit do not support transcode.
But we have a proprietary version supported

@pubpy2015
Copy link
Author

I just want to transcode the audio codec (for record mp4), the video codec remains the same.
I see this pull request: #3099
Is it for audio transcoding?

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

No branches or pull requests

2 participants