Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [hayuto@mydevil]:<~>$ cat hls.sh
- if [ "$1" = "hayuto" ]
- then
- /usr/local/bin/ffmpeg -re -i rtmp://37.59.202.234:13335/live/hayuto -vcodec libx264 -vprofile baseline -g 10 -acodec libfaac -ar 44100 -ac 1 -f flv rtmp://37.59.202.234:13335/hls/hayuto
- fi
- [hayuto@mydevil]:<~>$ bash hls.sh hayuto
- ffmpeg version 0.7.15, Copyright (c) 2000-2013 the FFmpeg developers
- built on Apr 15 2013 14:38:35 with gcc 4.2.1 20070831 patched [FreeBSD]
- configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --enable-libdirac --disable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --enable-libmp3lame --enable-libopencv --disable-libopenjpeg --enable-librtmp --enable-libschroedinger --disable-ffplay --enable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree
- libavutil 50. 43. 0 / 50. 43. 0
- libavcodec 52.123. 0 / 52.123. 0
- libavformat 52.111. 0 / 52.111. 0
- libavdevice 52. 5. 0 / 52. 5. 0
- libavfilter 1. 80. 0 / 1. 80. 0
- libswscale 0. 14. 1 / 0. 14. 1
- libpostproc 51. 2. 0 / 51. 2. 0
- Metadata:
- Server NGINX RTMP (github.com/arut/nginx-rtmp-module)
- width 1280.00
- height 720.00
- displayWidth 1280.00
- displayHeight 720.00
- duration 0.00
- framerate 34.00
- fps 34.00
- videodatarate 1000.00
- videocodecid 0.00
- audiodatarate 96.00
- audiocodecid 0.00
- profile
- level
- [flv @ 0x80743e820] Estimating duration from bitrate, this may be inaccurate
- Seems stream 0 codec frame rate differs from container frame rate: 2000.00 (2000/1) -> 34.00 (34/1)
- Input #0, flv, from 'rtmp://37.59.202.234:13335/live/hayuto':
- Duration: N/A, start: 1674.214000, bitrate: 96 kb/s
- Stream #0.0: Video: h264 (High), yuv420p, 1280x720, 34 tbr, 1k tbn, 2k tbc
- Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 96 kb/s
- [NULL @ 0x807423a20] [Eval @ 0x7fffffffc4d0] Undefined constant or missing '(' in 'baseline'
- [NULL @ 0x807423a20] Unable to parse option value "baseline"
- Invalid value 'baseline' for option 'vprofile'
- [hayuto@mydevil]:<~>$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement