Archive for ตุลาคม, 2008

FFmpeg

ติดตั้งโปรแกรม ffmpeg โดยวิธี apt-get install ffmpeg พอ Convert video ไปเป็นนามสกุล .flv จะได้แต่ภาพเสียงไม่ได้
อยากได้ทั้งภาพและเสียงต้องทำตามด้านล่าง
#apt-get install quilt libsdl1.2-dev libogg-dev libvorbis-dev liba52-dev libdts-dev libimlib2-dev texi2html libraw1394-dev libdc1394-13-dev libtheora-dev libgsm1-dev liblame-dev libxvidcore4-dev libfaac-dev libfaad2-dev

cd /usr/src/
# apt-get source ffmpeg

cd into the ffmpeg directory and run the following:

$ ./configure –enable-gpl –enable-liba52 –enable-libgsm –enable-libxvid \
–enable-libamr_nb –enable-libamr_wb –enable-libmp3lame –enable-libogg \
–enable-libvorbis –enable-libfaac –enable-libfaad –enable-shared

Run make
Run make install

  • Comments Off

Asterisk 1.4 - rxfax/txfax

The steps are listed above is what I did pretty much. To reiterate:

1. Download Asterisk 1.4.1 (released couple days ago)
2. Grab http://www.soft-switch.org/downloads/snapshots/spandsp/spandsp-20061206….
3. Untar both to /usr/src
4. Compile spandsp.
5. Copy http://www.soft-switch.org/downloads/snapshots/spandsp/test-apps-asteris… and http://www.soft-switch.org/downloads/snapshots/spandsp/test-apps-asteris… to /usr/src/asterisk-1.4.1/apps folder.
6. Copy http://www.soft-switch.org/downloads/snapshots/spandsp/test-apps-asteris… to /usr/src/asterisk-1.4.1 folder.
7. cd /usr/src/asterisk-1.4.1
8. Run the asterisk.patch (patch -p0 < asterisk.patch)
9. Manually patch the spandsp line in configure.ac if the patch doesn’t succeed.
10. If you need copy app_nv_faxdetect-1.0.6_1.c and app_nv_backgrounddetect-1.0.6_1.c to /usr/src/asterisk-1.4.1/apps (you can find them on the net, I got my copy from x68k.net) - these help to detect faxes.
11. Run bootstrap.sh
12. Run configure
13. Run make menuselect
14. Make sure rxfax and txfax is listed under Applications. Make your selections under various sections
15. x to exit and save
16. Run make
17. Once make completes, run make install.

  • Comments Off

wake-up call example


exten => _*77*XXXXXXXXXXXX,1,Answer()
exten => _*77*XXXXXXXXXXXX,n,Set(year=${EXTEN:4:4})
exten => _*77*XXXXXXXXXXXX,n,Set(month=${EXTEN:8:2})
exten => _*77*XXXXXXXXXXXX,n,Set(day=${EXTEN:10:2})
exten => _*77*XXXXXXXXXXXX,n,Set(hours=${EXTEN:12:2})
exten => _*77*XXXXXXXXXXXX,n,Set(minutes=${EXTEN:14:2})
exten => _*77*XXXXXXXXXXXX,n,NoOp(Wake-up call scheduled for ${CALLERID(
num)} at ${hours}:${minutes} on ${day}.${month}.${year}.)
exten => _*77*XXXXXXXXXXXX,n,System(echo -e "Channel: SIP/${CALLERID(num
)}\\nContext: wake-up\\nExtension: 23" > /tmp/${UNIQUEID}.call)
exten => _*77*XXXXXXXXXXXX,n,System(touch -t ${year}${month}${day}${hour
s}${minutes} /tmp/${UNIQUEID}.call)
exten => _*77*XXXXXXXXXXXX,n,System(mv /tmp/${UNIQUEID}.call /var/spool/
asterisk/outgoing/)
exten => _*77*XXXXXXXXXXXX,n,Playback(rqsted-wakeup-for)
exten => _*77*XXXXXXXXXXXX,n,SayNumber(${hours})
exten => _*77*XXXXXXXXXXXX,n,SayNumber(${minutes})
exten => _*77*XXXXXXXXXXXX,n,Hangup()

[wake-up]
exten => 23,1,Answer()
exten => 23,n,Wait(1)
exten => 23,n,Playback(this-is-yr-wakeup-call)
exten => 23,n,Wait(1)
exten => 23,n,Hangup()
  • Comments Off
  • Copy the patch file into your asterisk source directory.
  • Run command “patch -p0 < asterisk-1.2.24-patch_say_thai”
  • Recompile asterisk.
  • That’s it. :)?
    • Comments Off

    aptitude purge asterisk

    • Comments Off

    Time

    Mp3

    Msn status

    • manon2029@hotmail.com is

    Chat with Meeh

    Donate

      If you find an article useful, then please make a donation.

    หมวดหมู่

    UserOnline

    Counter

    • Visitors today: 36
    • Visitors yesterday: 83
    • Visitors per day: 297
    • Max. visitors per day: 255
    • Total page views: 166,304
    • Page views of this page: 297
    • Currently online: 1
    • Max. online: 36
    • Total visitors: 35,955
    • counterStatistics