...do you compile ffmpeg on a fresh Ubuntu 17.04 installation or on a dist-upgrade?
Following the actual web-guide: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu ...i get errors. The only way for me to compile rightly is like i told you about "--enable-shared". On this way when make a recording, result a .flv file in /.../streams/2 (for example), but give an error to convert it to mp4. If i copy from Ubuntu 16.04 (/usr/local/bin) the nine files, product of ffmpeg compilation, and put them in Ubuntu 17.04 (/usr/local/bin), then the recordings made it works right, without errors. I've installed two diferents iso of Ubuntu 17.04: ubuntu-mate-17.04-desktop-amd64.iso ...and ubuntu-17.04-desktop-amd64.iso ...and got the same errors on both. Attached two captures and a log. Can't make the tutorial until it is solved. Some more idea...? ................ El mié, 19-04-2017 a las 00:22 +0700, Maxim Solodovnik escribió: > Hello Alvaro, > > Just have tried to recompile using this: > https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu guide > > works for me as expected > > On Sat, Apr 15, 2017 at 11:50 PM, Maxim Solodovnik <[email protected]> > wrote: > > > Hello Alvaro, > > I have updated my machine to 17.04 and previously compiled ffmpeg works as > > expected > > I'll try to re-compile it from sources and will let you know > > > > On Sat, Apr 15, 2017 at 1:22 PM, Alvaro <[email protected]> wrote: > > > >> Hello Maxim, > >> > >> As you surely know, Ubuntu 17.04 final is launched. > >> I've installed it to make the OM tutorial, but > >> found an error when compile ffmpeg. > >> > >> FFmpeg script: ffmpeg-ubuntu-debian.sh > >> > >> ...run it and get this error: > >> > >> ----------------- > >> ----------------- > >> > >> /usr/bin/ld: /root/ffmpeg_build/lib/libvpx.a(fwd_txfm_ssse3_x86_64.asm.o): > >> relocation R_X86_64_32 against `.rodata' can not be used when making a > >> shared object; recompile con -fPIC > >> /usr/bin/ld: /root/ffmpeg_build/lib/libvpx.a(inv_txfm_ssse3_x86_64.asm.o): > >> relocation R_X86_64_32 against `.rodata' can not be used when making a > >> shared object; recompile con -fPIC > >> /usr/bin/ld: /root/ffmpeg_build/lib/libvpx.a(quantize_ssse3_x86_64.asm.o): > >> relocation R_X86_64_32 against `.rodata' can not be used when making a > >> shared object; recompile con -fPIC > >> /usr/bin/ld: /root/ffmpeg_build/lib/libvpx.a(subpel_variance_sse2.asm.o): > >> relocation R_X86_64_32 against `.rodata' can not be used when making a > >> shared object; recompile con -fPIC > >> /usr/bin/ld: falló el enlace final: Sección no representable en la > >> salida > >> collect2: error: ld returned 1 exit status > >> Makefile:136: fallo en las instrucciones para el objetivo 'ffmpeg_g' > >> make: *** [ffmpeg_g] Error 1 > >> cp: no se puede efectuar `stat' sobre 'ffmpeg': No existe el archivo o > >> el directorio > >> cp: no se puede efectuar `stat' sobre 'ffprobe': No existe el archivo o > >> el directorio > >> cp: no se puede efectuar `stat' sobre 'ffserver': No existe el archivo o > >> el directorio > >> cp: no se puede efectuar `stat' sobre 'x264': No existe el archivo o el > >> directorio > >> FFmpeg Compilation is Finished! > >> > >> ------------- > >> ------------- > >> > >> But, if i add --enable-shared to x264, fdk-aac, lame, opus, libvpx and > >> ffmpeg, in the script, the compilation it is right, without any error. > >> But the compiled files as ffmpeg, ffplay, etc, are not > >> "application/x-executable" files, but "application/x-sharedlib". > >> > >> This is the same if compile sox, swftools, the compiled files are > >> "application/x-sharedlib", without add --enable-shared, don't need it. > >> It looks like the result of any compilation is "application/x-sharedlib" > >> files. > >> > >> Have you an idea about how resolve this? > >> > >> Thanks > >> > >> Alvaro > >> > >> > > > > > > -- > > WBR > > Maxim aka solomax > > > > >
Recording file is not found Exit value Conversion messages process: generateSampleAudio command: /usr/bin/sox /opt/red5321/webapps/openmeetings/streams/hibernate/one_second.wav /opt/red5321/webapps/openmeetings/streams/2/rec_1_stream_221276ec-c35e-4f0c-a665-d4fb632b1965_2017_04_19_12_02_24_FINAL_WAVE.wav pad 0 14.264 exception: null error: exitValue: 0 out: process: generate MP4 command: /usr/local/bin/ffmpeg -y -itsoffset 00:00:04.815 -i /opt/red5321/webapps/openmeetings/streams/2/rec_1_stream_221276ec-c35e-4f0c-a665-d4fb632b1965_2017_04_19_12_02_24.flv -i /opt/red5321/webapps/openmeetings/streams/2/rec_1_stream_221276ec-c35e-4f0c-a665-d4fb632b1965_2017_04_19_12_02_24_FINAL_WAVE.wav -c:v h264 -crf 24 -pix_fmt yuv420p -preset medium -profile:v baseline -c:a libfaac -c:a libfdk_aac -ar 22050 -b:a 32k -s 1088x688 /opt/red5321/webapps/openmeetings/streams/hibernate/9c7252d3-70a4-4dd9-b86d-c055333970cc.mp4 exception: null error: /usr/local/bin/ffmpeg: error while loading shared libraries: libavdevice.so.57: cannot open shared object file: No such file or directory exitValue: 127 out: process: generate preview JPG command: /usr/local/bin/ffmpeg -y -i /opt/red5321/webapps/openmeetings/streams/hibernate/9c7252d3-70a4-4dd9-b86d-c055333970cc.mp4 -vcodec mjpeg -vframes 100 -an -f rawvideo -s 1088x688 /opt/red5321/webapps/openmeetings/streams/hibernate/9c7252d3-70a4-4dd9-b86d-c055333970cc.jpg exception: null error: /usr/local/bin/ffmpeg: error while loading shared libraries: libavdevice.so.57: cannot open shared object file: No such file or directory exitValue: 127 out:
