High CPU usage while transcoding from webcam regdardless fps

About encoding, codec settings, muxers and filter usage
BizonGod
New Cone
New Cone
Posts: 7
Joined: 20 Apr 2008 18:43

High CPU usage while transcoding from webcam regdardless fps

Postby BizonGod » 19 Apr 2013 12:46

Hello!
I wanted to make a simple video recorder uring 2 or 3 webcams (UVC, 640x480) and PC (old, Athlon 64 3200+).
I need low fps - 5 to 10 per camera. Using one camera CPU usage is as 75%. But I found that CPU usage is high,
no matter how much fps I use, 1, 3, 5 or 10 fps. Everywhere is written the lower fps the lower CPU usage.
Is my situation normal? I use this command to record stream:

vlc v4l2:///dev/video0:fps=1 --sout'#transcode{vcodec=h264,fps=1,vb=256}:std{access=file,mux=mp4,dst=111.mp4}

Thanks,
Karol

Rémi Denis-Courmont
Developer
Developer
Posts: 15231
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: High CPU usage while transcoding from webcam regdardless

Postby Rémi Denis-Courmont » 19 Apr 2013 17:30

The V4L2 input does not yet support custom frame rates, and it never did. That's why.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mundu
Blank Cone
Blank Cone
Posts: 53
Joined: 25 May 2011 19:56
VLC version: 2.1.5
Operating System: Linux

Re: High CPU usage while transcoding from webcam regdardless

Postby mundu » 22 Apr 2013 18:03

Try mpgv instead of h264 it might decrease CPU usage a bit.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests