I am following the tutorial on how to install an Automated DVR with commercial detection. [HowTo] Autoedit – Fully automated DVR with commercial detection - #16 by t2rich
To get ffmpeg to install correctly, I needed to modify the …/sources/ffmpeg/x265/source/CmakeLists.txt file and change -mcpu=native to -mcpu=cortex-a53 and -march=native to -march=armv8-a. It was a suggestion to get Comskip to compile and work.
I ran this script at the end </>ffmpeg -encoders | grep omx</> and got the correct output.
When I try to make Comskip after I </>./configure</> and then </>make</> I get the following error:
/usr/bin/ld: cannot find -lx265
collect2: error: ld returned 1 exit status
Makefile:423: recipe for target 'comskip' failed
How do I install lx265?
Thanks
For a RPi3 what should I make that value?
armv7-a
But I guess there are other options in that command not fitting the Pi3
I reinstalled ffmpeg changing the CmakeLists.txt file for these two text strings
-mcpu=native to -mcpu=arm1176jzf-s
-march=native to -march=armv7-a
Again ffmpeg installed correctly. When I go to make Comskip. I get the same error.
osmc@osmc:~/sources/Comskip$ make -j4
gcc -DPACKAGE_NAME=\"Comskip\" -DPACKAGE_TARNAME=\"comskip\" -DPACKAGE_VERSION=\"0.81.098\" -DPACKAGE_STRING=\"Comskip\ 0.81.098\" -DPACKAGE_BUGREPORT=\"https://github.com/erikkaashoek/Comskip/issues\" -DPACKAGE_URL=\"\" -DPACKAGE=\"comskip\" -DVERSION=\"0.81.098\" -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -Wall -I/usr/local/include -DPROCESS_CC -DDONATOR -I/opt/vc/include -I/home/osmc/ffmpeg_build/include -g -O2 -MT comskip-comskip.o -MD -MP -MF .deps/comskip-comskip.Tpo -c -o comskip-comskip.o `test -f 'comskip.c' || echo './'`comskip.c
gcc -DPACKAGE_NAME=\"Comskip\" -DPACKAGE_TARNAME=\"comskip\" -DPACKAGE_VERSION=\"0.81.098\" -DPACKAGE_STRING=\"Comskip\ 0.81.098\" -DPACKAGE_BUGREPORT=\"https://github.com/erikkaashoek/Comskip/issues\" -DPACKAGE_URL=\"\" -DPACKAGE=\"comskip\" -DVERSION=\"0.81.098\" -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -Wall -I/usr/local/include -DPROCESS_CC -DDONATOR -I/opt/vc/include -I/home/osmc/ffmpeg_build/include -g -O2 -MT comskip-mpeg2dec.o -MD -MP -MF .deps/comskip-mpeg2dec.Tpo -c -o comskip-mpeg2dec.o `test -f 'mpeg2dec.c' || echo './'`mpeg2dec.c
gcc -DPACKAGE_NAME=\"Comskip\" -DPACKAGE_TARNAME=\"comskip\" -DPACKAGE_VERSION=\"0.81.098\" -DPACKAGE_STRING=\"Comskip\ 0.81.098\" -DPACKAGE_BUGREPORT=\"https://github.com/erikkaashoek/Comskip/issues\" -DPACKAGE_URL=\"\" -DPACKAGE=\"comskip\" -DVERSION=\"0.81.098\" -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -Wall -I/usr/local/include -DPROCESS_CC -DDONATOR -I/opt/vc/include -I/home/osmc/ffmpeg_build/include -g -O2 -MT comskip-platform.o -MD -MP -MF .deps/comskip-platform.Tpo -c -o comskip-platform.o `test -f 'platform.c' || echo './'`platform.c
gcc -DPACKAGE_NAME=\"Comskip\" -DPACKAGE_TARNAME=\"comskip\" -DPACKAGE_VERSION=\"0.81.098\" -DPACKAGE_STRING=\"Comskip\ 0.81.098\" -DPACKAGE_BUGREPORT=\"https://github.com/erikkaashoek/Comskip/issues\" -DPACKAGE_URL=\"\" -DPACKAGE=\"comskip\" -DVERSION=\"0.81.098\" -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -Wall -I/usr/local/include -DPROCESS_CC -DDONATOR -I/opt/vc/include -I/home/osmc/ffmpeg_build/include -g -O2 -MT comskip-video_out_dx.o -MD -MP -MF .deps/comskip-video_out_dx.Tpo -c -o comskip-video_out_dx.o `test -f 'video_out_dx.c' || echo './'`video_out_dx.c
mv -f .deps/comskip-video_out_dx.Tpo .deps/comskip-video_out_dx.Po
gcc -DPACKAGE_NAME=\"Comskip\" -DPACKAGE_TARNAME=\"comskip\" -DPACKAGE_VERSION=\"0.81.098\" -DPACKAGE_STRING=\"Comskip\ 0.81.098\" -DPACKAGE_BUGREPORT=\"https://github.com/erikkaashoek/Comskip/issues\" -DPACKAGE_URL=\"\" -DPACKAGE=\"comskip\" -DVERSION=\"0.81.098\" -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -Wall -I/usr/local/include -DPROCESS_CC -DDONATOR -I/opt/vc/include -I/home/osmc/ffmpeg_build/include -g -O2 -MT ccextratorwin/comskip-608.o -MD -MP -MF ccextratorwin/.deps/comskip-608.Tpo -c -o ccextratorwin/comskip-608.o `test -f 'ccextratorwin/608.c' || echo './'`ccextratorwin/608.c
mv -f .deps/comskip-platform.Tpo .deps/comskip-platform.Po
gcc -DPACKAGE_NAME=\"Comskip\" -DPACKAGE_TARNAME=\"comskip\" -DPACKAGE_VERSION=\"0.81.098\" -DPACKAGE_STRING=\"Comskip\ 0.81.098\" -DPACKAGE_BUGREPORT=\"https://github.com/erikkaashoek/Comskip/issues\" -DPACKAGE_URL=\"\" -DPACKAGE=\"comskip\" -DVERSION=\"0.81.098\" -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -Wall -I/usr/local/include -DPROCESS_CC -DDONATOR -I/opt/vc/include -I/home/osmc/ffmpeg_build/include -g -O2 -MT ccextratorwin/comskip-ccextractor.o -MD -MP -MF ccextratorwin/.deps/comskip-ccextractor.Tpo -c -o ccextratorwin/comskip-ccextractor.o `test -f 'ccextratorwin/ccextractor.c' || echo './'`ccextratorwin/ccextractor.c
mpeg2dec.c: In function 'retreive_frame_volume':
mpeg2dec.c:379:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
int s_per_frame = (to_pts - from_pts) * (double)(is->audio_st->codec->sample_rate+1);
^
mpeg2dec.c:388:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
buffer = & audio_buffer[(int)((from_pts - base_apts) * ((double)is->audio_st->codec->sample_rate+0.5) )];
^
mpeg2dec.c:401:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
audio_samples -= (int)((from_pts - base_apts) * (is->audio_st->codec->sample_rate+0.5)); // incomplete frame before complete frame
^
mpeg2dec.c:434:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
top_apts = base_apts + audio_samples / (double)(is->audio_st->codec->sample_rate);
^
mpeg2dec.c: In function 'sound_to_frames':
mpeg2dec.c:476:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (old_sample_rate == is->audio_st->codec->sample_rate &&
^
mpeg2dec.c:478:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
|| (top_apts - base_apts) * (is->audio_st->codec->sample_rate+0.5) > AUDIOBUFFER
^
mpeg2dec.c:480:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
|| !ISSAME(((double)audio_samples /(double)(is->audio_st->codec->sample_rate+0.5))+ base_apts, top_apts)
^
mpeg2dec.c:496:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (old_sample_rate != 0 && old_sample_rate != is->audio_st->codec->sample_rate) {
^
mpeg2dec.c:497:10: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
Debug(5, "Audio samplerate switched from %d to %d\n", old_sample_rate, is->audio_st->codec->sample_rate );
^
mpeg2dec.c:499:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
old_sample_rate = is->audio_st->codec->sample_rate;
^
mpeg2dec.c:502:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (fabs(base_apts - (is->audio_clock - ((double)audio_samples /(double)(is->audio_st->codec->sample_rate))))> 0.0001)
^
mpeg2dec.c:503:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
base_apts = (is->audio_clock - ((double)audio_samples /(double)(is->audio_st->codec->sample_rate)));
^
mpeg2dec.c:504:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (ALIGN_AC3_PACKETS && is->audio_st->codec->codec_id == AV_CODEC_ID_AC3) {
^
mpeg2dec.c:529:13: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
for (l=0;l < is->audio_st->codec->channels;l++ )
^
mpeg2dec.c:537:21: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
for (l=0;l < is->audio_st->codec->channels;l++ ) volume += *((fb[l])++) * 64000;
^
mpeg2dec.c:539:21: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
for (l=0;l < is->audio_st->codec->channels;l++ ) volume += *((fb[0])++) * 64000;
^
mpeg2dec.c:540:17: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
*audio_buffer_ptr++ = volume / is->audio_st->codec->channels;
^
mpeg2dec.c:541:17: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
avg_volume += abs(volume / is->audio_st->codec->channels);
^
mpeg2dec.c:546:13: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
for (l=0;l < is->audio_st->codec->channels;l++ )
^
mpeg2dec.c:554:21: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
for (l=0;l < is->audio_st->codec->channels;l++ ) volume += *((sb[l])++);
^
mpeg2dec.c:556:21: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
for (l=0;l < is->audio_st->codec->channels;l++ ) volume += *((sb[0])++);
^
mpeg2dec.c:557:17: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
*audio_buffer_ptr++ = volume / is->audio_st->codec->channels;
^
mpeg2dec.c:558:17: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
avg_volume += abs(volume / is->audio_st->codec->channels);
^
mpeg2dec.c:564:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
top_apts = base_apts + audio_samples / (double)(is->audio_st->codec->sample_rate);
^
mpeg2dec.c: In function 'audio_packet_process':
mpeg2dec.c:602:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if ( !ALIGN_AC3_PACKETS && is->audio_st->codec->codec_id == AV_CODEC_ID_AC3
^
mpeg2dec.c:615:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (ALIGN_AC3_PACKETS && is->audio_st->codec->codec_id == AV_CODEC_ID_AC3) {
^
mpeg2dec.c:666:13: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (ALIGN_AC3_PACKETS && is->audio_st->codec->codec_id == AV_CODEC_ID_AC3) {
^
mpeg2dec.c:710:9: warning: 'avcodec_decode_audio4' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4929) [-Wdeprecated-declarations]
len1 = avcodec_decode_audio4(is->audio_st->codec, is->frame, &got_frame, pkt_temp);
^
mpeg2dec.c:710:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
mpeg2dec.c:712:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (prev_codec_id != -1 && (unsigned int)prev_codec_id != is->audio_st->codec->codec_id)
^
mpeg2dec.c:716:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
prev_codec_id = is->audio_st->codec->codec_id;
^
mpeg2dec.c:721:13: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (is->audio_st->codec->codec_id == AV_CODEC_ID_AC3) ac3_packet_index = 0;
^
mpeg2dec.c:754:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (ALIGN_AC3_PACKETS && is->audio_st->codec->codec_id == AV_CODEC_ID_AC3) {
^
mpeg2dec.c: In function 'DoSeekRequest':
mpeg2dec.c:1037:13: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
avcodec_flush_buffers(is->audio_st->codec);
^
mpeg2dec.c:1041:13: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
avcodec_flush_buffers(is->video_st->codec);
^
mpeg2dec.c: In function 'video_packet_process':
mpeg2dec.c:1202:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (!hardware_decode) is->video_st->codec->flags |= CODEC_FLAG_GRAY;
^
mpeg2dec.c:1204:5: warning: 'avcodec_decode_video2' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4978) [-Wdeprecated-declarations]
len1 = avcodec_decode_video2(is->video_st->codec, is->pFrame, &frameFinished,
^
mpeg2dec.c:1204:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
mpeg2dec.c:1231:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
frame_delay = av_q2d(is->video_st->codec->time_base) * is->video_st->codec->ticks_per_frame ;
^
mpeg2dec.c:1231:9: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
mpeg2dec.c:1343:17: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (!ISSAME(3*frame_delay/ is->video_st->codec->ticks_per_frame, calculated_delay))
^
mpeg2dec.c:1344:21: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (!ISSAME(1*frame_delay/ is->video_st->codec->ticks_per_frame, calculated_delay))
^
mpeg2dec.c:1359:13: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
&& !ISSAME(3*frame_delay/ is->video_st->codec->ticks_per_frame, calculated_delay)
^
mpeg2dec.c:1360:13: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
&& !ISSAME(1*frame_delay/ is->video_st->codec->ticks_per_frame, calculated_delay)
^
mpeg2dec.c: In function 'stream_component_open':
mpeg2dec.c:1605:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
codecCtx = pFormatCtx->streams[stream_index]->codec;
^
mpeg2dec.c:1755:13: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
is->video_st->codec->ticks_per_frame = 1;
^
mpeg2dec.c: In function 'file_open':
mpeg2dec.c:1939:13: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
is->fps = 1/av_q2d(is->video_st->codec->time_base);
^
mpeg2dec.c: In function 'file_close':
mpeg2dec.c:2011:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (is->videoStream != -1) avcodec_close(is->pFormatCtx->streams[is->videoStream]->codec);
^
mpeg2dec.c:2015:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (is->audioStream != -1) avcodec_close(is->pFormatCtx->streams[is->audioStream]->codec);
^
mpeg2dec.c:2017:5: warning: 'codec' is deprecated (declared at /usr/local/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (is->subtitleStream != -1) avcodec_close(is->pFormatCtx->streams[is->subtitleStream]->codec);
^
mv -f ccextratorwin/.deps/comskip-608.Tpo ccextratorwin/.deps/comskip-608.Po
gcc -DPACKAGE_NAME=\"Comskip\" -DPACKAGE_TARNAME=\"comskip\" -DPACKAGE_VERSION=\"0.81.098\" -DPACKAGE_STRING=\"Comskip\ 0.81.098\" -DPACKAGE_BUGREPORT=\"https://github.com/erikkaashoek/Comskip/issues\" -DPACKAGE_URL=\"\" -DPACKAGE=\"comskip\" -DVERSION=\"0.81.098\" -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -Wall -I/usr/local/include -DPROCESS_CC -DDONATOR -I/opt/vc/include -I/home/osmc/ffmpeg_build/include -g -O2 -MT ccextratorwin/comskip-encoding.o -MD -MP -MF ccextratorwin/.deps/comskip-encoding.Tpo -c -o ccextratorwin/comskip-encoding.o `test -f 'ccextratorwin/encoding.c' || echo './'`ccextratorwin/encoding.c
mv -f ccextratorwin/.deps/comskip-encoding.Tpo ccextratorwin/.deps/comskip-encoding.Po
gcc -DPACKAGE_NAME=\"Comskip\" -DPACKAGE_TARNAME=\"comskip\" -DPACKAGE_VERSION=\"0.81.098\" -DPACKAGE_STRING=\"Comskip\ 0.81.098\" -DPACKAGE_BUGREPORT=\"https://github.com/erikkaashoek/Comskip/issues\" -DPACKAGE_URL=\"\" -DPACKAGE=\"comskip\" -DVERSION=\"0.81.098\" -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -Wall -I/usr/local/include -DPROCESS_CC -DDONATOR -I/opt/vc/include -I/home/osmc/ffmpeg_build/include -g -O2 -MT ccextratorwin/comskip-general_loop.o -MD -MP -MF ccextratorwin/.deps/comskip-general_loop.Tpo -c -o ccextratorwin/comskip-general_loop.o `test -f 'ccextratorwin/general_loop.c' || echo './'`ccextratorwin/general_loop.c
In file included from ccextratorwin/general_loop.c:2:0:
ccextratorwin/general_loop.c: In function 'ts_getmoredata':
ccextratorwin/general_loop.c:295:21: warning: the address of 'tsheader' will always evaluate as 'true' [-Waddress]
buffered_read_4(tsheader);
^
ccextratorwin/ccextractor.h:149:9: note: in definition of macro 'buffered_read_4'
if (buffer) { buffer[0]=filebuffer[filebuffer_pos]; \
^
ccextratorwin/ccextractor.h:143:15: warning: the comparison will always evaluate as 'true' for the address of 'adlength' will never be NULL [-Waddress]
if (buffer!=NULL) memcpy (buffer,filebuffer+filebuffer_pos,bytes); \
^
ccextratorwin/general_loop.c:352:7: note: in expansion of macro 'buffered_read'
buffered_read (&adlength, 1);
^
mv -f ccextratorwin/.deps/comskip-ccextractor.Tpo ccextratorwin/.deps/comskip-ccextractor.Po
gcc -DPACKAGE_NAME=\"Comskip\" -DPACKAGE_TARNAME=\"comskip\" -DPACKAGE_VERSION=\"0.81.098\" -DPACKAGE_STRING=\"Comskip\ 0.81.098\" -DPACKAGE_BUGREPORT=\"https://github.com/erikkaashoek/Comskip/issues\" -DPACKAGE_URL=\"\" -DPACKAGE=\"comskip\" -DVERSION=\"0.81.098\" -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -Wall -I/usr/local/include -DPROCESS_CC -DDONATOR -I/opt/vc/include -I/home/osmc/ffmpeg_build/include -g -O2 -MT ccextratorwin/comskip-myth.o -MD -MP -MF ccextratorwin/.deps/comskip-myth.Tpo -c -o ccextratorwin/comskip-myth.o `test -f 'ccextratorwin/myth.c' || echo './'`ccextratorwin/myth.c
In file included from ccextratorwin/myth.c:4:0:
ccextratorwin/myth.c: In function 'get_be16':
ccextratorwin/myth.c:290:25: warning: the address of 'a' will always evaluate as 'true' [-Waddress]
buffered_read_byte (&a);
^
ccextratorwin/ccextractor.h:158:9: note: in definition of macro 'buffered_read_byte'
if (buffer) { *buffer=filebuffer[filebuffer_pos]; \
^
ccextratorwin/myth.c:291:25: warning: the address of 'b' will always evaluate as 'true' [-Waddress]
buffered_read_byte (&b);
^
ccextratorwin/ccextractor.h:158:9: note: in definition of macro 'buffered_read_byte'
if (buffer) { *buffer=filebuffer[filebuffer_pos]; \
^
ccextratorwin/myth.c: In function 'get_byte':
ccextratorwin/myth.c:298:21: warning: the address of 'b' will always evaluate as 'true' [-Waddress]
buffered_read_byte(&b);
^
ccextratorwin/ccextractor.h:158:9: note: in definition of macro 'buffered_read_byte'
if (buffer) { *buffer=filebuffer[filebuffer_pos]; \
^
ccextratorwin/myth.c: In function 'find_next_start_code':
ccextratorwin/myth.c:340:29: warning: the address of 'cx' will always evaluate as 'true' [-Waddress]
buffered_read_byte (&cx);
^
ccextratorwin/ccextractor.h:158:9: note: in definition of macro 'buffered_read_byte'
if (buffer) { *buffer=filebuffer[filebuffer_pos]; \
^
ccextratorwin/myth.c: In function 'mpegps_read_pes_header':
ccextratorwin/myth.c:38:33: warning: overflow in implicit constant conversion [-Woverflow]
#define AV_NOPTS_VALUE (int64_t)(0x8000000000000000)
^
ccextratorwin/myth.c:433:11: note: in expansion of macro 'AV_NOPTS_VALUE'
pts = AV_NOPTS_VALUE;
^
ccextratorwin/myth.c:38:33: warning: overflow in implicit constant conversion [-Woverflow]
#define AV_NOPTS_VALUE (int64_t)(0x8000000000000000)
^
ccextratorwin/myth.c:434:11: note: in expansion of macro 'AV_NOPTS_VALUE'
dts = AV_NOPTS_VALUE;
^
ccextratorwin/myth.c: In function 'ProcessVBIDataPacket':
ccextratorwin/myth.c:559:20: warning: overflow in implicit constant conversion [-Woverflow]
linemask = 0xffffffffffffffff;
^
ccextratorwin/myth.c: In function 'mpegps_read_packet':
ccextratorwin/myth.c:724:1: warning: label 'found' defined but not used [-Wunused-label]
found:
^
mv -f ccextratorwin/.deps/comskip-myth.Tpo ccextratorwin/.deps/comskip-myth.Po
mv -f ccextratorwin/.deps/comskip-general_loop.Tpo ccextratorwin/.deps/comskip-general_loop.Po
mv -f .deps/comskip-mpeg2dec.Tpo .deps/comskip-mpeg2dec.Po
mv -f .deps/comskip-comskip.Tpo .deps/comskip-comskip.Po
gcc -g -O2 -L/opt/vc/lib -L/opt/vc/lib/pkgconfig -L/opt/vc/lib/plugins -o comskip comskip-comskip.o comskip-mpeg2dec.o comskip-platform.o comskip-video_out_dx.o ccextratorwin/comskip-608.o ccextratorwin/comskip-ccextractor.o ccextratorwin/comskip-encoding.o ccextratorwin/comskip-general_loop.o ccextratorwin/comskip-myth.o -largtable2 -L/usr/local/lib -L/home/osmc/ffmpeg_build/lib -L/usr/local/lib -L/home/osmc/ffmpeg_build/lib -L/usr/local/lib -lavformat -ldl -lass -lm -lharfbuzz -lfontconfig -lexpat -lfreetype -lexpat -lenca -lm -lfribidi -lfreetype -lz -lpng12 -lvdpau -lX11 -lva -lva-x11 -lX11 -lva -lva-drm -lva -lxcb -lXau -lXdmcp -lxcb-shm -lxcb -lXau -lXdmcp -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lXau -lXdmcp -lxcb-shape -lxcb -lXau -lXdmcp -lasound -lmmal_core -lmmal_util -lmmal_vc_client -lbcm_host -lx265 -lstdc++ -lm -lrt -ldl -lx264 -lpthread -lm -ldl -lvpx -lm -lpthread -lvpx -lm -lpthread -lvpx -lm -lpthread -lvpx -lm -lpthread -lvorbisenc -lvorbis -lm -logg -lvorbis -lm -logg -ltheoraenc -ltheoradec -logg -lopus -lm -lopus -lm -lmp3lame -lfreetype -lz -lpng12 -lfdk-aac -lm -lass -lm -lharfbuzz -lfontconfig -lexpat -lfreetype -lexpat -lenca -lm -lfribidi -lfreetype -lz -lpng12 -lm -lz -pthread -lavcodec -ldl -lass -lm -lharfbuzz -lfontconfig -lexpat -lfreetype -lexpat -lenca -lm -lfribidi -lfreetype -lz -lpng12 -lvdpau -lX11 -lva -lva-x11 -lX11 -lva -lva-drm -lva -lxcb -lXau -lXdmcp -lxcb-shm -lxcb -lXau -lXdmcp -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lXau -lXdmcp -lxcb-shape -lxcb -lXau -lXdmcp -lasound -lmmal_core -lmmal_util -lmmal_vc_client -lbcm_host -lx265 -lstdc++ -lm -lrt -ldl -lx264 -lpthread -lm -ldl -lvpx -lm -lpthread -lvpx -lm -lpthread -lvpx -lm -lpthread -lvpx -lm -lpthread -lvorbisenc -lvorbis -lm -logg -lvorbis -lm -logg -ltheoraenc -ltheoradec -logg -lopus -lm -lopus -lm -lmp3lame -lfreetype -lz -lpng12 -lfdk-aac -lm -lass -lm -lharfbuzz -lfontconfig -lexpat -lfreetype -lexpat -lenca -lm -lfribidi -lfreetype -lz -lpng12 -lm -lz -pthread -lswresample -lm -lavutil -lm -lpthread -lm
/usr/bin/ld: cannot find -lx265
collect2: error: ld returned 1 exit status
Makefile:423: recipe for target 'comskip' failed
make: *** [comskip] Error 1
I included the whole output for easier debugging. I am on a Raspberry Pi 3 using OSMC build (2017.08-1).
Unfortunately nothing on the internet is helping me fix this issue trying to install Comskip. Does someone know what lx265 is and how I can install it? Is it a video codec? Should I reinstall ffmpeg with different parameters?
Please help.
It means it can’t find libx265.so You’ll probably need to install libx265-dev but it seems to be available only in jessie-backports, stretch, buster and sid.
Thanks. What is jessie-backports? I updated my sources.list to include jessie-backports by typing
deb Index of /debian jessie-backports main
Is that right?
Hi,
Looks right to me.
Backports are:
" recompiled packages from testing (mostly) and unstable (in a few cases only, e.g. security updates) in a stable environment so that they will run without new libraries (whenever it is possible) on a Debian stable distribution" - from.
Thanks Tom.
That line is correct.
Just remember you need to run
sudo apt-get update
sudo apt-get install libx265-dev
then you need to edit /etc/apt/sources.list and comment out (or delete) the jessie-backports line and then again
sudo apt-get update
to remove jessie-backports from the list of sources.
I was able to successfully install Comskip and finish the tutorial [HowTo] Autoedit – Fully automated DVR with commercial detection on a Raspberry Pi 3 using OSMC August 2017 update.
Here are the changes I needed to make:
At the very beginning, install x265
# Edit apt sources list and install libx265
sudo vi /etc/apt/sources.list
Add “deb http://ftp.us.debian.org/debian jessie-backports main”
sudo apt-get update
sudo apt-get install libx265-dev
remove extra line from sources list
Right after the line cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
in step #3
Edit the ../sources/ffmpeg/x265/source/CmakeLists.txt file and replace the following
-mcpu=native to -mcpu=arm1176jzf-s
-march=native to -march=armv7-a
I did this using Wordpad on Windows since I could connect to the network share.
When installing Comskip I added some export commands. Here is the complete step
# 7) Install dependencies:
cd $HOME/sources
sudo apt-get install libargtable2-dev
git clone git://github.com/IfThenERROR/Comskip
cd Comskip
./autogen.sh
export CPPFLAGS='-I/opt/vc/include -I/home/osmc/ffmpeg_build/include'
export LDFLAGS="-L/opt/vc/lib -L/opt/vc/lib/pkgconfig -L/opt/vc/lib/plugins"
export CPPFLAGS='-I/opt/vc/include'
./configure CFLAGS='-L/opt/vc/lib'
sudo make -j4
sudo make install
cd $HOME
rm -R --interactive=never ~/sources/Comskip
Everything else was installed as described in the tutorial. I have a Word document listing all the steps I took if anyone wants it.