mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	for #738, write mp4 samples.
This commit is contained in:
		
							parent
							
								
									e24674e9cf
								
							
						
					
					
						commit
						733ba73d54
					
				
					 8 changed files with 87 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -26,9 +26,13 @@
 | 
			
		|||
 | 
			
		||||
#include "../../objs/include/srs_librtmp.h"
 | 
			
		||||
 | 
			
		||||
int64_t tools_main_entrance_startup_time;
 | 
			
		||||
int proxy(srs_mp4_t mp4, srs_rtmp_t ortmp);
 | 
			
		||||
int main(int argc, char** argv)
 | 
			
		||||
{
 | 
			
		||||
    // main function
 | 
			
		||||
    tools_main_entrance_startup_time = srs_utils_time_ms();
 | 
			
		||||
    
 | 
			
		||||
    printf("Ingest mp4 file and publish to RTMP server like FFMPEG.\n");
 | 
			
		||||
    printf("SRS(OSSRS) client librtmp library.\n");
 | 
			
		||||
    printf("Version: %d.%d.%d\n", srs_version_major(), srs_version_minor(), srs_version_revision());
 | 
			
		||||
| 
						 | 
				
			
			@ -129,7 +133,6 @@ int connect_oc(srs_rtmp_t ortmp)
 | 
			
		|||
 | 
			
		||||
#define RE_PULSE_MS 300
 | 
			
		||||
#define RE_PULSE_JITTER_MS 3000
 | 
			
		||||
int64_t tools_main_entrance_startup_time;
 | 
			
		||||
 | 
			
		||||
int64_t re_create()
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue