How to change resolution(MPEGTS->FLV)

About encoding, codec settings, muxers and filter usage
iroller
New Cone
New Cone
Posts: 4
Joined: 16 Dec 2009 10:04

How to change resolution(MPEGTS->FLV)

Postby iroller » 24 Mar 2010 23:18

In: MPEGTS. Out: h264[FLV]
I have this configuration working:

Code: Select all

#!/bin/sh # Live video streaming with VLC. # 400x300, 250Kbit /usr/bin/vlc -I dummy \ -vvvv \ --repeat \ --no-drop-late-frames \ --no-skip-frames \ --no-ffmpeg-hurry-up \ --no-sout-transcode-hurry-up \ --rt-priority http://somehost:8080 \ --sout '#transcode{venc=x264{cabac=yes,bframes=0,keyint=125,ref=5,merange=24,mixed-refs=yes,direct=auto,me=umh,subme=7,trellis=2,weightb=yes,partitions=all,vbv-maxrate=400,vbv-bufsize=3000,ratetol=100.0,scenecut=60},vb=300, deinterlace=yes,acodec=mp4a,ab=96,channels=2,width=400,height=300}:std{access=http,dst=0.0.0.0:8083/stream.flv}' > /var/log/vlc.log 2>&1 &
Now I need another two streams from the same "http://somehost:8080" but with "width=720,height=568,vbv-maxrate=700" and "width=320,height=240,vbv-maxrate=300"(for example). I dont want to use too much processor resources with running three encoding VLC simultaneously. In fact I want to encode just once and to resize this stream into to another streams. How can I do so?
Sorry for my bad English

thasmin
New Cone
New Cone
Posts: 1
Joined: 26 Mar 2010 17:59

Re: How to change resolution(MPEGTS->FLV)

Postby thasmin » 26 Mar 2010 18:02

Take a look at the duplicate module. You may be able to do something like transcode:duplicate{transcode:std,transcode:std,transcode:std} that could save the CPU some work.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests