简体   繁体   English

带有vlc的ffmper-屏幕抓取太重,导致文件损坏,丢帧

[英]ffmper with vlc - too heavy screen grabbing, resulting injumpy file, frame loss

I'm using 'vlc/ffmpeg' package to grab the screen and convert it to H.264 file. 我正在使用“ vlc / ffmpeg”包来抓取屏幕并将其转换为H.264文件。

The problem arises when the host is heavily loaded. 当主机负载很重时,就会出现问题。 I need to maintain correct time stamps and use the 5 fps (relatively low frame rate). 我需要保持正确的时间戳并使用5 fps(相对较低的帧频)。 Yet sometimes the resulting file jumps few seconds forward, apparently due to frame loss. 但是有时,由于帧丢失,所生成的文件有时会向前跳几秒钟。 I can deal with the frame loss, it's OK, but I need to duplicate lost frames to maintain correct timing. 我可以处理丢帧问题,可以,但是我需要复制丢失的帧以保持正确的时间。

My configuration file: 我的配置文件:

vlc.exe screen:// -I dummy --verbose=2 --one-instance :screen-fps=5 :screen-caching=10000 :sout=#transcode{venc=x264{preset=ultrafast,tune=zerolatency},vcodec=h264,fps=5,vb=3000,width=1024,height=576,acodec=none}:file{dst="C:\\tmp\\output.mp4"} vlc.exe screen:// -I dummy --verbose = 2 --one-instance:screen-fps = 5:screen-caching = 10000:sout =#transcode {venc = x264 {preset = ultrafast,tune = zerolatency} ,vcodec = h264,fps = 5,vb = 3000,width = 1024,height = 576,acodec = none}:file {dst =“ C:\\ tmp \\ output.mp4”}

What should I add/config to preserve proper time stamps and clip duration? 我应该添加/配置什么以保留正确的时间戳和剪辑持续时间?

Many thanks for your help. 非常感谢您的帮助。

好的,我发现添加'copys'选项完全符合我的需要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM