-
Stream a file over the network in realtime using multicast:
vlc file.avi :sout-all ":sout=#std{access=udp{ttl=1},mux=ts,dst=226.0.0.10:1234}"Then you can open it with :vlc udp://@226.0.0.10:1234
- Adding .srt subtitles to a video , hardcoding subtitles, burning subtitles :
Note that burning subtitles require encoding the video, so you may loose quality.vlc file.avi :sub-file="subfile.srt" :subsdec-align=0 :freetype-rel-fontsize=16 :sout-all \ ":sout=#transcode{vcodec=mp2v,vb=1000,soverlay}:std{access=file,mux=ps,dst=file.ps}"Note that you specify codec here :transcode{vcodec=mp2v,vb=1000,soverlay}
Showing posts with label vlc. Show all posts
Showing posts with label vlc. Show all posts
Thursday, August 27, 2009
vlc subtitles video
So in the last time i was playing a with vlc (working actually) so here i got a few tips and tricks for all:
Friday, July 31, 2009
vlc transcoding entire folder
Here is a script to use vlc to transcode videos stored in a folder :
#!/bin/sh
DIR_TRANS='transcoded'
mkdir -p $DIR_TRANS
for filename in `ls *.mp4`
do
vlc $filename ":sout=#transcode{vcodec=h264,vb=1200,scale=1,acodec=mp4a,ab=256,channels=2}\
:duplicate{dst=std{access=file,mux=mp4,dst=$DIR_TRANS/$filename}}" --play-and-exit
done
Subscribe to:
Posts (Atom)