mjrusso / livestreaming-js Goto Github PK
View Code? Open in Web Editor NEWHTTP Live Streaming, for node.js
License: Other
HTTP Live Streaming, for node.js
License: Other
Output from make:
$ make
gcc -Wall -g segmenter.c -o segmenter -lavformat -lavcodec -lavutil -lbz2 -lm -lz -lfaac -lmp3lame -lx264 -lfaad -lpthread
segmenter.c: In function ‘add_output_stream’:
segmenter.c:28:21: warning: implicit declaration of function ‘av_new_stream’ [-Wimplicit-function-declaration]
output_stream = av_new_stream(output_format_context, 0);
^
segmenter.c:28:19: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
output_stream = av_new_stream(output_format_context, 0);
^
segmenter.c:53:14: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
case CODEC_TYPE_AUDIO:
^
segmenter.c:53:14: note: each undeclared identifier is reported only once for each function it appears in
segmenter.c:65:14: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
case CODEC_TYPE_VIDEO:
^
segmenter.c: In function ‘main’:
segmenter.c:231:11: warning: implicit declaration of function ‘av_open_input_file’ [-Wimplicit-function-declaration]
ret = av_open_input_file(&ic, input, ifmt, 0, NULL);
^
segmenter.c:237:9: warning: implicit declaration of function ‘av_find_stream_info’ [-Wimplicit-function-declaration]
if (av_find_stream_info(ic) < 0) {
^
segmenter.c:242:12: warning: implicit declaration of function ‘guess_format’ [-Wimplicit-function-declaration]
ofmt = guess_format("mpegts", NULL, NULL);
^
segmenter.c:242:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
ofmt = guess_format("mpegts", NULL, NULL);
^
segmenter.c:260:18: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
case CODEC_TYPE_VIDEO:
^
segmenter.c:265:18: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
case CODEC_TYPE_AUDIO:
^
segmenter.c:276:9: warning: implicit declaration of function ‘av_set_parameters’ [-Wimplicit-function-declaration]
if (av_set_parameters(oc, NULL) < 0) {
^
segmenter.c:281:5: warning: implicit declaration of function ‘dump_format’ [-Wimplicit-function-declaration]
dump_format(oc, 0, output_prefix, 1);
^
segmenter.c:288:9: warning: implicit declaration of function ‘avcodec_open’ [-Wimplicit-function-declaration]
if (avcodec_open(video_st->codec, codec) < 0) {
^
segmenter.c:293:9: warning: implicit declaration of function ‘url_fopen’ [-Wimplicit-function-declaration]
if (url_fopen(&oc->pb, output_filename, URL_WRONLY) < 0) {
^
segmenter.c:293:45: error: ‘URL_WRONLY’ undeclared (first use in this function)
if (url_fopen(&oc->pb, output_filename, URL_WRONLY) < 0) {
^
segmenter.c:298:9: warning: implicit declaration of function ‘av_write_header’ [-Wimplicit-function-declaration]
if (av_write_header(oc)) {
^
segmenter.c:320:67: error: ‘PKT_FLAG_KEY’ undeclared (first use in this function)
if (packet.stream_index == video_index && (packet.flags & PKT_FLAG_KEY)) {
^
segmenter.c:321:13: warning: ‘pts’ is deprecated [-Wdeprecated-declarations]
segment_time = (double)video_st->pts.val * video_st->time_base.num / video_st->time_base.den;
^
In file included from segmenter.c:21:0:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:873:19: note: declared here
struct AVFrac pts;
^
segmenter.c:324:13: warning: ‘pts’ is deprecated [-Wdeprecated-declarations]
segment_time = (double)audio_st->pts.val * audio_st->time_base.num / audio_st->time_base.den;
^
In file included from segmenter.c:21:0:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:873:19: note: declared here
struct AVFrac pts;
^
segmenter.c:331:13: warning: implicit declaration of function ‘put_flush_packet’ [-Wimplicit-function-declaration]
put_flush_packet(oc->pb);
^
segmenter.c:332:13: warning: implicit declaration of function ‘url_fclose’ [-Wimplicit-function-declaration]
url_fclose(oc->pb);
^
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1
I previously installed libavutil-dev:amd64 (7:2.7.6-0ubuntu0.15.10.1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.