
Ubuntu日本語フォーラム

ログインしていません。
ニコ生でPCの音声を配信しようと思って試行錯誤したのですが、
JACKの接続やffmpegのインストールなどいろいろやり、静止画と音声をファイルに保存するところまで出来るようになりました。
ですが、ネット上に配信することだけがどうしても出来ません。rtmpの問題だと思います。
ffmpeg -y \
-f image2 -loop 1 -s 512x384 -i "(画像ファイル名)" -r 1 \
-f jack -i "ffmpeg" \
-f flv "(URL)/(Stream) flashver=FME/3.0\20(compatible;\20FMSc/1.0)"このようなスクリプトを実行すると、以下が出力されました。
ffmpeg version 2.4.3 Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 2 2014 20:49:55 with gcc 4.9.1 (Ubuntu 4.9.1-16ubuntu6)
configuration: --prefix=/opt/ffmpeg --libdir=/opt/ffmpeg/lib/ --enable-shared --enable-avresample --disable-stripping --enable-gpl --enable-version3 --enable-runtime-cpudetect --build-suffix=.ffmpeg --enable-postproc --enable-x11grab --enable-libcdio --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libfaac --enable-libvo-aacenc --enable-nonfree --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk_aac --enable-libopus --enable-pthreads --enable-zlib --enable-libvpx --enable-libfreetype --enable-libpulse --enable-debug=3
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, image2, from '(画像ファイル名)':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24, 960x960 [SAR 47244:47244 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
Cannot lock down 82274202 byte memory area (Cannot allocate memory)
Cannot use real-time scheduling (RR/5)(1: Operation not permitted)
JackClient::AcquireSelfRealTime error
[jack @ 0x131a420] JACK client registered and activated (rate=44100Hz, buffer_size=1024 frames)
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, jack, from 'ffmpeg':
Duration: N/A, start: 1416817286.654428, bitrate: 2822 kb/s
Stream #1:0: Audio: pcm_f32le, 44100 Hz, 2 channels, flt, 2822 kb/s
[rtmp @ 0x135be40] Detected librtmp style URL parameters, these aren't supported by the libavformat internal RTMP handler currently enabled. See the documentation for the correct way to pass parameters.
[rtmp @ 0x135be40] Unknown connect error (unsupported authentication method?)
[rtmp @ 0x135be40] Server error: Connection failed.
(URL)/(Stream) flashver=FME/3.0\20(compatible;\20FMSc/1.0): Unknown error occurredおそらく最後の3行がエラーだと思いますが、何か解決法はないでしょうか。
オフライン
ちょっと今更感はありますが、
自分は偶にLivecoding.tvというインターネット配信サービスを使っている時に、こちらを使っています。
cryptosan/Livecoding-Streamer-Linux: This is a script dedicated to stream to Twitch.tv with Webcam support
https://github.com/cryptosan/Livecoding-Streamer-Linux
こちらの元となっている以下のgithubのリポジトリを読んで・改修してみてはいかがでしょうか?
wargio/Twitch-Streamer-Linux: This is a script dedicated to stream to Twitch.tv with Webcam support
https://github.com/wargio/Twitch-Streamer-Linux
参考になれば幸いです。
オフライン