• 15-10-2012, 10:03:27
    #1
    Arkadaşlar selam video upload olayında kullandığım ffmpeg olayo localde sorunsuz çok güzel çalışmakta ama sunucuda ne yaptıysam çözüme ulaşamadım..

    izinleri verdim herşeyi yaptım, scripti çalıştırdığımda aşağıdaki sonucu alıyorum

    FFmpeg version SVN-r25512, Copyright (c) 2000-2010 the FFmpeg developers built on Oct 18 2010 04:06:45 with gcc 4.4.2 configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-libvpx --arch=x86 --enable-runtime-cpudetect --enable-libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack libavutil 50.32. 3 / 50.32. 3 libavcore 0. 9. 1 / 0. 9. 1 libavcodec 52.92. 0 / 52.92. 0 libavformat 52.83. 0 / 52.83. 0 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.52. 0 / 1.52. 0 libswscale 0.12. 0 / 0.12. 0 E:\websites\xxxxxxxx.com\httpdocs\upload\video\tes t\mvmdpzyk70.avi: Permission denied


    FFmpeg version SVN-r25512, Copyright (c) 2000-2010 the FFmpeg developers built on Oct 18 2010 04:06:45 with gcc 4.4.2 configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-libvpx --arch=x86 --enable-runtime-cpudetect --enable-libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack libavutil 50.32. 3 / 50.32. 3 libavcore 0. 9. 1 / 0. 9. 1 libavcodec 52.92. 0 / 52.92. 0 libavformat 52.83. 0 / 52.83. 0 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.52. 0 / 1.52. 0 libswscale 0.12. 0 / 0.12. 0 E:\websites\xxxxxxxx.com\httpdocs\upload\video\tes t\mvmdpzyk70.avi: Permission denied


    klasörlere ve gerekli yerlere izinler verdim system32 içindeki cmd.exe dahil
    birtek şunu beceremedim pthreadGC2.dll dll dosyasını regleyemedim hata veriyor hep acaba bundan olabilirmi eğer sorunun bu olduğuna inanıyorsanız, reglemeyi yapmak için ne yapmalıyım
    reglerken sunucuda ekreana gelen hata şu c:\windows\system\pthreadGC2.dll was loaded, but the DllRegisterServer entry point was not fount. This file can not be registered

    kullandığım asp kodlaması ise şöyle



    <%Set Upload = Server.CreateObject("Persits.Upload" )
    Upload.Save
    Set Img=Upload.files("Filedata")
    SID = upload.form("VIDEOSID")
    Sayi = SID & Img.Ext
    Img.Saveas Server.MapPath("/upload/video/test/"& Sayi)

    sunucuadresi = "E:\websites\xxxxxx.com\httpdocs\upload\video\test \"


    inputvideo= sunucuadresi & Img.filename
    outputvideo= sunucuadresi & SID &".flv"
    outputfile= sunucuadresi & SID &".jpg"
    ffmpegroot="E:\bilesenler\ffmpeg\"

    Set oxxicn = Server.Createobject("Dynu.Exec")
    response.write (oxxicn.execute(""& ffmpegroot &"ffmpeg -s 320x240 -i "& inputvideo &" -ss 00:00:05 -s 320x240 -vframes 1 -f mjpeg "& outputfile &""))


    response.write (oxxicn.execute(""& ffmpegroot &"ffmpeg -i "& inputvideo &" -ab 256k -ar 22050 -qscale 8 -b 600 -r 25 -vcodec flv -f flv "& outputvideo &""))
    %>


    Dynu bileşeninde sorun yok scriptte sadece videoyu upload ediyor ama convert ve ekran görüntüsünü resim olarak alma aşaması yapılmıyor.
    Şimdiden herkese teşekkürler
  • 16-10-2012, 20:14:41
    #2
    öncelikle dynu command satırı işlemlerini yapmak için kullanılıyor.
    bunu sunucuya yüklemen yeterli olmaz. sunucu kendinin mi bilmiyorum ama cmd satırlarını çalıştırmak için de izin vermen (alman) gerekiyor.

    kaldı ki command shell açarak dynu bileşeni kullanmadan da yapabilirsin. yani cmd çalıştırmak için illa bi bileşen kurmana da gerek yok.
    ben yaptım ve canavar gibi çalıştı, gerek convert, gerek snapshot için.

    (ayrıca yükleme kısmının convert ile alakası yok. persist ile upload sadece.)
  • 16-10-2012, 23:12:52
    #3
    convertin ve ffmpeg.exe nin olduğu klasöre everyone izin vermek gerekiyormuş o zaman oldu
    çalışıyor şuan
    herkese teşekkürler