18 Kasım 2020 Çarşamba

Libvlc Tutorial


https://www.videolan.org/streaming-features.html


 

// vlc ile mp3 calma 


vlc.exe a.mp3




// codec olarak ffmpeg kullanılmasını belirttik 



vlc.exe --codec ffmpeg a.mp3




vlc http://127.0.0.1:8080


// videoyu tam ekran oynatma 


vlc --fullscreen [file]




// vlc hakkında bilgi almak için 


vlc -l 


// komut format 


vlc [input_stream] --sout \

'#transcode{vcodec=[video_codec], acodec=[audio_codec]}

:standard{access=[type_of_output], dst=[name_of_output], mux=[output_type]}'







vlc.exe -vvv a.mp3 :sout'#transcode{vcodec=mp4v, acodec=mpga}:standard{access=http, mux=ogg, dst=127.0.0.1:8080}'




 // ses codeci yok http yayını

vlc.exe rtsp://admin:dtsis123@192.168.0.35/Streaming/Channels/101 :sout=#transcode{vcodec=H264,vb=800,scale=Otomatik,acodec=none,scodec=none}:http{mux=ts,dst=:8080/} :no-sout-all :sout-keep

vlc.exe rtsp://admin:dtsis123@192.168.0.35/Streaming/Channels/101 :sout=#transcode{vcodec=H264,vb=800,scale=Otomatik,acodec=none,scodec=none}:http{mux=webm,dst=:8080/} :no-sout-all :sout-keep




// mp3 dosyasını ogg olarak http 127.0.0.2:8080 üzerinden yayınlama 

vlc.exe -vvv a.mp3  :sout=#http{mux=ogg,dst=127.0.0.1:8080/} :sout-all :sout-keep



//mp3 dosyasını rtp olarak 127.0.0.2:8080 üzerinden yayınlama 

vlc.exe -vvv a.mp3 :sout=#rtp{dst=127.0.0.2,port=5004,mux=ts} :no-sout-all :sout-keep


// rtp yayınını dinlemek için 


vlc rtp://@:127.0.0.2:5004



// mp4 üzerinde yayınlama 

vlc.exe avid.mp4 :sout=#transcode{vcodec=theo,vb=1024,scale=Otomatik,acodec=vorb,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=ogg,dst=:1111/} :no-sout-all :sout-keep


// yayını 8080 prtundan veriyor ogg olarak

:sout=#transcode{vcodec=theo,vb=1024,scale=Otomatik,acodec=vorb,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=ogg,dst=:8080/} :sout-all :sout-keep


// yayını 8080 portundan veriyor ve duplicate ile de o sıra izlenmesini saglıyor 

vlc.exe rtsp://admin:dtsis123@192.168.0.35/Streaming/Channels/101 :sout=#transcode{vcodec=theo,vb=1024,scale=Otomatik,acodec=vorb,ab=128,channels=2,samplerate=44100,scodec=none}:duplicate{dst=http{mux=ogg,dst=:8080/},dst=display} :no-sout-all :sout-keep


 

// rtsp ile web yayını 

vlc.exe rtsp://admin:dtsis123@192.168.0.35/Streaming/Channels/101 :sout=#transcode{vcodec=theo,vb=1024,scale=Otomatik,acodec=vorb,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=ogg,dst=:8080/} :sout-all :sout-keep

 

 

 // ses yok 

 vlc.exe a.mp3 :no-audio

// video yok

vlc.exe avid.mp4 :no-video 

// video 50.saniyeden baslasın 


vlc.exe avid.mp4 :start-time=50




vlc.exe rtsp://admin:dtsis123@192.168.0.35/Streaming/Channels/101 :sout=#transcode{vcodec=VP8,vb=1024,scale=Otomatik,acodec=vorb,ab=128,channels=2,samplerate=44100,scodec=none}:duplicate{dst=http{mux=ogg,dst=:8080/},dst=display} :no-sout-all :sout-keep








vlc.exe rtsp://admin:dtsis123@192.168.0.35/Streaming/Channels/101 :sout=#transcode{vcodec=h264,vb=1024,scale=Otomatik,acodec=vorb,ab=128,channels=2,samplerate=44100,scodec=none}:duplicate{dst=http{mux=ts,dst=:8080/},dst=display} :no-sout-all :sout-keep


Share: