>>> 
>> 
>> 
>> I cannot sure use -cc_stream_map_ccgroup option is ok, because the ccgroup 
>> string is not standard, maybe it can be defined bu user.
>> Maybe two ways:
>> 1. use -cc_stream_map_ccgroup ? this way is defined the name by ffmpeg, 
>> cannot modify.
>> 2. parse the closed captions group string by KeyValue way? maybe this is 
>> better.
> 
> Actually, these requirements have been already handled. The parsing is 
> happening based on key value pairs. The keys are ‘ccgroup’, ‘instreamid’, 
> ‘language’. The values for these keys can be set after ‘:’ as given the 
> examples in the patch. 
> I am assuming you are trying to set ccgroup name as closecgroup. In that 
> case, please modify the command as below. Because, the string ‘ccgroup’ is a 
> key value, whatever string that comes after ‘ccgroup:’ is the cc group name.  
> ./ffmpeg -re -f lavfi -i color=red  -g 25  -b:v 1000k -b:a 64k -a53cc 1 -f 
> hls  -cc_stream_map "ccgroup:closecgroup,instreamid:CC1,language:en"   
> -master_pl_name master.m3u8  live/out.m3u8
> 
> To clarify further, consider user wants to set cc group name as ‘mycaptions’, 
> instream id as ‘SERVICE60’ language as Spanish, in that case, the map string 
> would be
> -cc_stream_map "ccgroup:mycaptions,instreamid:SERVICE60,language:sp”  
I understand and i got the point, 
just one question, do you want force the user use ffmpeg must input a string 
“ccgroup” ? if yes, maybe don’t let the user input it use string, maybe use 
-cc_stream_map_ccgroup is better, What do you think about it?


Thanks

Steven

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to