Всем привет. Есть задача взять входящий http MPEG2 видео поток, прекодировать в H264 и транслировать в HLS. Взял связку ffmpeg ffserver. Получаю на выхоже такую ошибку.
Tue Jan 3 14:23:57 2017 [hls @ 0x40447d0]failed to rename file .tmp to
ffserver version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Конфиг файл ffserver.conf
HTTPPort 8080
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 20000
CustomLog -
<Feed feed1.ffm>
File /home/tmp/live1/feed1.ffm
FileMaxSize 1000M
Launch ffmpeg -i http://x.x.x.x -c:v libx264 -s 720x576 -acodec mp2 -f hls -hls_time 100 -hls_list_size 100 -hls_wrap 100 test1.ts /home/tmp/live1/test1.m3u8
ACL allow localhost
</Feed>
<Feed feed2.ffm>
File /home/tmp/live2/feed2.ffm
FileMaxSize 1000M
Launch ffmpeg -i http://x.x.x.x -c:v libx264 -s 704x576 -acodec mp2 -f hls -hls_time 100 -hls_list_size 100 -hls_wrap 100 test2.ts /home/tmp/live2/test2.m3u8
ACL allow localhost
</Feed>
# if you want to use mpegts format instead of flv
# then change "live.flv" to "live.ts"
# and also change "Format flv" to "Format mpegts"
<Stream test1.m3u8>
NoDefaults
Feed feed1.ffm
Format HLS
VideoCodec libx264
VideoFrameRate 30
VideoBitRate 2000
VideoSize 720*576
AVOptionVideo flags +global_header
AudioCodec mp2
AudioBitRate 128
AudioChannels 2
AudioSampleRate 48000
</Stream>
<Stream test2.m3u8>
NoDefaults
Feed feed2.ffm
Format HLS
VideoCodec libx264
VideoFrameRate 30
VideoBitRate 2000
VideoSize 704*576
AVOptionVideo flags +global_header
AudioCodec mp2
AudioBitRate 128
AudioChannels 2
AudioSampleRate 48000
</Stream>
<Stream stat.html>
Format status
# Only allow local people to get the status
ACL allow localhost
</Stream>