Really it all depends on what you are doing and what you are willing to settle for. For us, it works well. I posted my info as a basic guide and as I update stuff, I post it here to make it better. I haven't mucked with the ffmeg/ffshow settings other then whats posted above. I seem to hit a level, with it for a few weeks, then muck with it again down the road. I noticed if I change my FPS rate to 30, and bump up my vb to something like 300 it looks much better, but then I start smashing my bandwidth limit.I get very crappy video output with you settings even with vb=400.
I'm using my TV card as source and default resolution is 352x288. kdh Did you do any tweaking over vlc or ffmpeg/ffshow configuration to get it work properly ? There seems to be tons of options on both vlc and ffmpeg. If use vb=800 it eats too much bandwidth.
Code: Select all
venc=x264{keyint=30}
yes, like that. Also I think it's better to use width/height instead of scale (but thats pretty small issue).That should go on the client side right?
Where would the venc=x264{keyinit=30} in my string? Something like this?
:sout=#transcode{vcodec=h264,vb=100,fps=30,scale=0.5,acodec=mp3,ab=96,channels=2,samplerate=44100,venc=x264{keyint=30}}:std{access=udp,mux=ts,dst=mywebsite.com:8777}
OK, I will test this tonight.
I noticed I've had to really bump up my --sout-mux-caching levels on the server side. If I do a vlc -vvv with my command, the output tells me something about waiting for SPS or something and takes a really long time for it to sync up, but it does.
I'm not sure if that makes sense. But I'll post the output to what I'm talking about later.
thanks for the help!
is the keyinit=30 directly tied to the fps=30 setting? or can they be different?yes, like that. Also I think it's better to use width/height instead of scale (but thats pretty small issue).That should go on the client side right?
Where would the venc=x264{keyinit=30} in my string? Something like this?
:sout=#transcode{vcodec=h264,vb=100,fps=30,scale=0.5,acodec=mp3,ab=96,channels=2,samplerate=44100,venc=x264{keyint=30}}:std{access=udp,mux=ts,dst=mywebsite.com:8777}
AH! So thats why I have to have my caching so high. K.. I don't know why it didn't click before, but when you said it.. I was like duh.Keyint tell how many frames there are between keyframes, and on stremaing, it should be 1-2s to get reasonable fast start on viewing.
anyone got any hints?
server side i'm getting this message:
[00000587] mux_ts mux warning: packet with too strange dts (dts=3025523014894,old=3025523050972,pcr=3025523050972)
What can I do to resolve it?
What is the outcome of this command? A flv file get generated?In this command, I connect back to 127.0.0.1:9070 and turn it into something that a Flash Based Video player can understand and stream to my website.
vlc --freetype-font=/usr/share/vlc/skins2/fonts/FreeSans.ttf --sub-filter=marq --marq-size=20 --marq-position=9 --marq-marquee="Live: $showname" http://localhost:9070 --sout-mux-caching 45000 --sout-ffmpeg-qmin=10 --sout-ffmpeg-rc-buffer-size=20000 --sout-ffmpeg-qmax=30 --sout-ffmpeg-qscale=1 --sout-ffmpeg-luma-elim-threshold=-4 --sout-ffmpeg-chroma-elim-threshold=7 --sout "#transcode{vcodec=FLV1,acodec=mp3,vb=100,ab=64,sfilter=marq}:std{access=http,mux=ffmpeg{mux=flv},dst=everydayjunglist.org:8081/stream.flv}" --daemon
Does it generate a file "/myrecording.flv"?n this command, I connect back to 127.0.0.1:9070 and turn it into something that a Flash Based Video player can understand and save the in coming audio and video to file.
vlc --freetype-font=/usr/share/vlc/skins2/fonts/FreeSans.ttf --sub-filter=marq --marq-size=20 --marq-position=9 --marq-marquee="Prerecorded: $showname" http://localhost:9070 --sout-mux-caching 45000 --sout-ffmpeg-qmin=10 --sout-ffmpeg-rc-buffer-size=20000 --sout-ffmpeg-qmax=30 --sout-ffmpeg-qscale=1 --sout-ffmpeg-luma-elim-threshold=-4 --sout-ffmpeg-chroma-elim-threshold=7 --sout "#transcode{vcodec=FLV1,acodec=mp3,vb=160,ab=96,sfilter=marq}:std{access=file,mux=ffmpeg{mux=flv},dst=./myrecording.flv --daemon
Return to “VLC stream-output (sout)”
Users browsing this forum: No registered users and 35 guests