mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
complete the h264 to rtmp, but the sps and pps should send in a rtmp packet. for bug #66
This commit is contained in:
parent
6407baffd5
commit
496f4246f4
2 changed files with 49 additions and 4 deletions
|
@ -339,14 +339,16 @@ extern char* srs_amf0_human_print(srs_amf0_t amf0, char** pdata, int* psize);
|
|||
/**
|
||||
* convert h264 stream data to rtmp packet.
|
||||
* @param h264_raw_data the input h264 raw data, a encoded h.264 I/P/B frame data.
|
||||
* @paam h264_raw_size the size of h264 raw data.
|
||||
* @paam h264_raw_size the size of h264 raw data. assert > 0.
|
||||
* @param dts the dts of h.264 raw data.
|
||||
* @param pts the pts of h.264 raw data.
|
||||
* @param prtmp_data the output rtmp format packet, which can be send by srs_write_packet.
|
||||
* @param prtmp_size the size of rtmp packet, for srs_write_packet.
|
||||
* @param ptimestamp the timestamp of rtmp packet, for srs_write_packet.
|
||||
*
|
||||
* @remark, user should free the h264_raw_data.
|
||||
* @remark, user should free the prtmp_data if success.
|
||||
* @remark, the tbn of dts/pts is 1/1000 for RTMP, that is, in ms.
|
||||
*
|
||||
* @return 0, success; otherswise, failed.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue