printf(" -i <string> input video device format [%s]\n", impform);
printf(" -p <port> destination port [%d]\n", dport);
printf(" -b <bitrate> bitrate in b/s [%d]\n", bitrate);
+ printf(" -s <sdp_file> name of output sdp file [%s]\n", sdp_file);
#ifdef CONFIG_OC_ULUT
printf(" -l <number>|<domain>=<number>,...\n");
#endif /*CONFIG_OC_ULUT*/
{
int v;
- while ((v = getopt(argc, argv, "w:h:r:d:m:i:l:b:p:")) >= 0) {
+ while ((v = getopt(argc, argv, "w:h:r:d:m:i:l:b:p:s:")) >= 0) {
switch (v) {
+ case 's':
+ sdp_file = optarg;
+ break;
case 'p':
dport = atoi(optarg);
break;
if (ret) PERROR_AND_EXIT(ret, "frsh_init1");
/* fill default network contract params */
- frsh_rtp_budget = bitrate/8;
+ frsh_rtp_budget = 100*bitrate/8/100;
frsh_rtp_period_ms = 1000;
frsh_rtp_deadline_ms = 1000/fps;
#endif /*CONFIG_FFMPEG_WITH_FRSH*/
return -1;
}
codec_open(s);
- os = open_output_stream(dst, dport, CODEC_TYPE_VIDEO);
+ os = open_output_stream(dst, dport, CODEC_TYPE_VIDEO, fps);
if (os == NULL) {
fprintf(stderr, "Cannot open output stream\n");