Record and display from a dshow
Posted: 03 Feb 2014 17:43
Hi,
I have a problem for record a video with dshow.
When i use this optons :
:sout=#stream_out_duplicate{dst=display,dst=std{access=file,mux=avi,dst="+img+".avi}}
All works good, but the size of video is very big (5sec - 100MB)
I tried this :
:sout=#duplicate{dst='transcode{vcodec=h264}:std{access=file,mux=ts,dst="FILE.mpg"}'}
The video is displaying but don't record (file have 0 byte).
And if do this :
#transcode{vcodec=h264}:std{access=file,mux=ts,dst="FILE.mpg"}
The video record well but this of couse no display.
I would like to duplicate, display and record, but in a file without big size like the avi by default.
I have a problem for record a video with dshow.
When i use this optons :
:sout=#stream_out_duplicate{dst=display,dst=std{access=file,mux=avi,dst="+img+".avi}}
All works good, but the size of video is very big (5sec - 100MB)
I tried this :
:sout=#duplicate{dst='transcode{vcodec=h264}:std{access=file,mux=ts,dst="FILE.mpg"}'}
The video is displaying but don't record (file have 0 byte).
And if do this :
#transcode{vcodec=h264}:std{access=file,mux=ts,dst="FILE.mpg"}
The video record well but this of couse no display.
I would like to duplicate, display and record, but in a file without big size like the avi by default.