Hi,
Running DashCast (r4780) on Ubuntu 12.04 64bit results in a segmentation fault in cmd_data.c:128 (strcpy(p_vconf->psz_codec, gf_cfg_get_key(p_conf, psz_sec_name, "codec")).
Apparently, the key "codec" is not found and gf_cfg_get_key() returns NULL;
I'm using the example dashcast.conf file from http://gpac.wp.mines-telecom.fr/dashcast/ and a simple example mp4 file from http://download.wavetlan.com/SVV/Media/HTTP/H264/Talkinghead_Media/H264_test1_Talkinghead_mp4_480x360.mp4
The exact call is:
DashCast -av H264_test1_Talkinghead_mp4_480x360.mp4 -seg-dur 1000 -frag-dur 200
I'm probably doing something wrong. Any ideas?
Thanks,
Urs
Stack trace from gdb:
#0 0x00007ffff5917eb7 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x000000000040704e in dc_read_configuration (p_cmdd=0x7fffffffb990) at cmd_data.c:128
#2 0x0000000000409821 in dc_parse_command (i_argc=9, p_argv=0x7fffffffe438, p_cmdd=0x7fffffffb990) at cmd_data.c:828
#3 0x0000000000403d10 in main (argc=9, argv=0x7fffffffe438) at dashcast.c:38
Hi Urs,
The parsing of incomplete config files was not robust enough. Can you update again and retry?
Thanks,
Romain
Hi Romain,
Yes, that fixed the problem. The code no longer crashes.
Thanks for the very quick turnaround.
Urs