can happen to want to do un'operazioncina so (never mind why): having a video stream as possible to the definition that is streamed via RTP (Ie UDP). therefore not worth the HTTP / TCP. that is not worth publishing the video on a web page. video format as you have freedom of choice, as well as for the player. all obviously on a local network at your disposal.
solution is adopted, and implemented in these parts was as follows. - install linux on a machine the darwin streaming server note from factory fruit
through a special small instruments
- update vlc
(not essential) - convert. Mov via
mplayer, mencoder and mp4creator
using the following scriptino
#! / Bin / bash BRATE = 5000 rm-f divx2pass.log mencoder $ 1-o / dev / null-ovc x264-x264encopts pass = 1: turbo: bitrate = $ BRATE: bframes = 1: me = UMH : partitions = all: trellis = 1: qp _step = 4: = 0.7 qcomp: direct_pred = self: keyint = 300-vf scale =- 10: -1, harddup-oac faac-faacopts br = 192: mpeg = 4: object = 2-Chann the 2-srate 48000-ofps 24000/1001
& & mencoder $ 1-o $ 1.avi-ovc x264-x264encopts pass = 2: turbo: bitrate = $ BRATE: bframes = 1: me UMH =: partitions = all: trellis = 1: qp_st
- update vlc
(not essential) - convert. Mov via
mplayer, mencoder and mp4creator
using the following scriptino
#! / Bin / bash BRATE = 5000 rm-f divx2pass.log mencoder $ 1-o / dev / null-ovc x264-x264encopts pass = 1: turbo: bitrate = $ BRATE: bframes = 1: me = UMH : partitions = all: trellis = 1: qp _step = 4: = 0.7 qcomp: direct_pred = self: keyint = 300-vf scale =- 10: -1, harddup-oac faac-faacopts br = 192: mpeg = 4: object = 2-Chann the 2-srate 48000-ofps 24000/1001
& & mencoder $ 1-o $ 1.avi-ovc x264-x264encopts pass = 2: turbo: bitrate = $ BRATE: bframes = 1: me UMH =: partitions = all: trellis = 1: qp_st
ep = 4: = 0.7 qcomp: direct_pred = self: keyint = 300-vf scale =- 10: -1, oac faac-faacopts harddup-br = 192: mpeg = 4: object = 2-channels
2-srate 48000-ofps 24000/1001
& & $ mplayer-dumpfile $ 1.avi-dumpaudio 1.aac
& & $ mplayer-dumpfile $ 1.avi-dumpvideo 1.h264 & &
mp4creator -create = 1.mp4 & & $ $ 1.aac
mp4creator-create = $ rate = $ 23,976 1.h264-1.mp4 & &
mp4creator-hint = $ 1-1.mp4 & &
mp4creator hint $ 2 = 1.mp4 & & $ 1.mp4
mp4creator-optimize & & $ list
mp4creator-1.mp4 & & rm
1.avi $ $ $ 1.aac 1.h264
et voila! comes out a file . Mp4 perfectly intelligible by VLC (open source network -> rtsp: / / server/file.mp4).
then for safety, I also have the darwin redundant server on a Windows machine this time.
0 comments:
Post a Comment