Hi Alvaro, it is working now when I changed sox_path=/usr/local/bin
thank you for helping !! Jim Zhou ________________________________________ From: Alvaro [[email protected]] Sent: Wednesday, June 17, 2015 9:19 AM To: [email protected] Subject: Re: can not record a video Hello Jim, Please do so: cd /usr/bin ls ...and look if is a file called: sox If is not, do this: cd /usr/local/bin ls ...and look if is a file called: sox Where you find it type in Configuration: sox_path= /usr/bin or /usr/local/bin Do the same about ffmpeg. Hope it goes right. Alvaro ---------------------- El mié, 17-06-2015 a las 15:44 +0000, Zhou, Jim (CIV) escribió: > Hi Alvaro, > > I am having problem on recording a video. Should the > sox_path=/usr/local/bin and ?? > sox_path=/usr/bin > ffmpeg_path=usr/local/bin > > thank you so much, > Jim Zhou > > > [root@deweyods1 ~]# find / -name ffmpeg > /usr/local/bin/ffmpeg > /usr/local/share/ffmpeg > /root/ffmpeg_build/share/ffmpeg > /root/bin/ffmpeg > /root/ffmpeg_sources/ffmpeg > /home/om1/ffmpeg_sources/ffmpeg > /home/om1/ffmpeg_sources/ffmpeg-2.3.3/ffmpeg > [root@deweyods1 ~]# find / -name sox > /opt/sox-14.4.1/src/.libs/sox > /opt/sox-14.4.1/src/sox > /usr/local/bin/sox > /root/ffmpeg_sources/ffmpeg/tests/ref/lavf/sox > /home/om1/ffmpeg_sources/ffmpeg/tests/ref/lavf/sox > /home/om1/ffmpeg_sources/ffmpeg-2.3.3/tests/ref/lavf/sox > [root@deweyods1 ~]# > > > > process: stripAudioFromFLVs > > command: /usr/local/bin/ffmpeg -y > -i > /opt/red5306/webapps/openmeetings/streams/7/rec_4_stream_1_2015_06_17_08_24_20.flv > -af aresample=32k:min_comp=0.001:min_hard_comp=0.100000 > /opt/red5306/webapps/openmeetings/streams/7/rec_4_stream_1_2015_06_17_08_24_20_WAVE.wav > > exception: null > > error: ffmpeg version git-2015-06-17-dc87758 Copyright (c) 2000-2015 > the FFmpeg developers > > built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11) > > configuration: --prefix=/root/ffmpeg_build > --extra-cflags=-I/root/ffmpeg_build/include > --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin > --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame > --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 > --enable-libtheora > > libavutil 54. 27.100 / 54. 27.100 > > libavcodec 56. 41.100 / 56. 41.100 > > libavformat 56. 36.100 / 56. 36.100 > > libavdevice 56. 4.100 / 56. 4.100 > > libavfilter 5. 17.100 / 5. 17.100 > > libswscale 3. 1.101 / 3. 1.101 > > libswresample 1. 2.100 / 1. 2.100 > > libpostproc 53. 3.100 / 53. 3.100 > > Input #0, flv, from > '/opt/red5306/webapps/openmeetings/streams/7/rec_4_stream_1_2015_06_17_08_24_20.flv': > > Metadata: > > server : Red5 > > creationdate : Wed Jun 17 08:25:01 PDT 2015 > > canSeekToEnd : true > > Duration: 00:00:40.60, start: 0.000000, bitrate: 1806 kb/s > > Stream #0:0: Video: flv1, yuv420p, 640x480, 1757 kb/s, 1k tbr, 1k > tbn, 1k tbc > > Stream #0:1: Audio: nellymoser, 22050 Hz, mono, flt, 44 kb/s > > Output #0, wav, to > '/opt/red5306/webapps/openmeetings/streams/7/rec_4_stream_1_2015_06_17_08_24_20_WAVE.wav': > > Metadata: > > server : Red5 > > creationdate : Wed Jun 17 08:25:01 PDT 2015 > > canSeekToEnd : true > > ISFT : Lavf56.36.100 > > Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 32000 Hz, > mono, s16, 512 kb/s > > Metadata: > > encoder : Lavc56.41.100 pcm_s16le > > Stream mapping: > > Stream #0:1 -> #0:0 (nellymoser (native) -> pcm_s16le (native)) > > Press [q] to stop, [?] for help > > size= 2540kB time=00:00:40.64 bitrate= 511.9kbits/s > > video:0kB audio:2540kB subtitle:0kB other streams:0kB global > headers:0kB muxing overhead: 0.002999% > > > > exitValue: 0 > > out: > > -1 > > process: addStartEndToAudio > > command: /usr/bin/sox > /opt/red5306/webapps/openmeetings/streams/7/rec_4_stream_1_2015_06_17_08_24_20_WAVE.wav > > /opt/red5306/webapps/openmeetings/streams/7/rec_4_stream_1_2015_06_17_08_24_20_FULL_WAVE.wav > pad 0.415 0.075 > > exception: java.io.IOException: Cannot run program "/usr/bin/sox": > error=2, No such file or directory > > error: Cannot run program "/usr/bin/sox": error=2, No such file or > directory > > exitValue: -1 > > out: > > -1 > > process: generateSampleAudio > > command: /usr/bin/sox > /opt/red5306/webapps/openmeetings/streams/hibernate/one_second.wav > /opt/red5306/webapps/openmeetings/streams/7/rec_4_stream_b886f9a7e698e6362c9360c949a284d7_2015_06_17_08_24_21_FINAL_WAVE.wav > pad 0 41.127 > > exception: java.io.IOException: Cannot run program "/usr/bin/sox": > error=2, No such file or directory > > error: Cannot run program "/usr/bin/sox": error=2, No such file or > directory > > exitValue: -1 > > out: > > 1 > > process: generateFullFLV > > command: /usr/local/bin/ffmpeg -y -itsoffset 00:00:03.716 > -i > /opt/red5306/webapps/openmeetings/streams/7/rec_4_stream_b886f9a7e698e6362c9360c949a284d7_2015_06_17_08_24_21.flv > -i > /opt/red5306/webapps/openmeetings/streams/7/rec_4_stream_b886f9a7e698e6362c9360c949a284d7_2015_06_17_08_24_21_FINAL_WAVE.wav > -ar 22050 -acodec libmp3lame -ab 32k -s 1440x816 -vcodec flashsv -map 0:0 > -map 1:0 > /opt/red5306/webapps/openmeetings/streams/hibernate/flvRecording_4.flv > > exception: null > > error: ffmpeg version git-2015-06-17-dc87758 Copyright (c) 2000-2015 > the FFmpeg developers > > built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11) > > configuration: --prefix=/root/ffmpeg_build > --extra-cflags=-I/root/ffmpeg_build/include > --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin > --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame > --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 > --enable-libtheora > > libavutil 54. 27.100 / 54. 27.100 > > libavcodec 56. 41.100 / 56. 41.100 > > libavformat 56. 36.100 / 56. 36.100 > > libavdevice 56. 4.100 / 56. 4.100 > > libavfilter 5. 17.100 / 5. 17.100 > > libswscale 3. 1.101 / 3. 1.101 > > libswresample 1. 2.100 / 1. 2.100 > > libpostproc 53. 3.100 / 53. 3.100 > > Input #0, flv, from > '/opt/red5306/webapps/openmeetings/streams/7/rec_4_stream_b886f9a7e698e6362c9360c949a284d7_2015_06_17_08_24_21.flv': > > Metadata: > > server : Red5 > > creationdate : Wed Jun 17 08:25:01 PDT 2015 > > canSeekToEnd : true > > noaudiocodec : 0 > > Duration: 00:00:37.40, start: 0.000000, bitrate: 21230 kb/s > > Stream #0:0: Video: flashsv, bgr24, 1440x816, 21229 kb/s, 10 fps, > 10 tbr, 1k tbn, 1k tbc > > /opt/red5306/webapps/openmeetings/streams/7/rec_4_stream_b886f9a7e698e6362c9360c949a284d7_2015_06_17_08_24_21_FINAL_WAVE.wav: > No such file or directory > > > > exitValue: 1 > > out: > > 1 > > process: previewFullFLV > > command: /usr/local/bin/ffmpeg -y > -i /opt/red5306/webapps/openmeetings/streams/hibernate/flvRecording_4.flv > -vcodec mjpeg -vframes 1 -an -f rawvideo -s 1440x816 > /opt/red5306/webapps/openmeetings/streams/hibernate/flvRecording_4.jpg > > exception: null > > error: ffmpeg version git-2015-06-17-dc87758 Copyright (c) 2000-2015 > the FFmpeg developers > > built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11) > > configuration: --prefix=/root/ffmpeg_build > --extra-cflags=-I/root/ffmpeg_build/include > --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin > --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame > --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 > --enable-libtheora > > libavutil 54. 27.100 / 54. 27.100 > > libavcodec 56. 41.100 / 56. 41.100 > > libavformat 56. 36.100 / 56. 36.100 > > libavdevice 56. 4.100 / 56. 4.100 > > libavfilter 5. 17.100 / 5. 17.100 > > libswscale 3. 1.101 / 3. 1.101 > > libswresample 1. 2.100 / 1. 2.100 > > libpostproc 53. 3.100 / 53. 3.100 > > /opt/red5306/webapps/openmeetings/streams/hibernate/flvRecording_4.flv: No > such file or directory > > > > exitValue: 1 > > out: > > 1 > > process: alternateDownload > > command: /usr/local/bin/ffmpeg -y > -i /opt/red5306/webapps/openmeetings/streams/hibernate/flvRecording_4.flv > -vcodec copy > /opt/red5306/webapps/openmeetings/streams/hibernate/flvRecording_4.avi > > exception: null > > error: ffmpeg version git-2015-06-17-dc87758 Copyright (c) 2000-2015 > the FFmpeg developers > > built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11) > > configuration: --prefix=/root/ffmpeg_build > --extra-cflags=-I/root/ffmpeg_build/include > --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin > --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame > --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 > --enable-libtheora > > libavutil 54. 27.100 / 54. 27.100 > > libavcodec 56. 41.100 / 56. 41.100 > > libavformat 56. 36.100 / 56. 36.100 > > libavdevice 56. 4.100 / 56. 4.100 > > libavfilter 5. 17.100 / 5. 17.100 > > libswscale 3. 1.101 / 3. 1.101 > > libswresample 1. 2.100 / 1. 2.100 > > libpostproc 53. 3.100 / 53. 3.100 > > /opt/red5306/webapps/openmeetings/streams/hibernate/flvRecording_4.flv: No > such file or directory > > > > exitValue: 1 > > out: > > > > Jim Zhou > > > > > Jim Zhou > > >
