vlc保存有关问题
vlc保存问题
CString filepath;
CString str_time;
CTime tm=CTime::GetCurrentTime();
str_time=tm.Format("%Y-%m-%"d );
filepath="c:\\";
filepath+=str_time;
filepath+="-vedio.h264"
const char *vlc_argv{"--sout=#duplicate{dst=display,dst=std{access=file,mux=ts,dst=filepath}}"}
进行边播放变保存,但是为什么在c盘没有文件生成?希望有谁帮忙解决一下,谢谢。
------解决方案--------------------
应该是文件名称有问题,改成:
str_time=tm.Format("%Y%m%d" );
试试。
CString filepath;
CString str_time;
CTime tm=CTime::GetCurrentTime();
str_time=tm.Format("%Y-%m-%"d );
filepath="c:\\";
filepath+=str_time;
filepath+="-vedio.h264"
const char *vlc_argv{"--sout=#duplicate{dst=display,dst=std{access=file,mux=ts,dst=filepath}}"}
进行边播放变保存,但是为什么在c盘没有文件生成?希望有谁帮忙解决一下,谢谢。
------解决方案--------------------
应该是文件名称有问题,改成:
str_time=tm.Format("%Y%m%d" );
试试。