X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=streaming.rst;h=13d68db3377d1715f247764b524aff164b20e0c2;hb=a6edc4466735e82826fe5e47a2b582498f74d404;hp=ecdce7b06279a94e502bcbc14110c73e15fef94e;hpb=05310f9b601c539536b1b86c655bde21fa2a5cf9;p=nageru-docs diff --git a/streaming.rst b/streaming.rst index ecdce7b..13d68db 100644 --- a/streaming.rst +++ b/streaming.rst @@ -46,9 +46,9 @@ most browsers in the \ tag:: http://http://yourserver.example.org:9095/stream.nut vlc://quit \ --sout '#transcode{vcodec=h264,vb=1500,acodec=mp4a,aenc=fdkaac,ab=128}:std{mux=ffmpeg{mux=mp4},access=http{mime=video/mp4},dst=:1994}' \ --sout-avformat-options '{movflags=empty_moov+frag_keyframe+default_base_moof}' \ - --sout-x264-vbv-maxrate 1500 --sout-x264-vbv-bufsize 1500 --sout-mux-caching 3000 \ - --sout-x264-keyint 50 --sout-mux-caching 3000 \ - --sout-x264-tune film --sout-x264-preset slow + --sout-x264-vbv-maxrate 1500 --sout-x264-vbv-bufsize 1500 \ + --sout-x264-keyint 50 --sout-x264-tune film --sout-x264-preset slow \ + --sout-mux-caching 3000 sleep 1 done @@ -109,6 +109,9 @@ from Android; it yields significantly better sound quality than e.g. FAAC, and it is open source, but under a somewhat cumbersome license. For this reason, most distributions do not compile FFmpeg with the FDK-AAC codec, so you will need to compile FFmpeg yourself, or use a worse codec. +FFmpeg `recommends `_ +their own native AAC encoder (simply called “aac”) in the absence of any +external libraries. For speed control, you can use:: @@ -146,3 +149,17 @@ spikes of 2x the nominal bitrate, but only on a one-second basis) and TCP retransmits. See the cubemap documentation for more information about how to set up pacing. +For transcoded Cubemap output from VLC you can take exactly the same line as +earlier, just adding “metacube” to the HTTP options:: + + while :; do + vlc -I dummy -v --network-caching 3000 \ + http://http://yourserver.example.org:9095/stream.nut vlc://quit \ + --sout '#transcode{vcodec=h264,vb=1500,acodec=mp4a,aenc=fdkaac,ab=128}:std{mux=ffmpeg{mux=mp4},access=http{mime=video/mp4,metacube},dst=:1994}' \ + --sout-avformat-options '{movflags=empty_moov+frag_keyframe+default_base_moof}' \ + --sout-x264-vbv-maxrate 1500 --sout-x264-vbv-bufsize 1500 \ + --sout-x264-keyint 50 --sout-x264-tune film --sout-x264-preset slow \ + --sout-mux-caching 3000 + sleep 1 + done +