Advertisement
Guest User

Untitled

a guest
Jan 13th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. [hayuto@mydevil]:<~>$ cat hls.sh
  2. if [ "$1" = "hayuto" ]
  3. then
  4. /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
  5. fi
  6. [hayuto@mydevil]:<~>$ bash hls.sh hayuto
  7. ffmpeg version 0.7.15, Copyright (c) 2000-2013 the FFmpeg developers
  8. built on Apr 15 2013 14:38:35 with gcc 4.2.1 20070831 patched [FreeBSD]
  9. 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
  10. libavutil 50. 43. 0 / 50. 43. 0
  11. libavcodec 52.123. 0 / 52.123. 0
  12. libavformat 52.111. 0 / 52.111. 0
  13. libavdevice 52. 5. 0 / 52. 5. 0
  14. libavfilter 1. 80. 0 / 1. 80. 0
  15. libswscale 0. 14. 1 / 0. 14. 1
  16. libpostproc 51. 2. 0 / 51. 2. 0
  17. Metadata:
  18. Server NGINX RTMP (github.com/arut/nginx-rtmp-module)
  19. width 1280.00
  20. height 720.00
  21. displayWidth 1280.00
  22. displayHeight 720.00
  23. duration 0.00
  24. framerate 34.00
  25. fps 34.00
  26. videodatarate 1000.00
  27. videocodecid 0.00
  28. audiodatarate 96.00
  29. audiocodecid 0.00
  30. profile
  31. level
  32. [flv @ 0x80743e820] Estimating duration from bitrate, this may be inaccurate
  33.  
  34. Seems stream 0 codec frame rate differs from container frame rate: 2000.00 (2000/1) -> 34.00 (34/1)
  35. Input #0, flv, from 'rtmp://37.59.202.234:13335/live/hayuto':
  36. Duration: N/A, start: 1674.214000, bitrate: 96 kb/s
  37. Stream #0.0: Video: h264 (High), yuv420p, 1280x720, 34 tbr, 1k tbn, 2k tbc
  38. Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 96 kb/s
  39. [NULL @ 0x807423a20] [Eval @ 0x7fffffffc4d0] Undefined constant or missing '(' in 'baseline'
  40. [NULL @ 0x807423a20] Unable to parse option value "baseline"
  41. Invalid value 'baseline' for option 'vprofile'
  42. [hayuto@mydevil]:<~>$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement