Giter Site home page Giter Site logo

moment's People

Contributors

dshatrov avatar

Stargazers

 avatar

Watchers

 avatar

moment's Issues

another moment compile error

Здравствуйте. Собираю компонент moment (последняя версия из git), натыкаюсь на следующую ошибку:

libtool: compile: g++ -DHAVE_CONFIG_H -I.. -I.. -Wextra -std=gnu++11 -ggdb -Wno-long-long -Wall -include local_config.h -DLIBMOMENT_PREFIX="/usr/local/lib" -pthread -I/usr/local/include/libmary-1.0 -I/usr/local/include/mconfig-1.0 -I/usr/local/include/pargen-1.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -DPLATFORM_DEFAULT -pthread -g -O2 -MT mod_file.lo -MD -MP -MF .deps/mod_file.Tpo -c mod_file.cpp -fPIC -DPIC -o .libs/mod_file.o
In file included from ../moment/moment_server.h:29:0,
from ../moment/channel.h:28,
from ../moment/libmoment.h:29,
from mod_file.cpp:24:
../moment/rtmp_connection.h:51:2: warning: #warning TODO get rid of in_destr_mutex by malloc'ing' part of RtmpConnection which is accessed [-Wcpp]
../moment/rtmp_connection.h:52:2: warning: #warning from receiver's' sync domain and using DeferredProcessor to schedule its deletion. [-Wcpp]
In file included from /usr/include/ctemplate/template_cache.h:43:0,
from /usr/include/ctemplate/template.h:41,
from mod_file.cpp:27:
/usr/include/ctemplate/template_string.h:380:5: error: unable to find string literal operator 'operator"" str'
make[3]: *** [mod_file.lo] Error 1
make[3]: Leaving directory /home/mint/moment/moment/moment' make[2]: *** [all] Error 2 make[2]: Leaving directory/home/mint/moment/moment/moment'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mint/moment/moment'
make: *** [all] Error 2

Предыдущие компоненты скомпилировались нормально (хоть и не без шаманств, не указанных в документации).

ctemplate брал отсюда (deb-пакеты для i386):
https://code.google.com/p/ctemplate/downloads/list

Куда копать?

configuration of local video source

Hello sir:

Sorry to trouble you .
I want to crate a video server in my computer with moment to share the video in my computer.

I put the video in my home folder: /home/usr/test.flv and /home/usr/test.avi

moment.conf

moment {
this_http_server_addr = 192.168.1.100:8980
this_rtmp_server_addr = 192.168.1.100:1935
this_rtmpt_server_addr = 192.168.1.100:8981

// Allow anonymous publishing
publish_all = yes
}

http {
http_bind = :8980
admin_bind = :8982
keepalive_timeout = 60
}

mod_rtmp {
rtmp_bind = :1935
rtmpt_bind = :8981

send_delay = 100
audio_waits_video = no
rtmpt_session_timeout = 30;
}

mod_gst {
streams {
{
name = test
/* Test stream: h.264, MP3 */
chain = "videotestsrc ! ffmpegcolorspace !
x264enc speed-preset=fast bitrate=300 key-int-max=25 threads=1 !
fakesink sync=true name=video
audiotestsrc ! lamemp3enc ! fakesink sync=true name=audio"

  /* Test stream: Sorenson h.263, Nellymoser
  chain = "videotestsrc ! ffmpegcolorspace ! \
               ffenc_flv bitrate=500000 ! fakesink sync=true name=video \
           audiotestsrc ! ffenc_nellymoser ! fakesink sync=true name=audio"
  */
}
{    /////////////////////////////////I add the configuration here//////////////////////////
  name = local
 playlist = "/opt/moment/playlist.xml"    
}

}

send_metadata = no
}

mod_file {
{
prefix = moment
path = "/opt/moment/myplayer"
}
{
prefix = mychat
path = "/opt/moment/mychat"
}
{
prefix = ""
path = "/opt/moment/share/moment/welcome"
}
}

playlist.xml

(playlist)

    (item )
            (path>/home/user/test.avi(/path)
    (/item)
    (item )
            (path)/home/user/test.flv(/path)
    (/item)

(/playlist)

//here, I use () instead of <> to describe issue in web .

myplayer/playlist.json

[
["Local TEST", "http://192.168.1.100:8980", "local"],
]


[issue]
I can't see the play list and can't play these video.
What's the problem in my configuration?
Could you help to correct there?
thanks a lot.

Фатальный стоп

Если нажать на кнопку остановки в каком-нибудь проигрывателе (и в JW и Flow так), а потом кнопочку play, то играть снова не начнёт.

Если перезагрузить страничку с плеером, можно будет опять нажать play.

Это даже если идёт ретрансляция стационарных потоков, а не потоков по требованию.

Вот здесь тест 4 стримов и конфиг (залинкован на боевой): http://188.40.35.6/moment.html

documentation problems

Имеются проблемы с документацией.

Во-первых, инструкция по сборке явно устарела: сейчас используется automake, но на сайте об этом ни слова.

Во-вторых, не очень понятен параметр loglevel основного бинарника: указано только, что нужно использовать один из параметров (A/D/I/W/E/H/F/N), но что какой из них обозначает -- не очень понятно.

moment compile :No package 'libctemplate' found

Hello sir:
I compile moment as the order as your document.

while I input ./configure in moment-master , I get below message:

checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for THIS... no
configure: error: Package requirements (libmary-1.0 >= 0.1, mconfig-1.0 >= 0.1 , libctemplate >= 1.0 , gstreamer-0.10, gstreamer-app-0.10) were not met:

No package 'libctemplate' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.


I install libctemplate-dev in ubutnu 12.04.

But I still get the message.

Can you help to confirm what wrong with my operation.

Best Regards

Floating point exception

Вываливается при попытке ретрансляции mjpeg'а как на 32-битной, так и на 64-битной сборке с SourceForge (1.2.0).

Ставлю, правлю секцию mod_gst в дефолтном конфиге так, как написано здесь: http://momentvideo.org/doc_config.ru.html#ipcam (удалив старые активный и закоментированную chain). Меняю URL mjpeg-потока. Запускаю сервер. Через пару секунд сервер сваливается с Floating point exception.

Пример секции (остальное не менялось). Последние Ubuntu 32 и 64.
mod_gst {
streams {
{
name = test

  chain = "souphttpsrc location=http://webcam.trtk.ru/axis-cgi/mjpg/video.cgi ! \
         multipartdemux ! jpegdec ! ffmpegcolorspace !             \
         x264enc speed-preset=ultrafast bitrate=500 !  \
         fakesink name=video"
}

}

send_metadata = no
}

А вообще продукт выглядит великолепно. Очень хочется пощупать его в действии.

RTSP

Беру какой-нибудь RTSP-поток.

Например:
rtsp://live.net.treet.tv/slcnlive.sdp
rtsp://streaming1.osu.edu/media2/ufsap/ufsap.mov
rtsp://202.125.158.230:554/stream1_wifi.sdp

Проверяю, что они живые: http://www.vlc.eu.pn/

Прошу забрать и выпустить наружу по RTMP
mod_gst {
{
name = m3
title = "rtsp"
uri = "rtsp://202.125.158.230:554/stream1_wifi.sdp"
}
}

Ничего не получается. JWPlayer не играет.

А другие потоки (mms, mjpeg) рядом играет.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.