Webcam, vlc, transcoding and mp4 (or flv?)

About encoding, codec settings, muxers and filter usage
e-San
Blank Cone
Blank Cone
Posts: 15
Joined: 11 Dec 2013 10:23

Webcam, vlc, transcoding and mp4 (or flv?)

Postby e-San » 08 May 2014 01:26

Finally!

I've found solution to transcode my webcam source, here's the command:

Code: Select all

cvlc --intf=dummy v4l2:///dev/video1 --noaudio --sout-mux-caching=6000 --sout '#transcode{vcodec=h264,venc=x264{preset=medium,tune=ssim,level=3,video_filter={select_every:2,1},profile=baseline,keyint=60,bframes=0}}:standard{mux=ts,access=http,dst=:8090/myStream.mp4}' -v 1
But i need some tweaking:
[0xb520e908] main encoder warning: option video_filter is unknown
[0xb520e908] main encoder warning: option deinterlace is unknown
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowCTZ SlowAtom
x264 [info]: profile Constrained Baseline, level 3.0
This message drops twice, by the way.

1. How to use video_filter? [http://mewiki.project357.com/wiki/X264_ ... lect_every]
Wanted to drop one per two or three frames.

Or shall i use other way to drop frames?

2. Do i need deinterlaced?

3. As far i as i know:

Code: Select all

x264 [warning]: MB rate (5152760) > level limit (40500)
I do not get it... Why this value is so big?

Regards!

e-San
Blank Cone
Blank Cone
Posts: 15
Joined: 11 Dec 2013 10:23

Re: Webcam, vlc, transcoding and mp4 (or flv?)

Postby e-San » 09 May 2014 10:56

Ok, i end up with this:

Code: Select all

cvlc v4l2:///dev/video1 \ --intf=dummy \ --noaudio \ --deinterlace 0 \ --sout-x264-keyint 10 \ --sout-x264-level 2.2 \ --sout-x264-profile main \ --sout-x264-preset slow \ --sout-x264-tune psnr \ --sout-transcode-vfilter rotate{angle=270} \ --sout-transcode-venc x264 \ --sout-transcode-vcodec h264 \ --sout-standard-mux ts \ --sout-standard-access http \ --sout-standard-dst ":8090/myStream.mp4" \ --sout '#transcode{}:std{}' cvlc v4l2:///dev/video0 \ --intf=dummy \ --noaudio \ --deinterlace 0 \ --sout-x264-keyint 10 \ --sout-x264-level 2.2 \ --sout-x264-profile main \ --sout-x264-preset slow \ --sout-x264-tune psnr \ --sout-transcode-vfilter rotate{angle=90} \ --sout-transcode-venc x264 \ --sout-transcode-vcodec h264 \ --sout-standard-mux ts \ --sout-standard-access http \ --sout-standard-dst ":8089/myStream.mp4" \ --sout '#transcode{}:std{}'
I did'n use:
Since it does not (?) change anything:

Code: Select all

--sout-ffmpeg-bframes 0 \ --no-sout-x264-cabac \ --sout-x264-pass 0 \
This one is very (about twice!) cpu expensive:

Code: Select all

--sout-transcode-fps 10 \
I didn't know which one to use, so i resign of ssim for psnr since it is a bit lighter:

Code: Select all

--sout-x264-tune ssim \
I do not know how to use this:

Code: Select all

--transform-type=270 \ --video-filter "transform{true}" \ --vfilter=transform \ --mjpeg-fps 10 \ --sout-transcode-fps 10 \
My questions, i'd like to ask:
1. Why less fps at transcode produces cpu stress? How to avoid it?
2. Which one x264-tune option to chose? Both cameras are in terrarium 'watching' family (of about 50) hissing cockroaches.
3. Is transform-type=270 lighter than --sout-transcode-vfilter rotate{angle=270}? which one should i use?
4. --sout '#transcode{}:std{}' is this correct?

Thanks in advance.

e-San
Blank Cone
Blank Cone
Posts: 15
Joined: 11 Dec 2013 10:23

Re: Webcam, vlc, transcoding and mp4 (or flv?)

Postby e-San » 17 May 2014 02:35

bump


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 22 guests