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

There is way to set packet size on rtsp push? #139

Open
Classsic opened this issue Nov 23, 2019 · 1 comment
Open

There is way to set packet size on rtsp push? #139

Classsic opened this issue Nov 23, 2019 · 1 comment

Comments

@Classsic
Copy link

Hi, is possible define max packet size for rtsp server?
I try this command:
ffmpeg -rtsp_transport tcp -i rtsp://ipcamera -c:v copy -an -f rtsp -rtsp_transport tcp rtsp://localhost:80/live/ip_camera?pkt_size=1100
but get this error:
`/app/server.coffee:46
throw err;
^

TypeError: Cannot read property 'videoData' of undefined
at RTSPServer.onInterleavedRTPPacketFromClient (/app/rtsp.coffee:802:58)
at RTSPServer.handleOnData (/app/rtsp.coffee:841:8)
at Socket. (/app/rtsp.coffee:451:12)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:540:20)
`
Thanks in advance.

@iizukanao
Copy link
Owner

@Classsic You can effectively set the limit of a packet size by changing the maximum size of single NAL unit at SINGLE_NAL_UNIT_MAX_SIZE = 1358 in rtsp.coffee. However, why do you need ?pkt_size=1100 in the first place? I think your command will work if you remove that part from the destination URL.

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

2 participants