0

このコードを使用すると、デスクトップのストリームが iPhone に表示されます。

vlc -I dummy screen:// vlc://quit --sout='#transcode{threads=300,width=554,height=367,fps=30,vcodec=h264,vb=500000,venc=x264{aud,profile=baseline,level=30,keyint=30,bframes=0,ref=1}}:duplicate{dst=std{access=livehttp{seglen=10,delsegs=true,numsegs=100,index=/var/www/streaming/mystream.m3u8,index-url=http://localhost/streaming/mystream-########.ts},mux=ts{use-key-frames},dst=/var/www/streaming/mystream-########.ts}};

しかし、30〜40秒のように大きな遅延があります...この遅延を減らす方法を知っていますか?

私が欲しいのは:

• iPhone の 600x400 ウィンドウのデスクトップを鮮明にストリーミング

• 音声なし

• 1 ~ 2 秒の最大遅延

ストリームのやり方を知っていますか?

4

1 に答える 1

0

私が得る最良のストリームはffmpegからのものですが、常に7〜8秒の遅延があります. これは文字列です:

ffmpeg -f x11grab -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -r 25 -i :0.0 -pix_fmt yuv420p -vcodec libx264 -acodec libfaac -r 25 -profile:v baseline -b:v 1500k -x264opts keyint=25 -s 640x360 -map 0 -flags -global_header -f segment -segment_list index_1500.m3u8 -segment_time 1 -segment_format mpeg_ts -segment_list_type m3u8 -segment_list_flags +live -segment_list_size 1 segment%05d.ts
于 2013-04-27T10:47:45.080 に答える