Code Monkey home page Code Monkey logo

av's People

Contributors

chung-leong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jan-e 3cto

av's Issues

segmentation fault

Hello, I've written a class which watermarks video, everything works well except the fact that a segmentation fault occurs in av_stream_write_pcm when processing certain videos. av_stream_write_pcm processes only several samples in such videos and then the program crashes with segmentation fault.

It looks like a memory corruption, my code is OOP and I tried to reproduce the error on a plain php code without success.

I will post my class if you will be unable to track the issue from this brief description.

64-bit builds for Windows

I tried to compile the extension for Windows x64 (PHP 5.5). This was possible by adding a lib64 directory besides the lib directory and add Zeranoe's 64-bit libs over there. I used these libs:
http://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-20130424-git-aa96439-win64-dev.7z

Then I had to tweak the config.w32 a little bit:

PHP_CL = PATH_PROG('cl', null, 'PHP_CL');
if (!PHP_CL) {
    ERROR("MS C++ compiler is required");
}
X64 = probe_binary(PHP_CL, 64, null, 'PHP_CL');
if (X64) {
    ADD_FLAG("LIBS_AV", "ext\\av\\win32\\ffmpeg\\lib64\\avcodec.lib");
    ADD_FLAG("LIBS_AV", 'ext\\av\\win32\\ffmpeg\\lib64\\avformat.lib');
    ADD_FLAG("LIBS_AV", 'ext\\av\\win32\\ffmpeg\\lib64\\avutil.lib');
    ADD_FLAG("LIBS_AV", 'ext\\av\\win32\\ffmpeg\\lib64\\swscale.lib');
    ADD_FLAG("LIBS_AV", 'ext\\av\\win32\\ffmpeg\\lib64\\swresample.lib');
} else {
    ADD_FLAG("LIBS_AV", "ext\\av\\win32\\ffmpeg\\lib\\avcodec.lib");
    ADD_FLAG("LIBS_AV", 'ext\\av\\win32\\ffmpeg\\lib\\avformat.lib');
    ADD_FLAG("LIBS_AV", 'ext\\av\\win32\\ffmpeg\\lib\\avutil.lib');
    ADD_FLAG("LIBS_AV", 'ext\\av\\win32\\ffmpeg\\lib\\swscale.lib');
    ADD_FLAG("LIBS_AV", 'ext\\av\\win32\\ffmpeg\\lib\\swresample.lib');
}

mms:// url doesn't work

A URL that begins with mms:// will fail with a error opening for reading error. Changing the protocol to mmsh allows the live stream to open correctly. This should happen automatically.

WMV input?

I am getting an error: "av_stream_open(): unable to find codec" when I try to open a *.wmv file. Is there anything I should do to make it work? OS; Windows x86, PHP 56 nts. I am using the latest 32-bits shared build by Zeranoe. The FFmpeg.exe in that build supports WMV-input.

output formats

Target formats other than MP4 don't work, I've tryed WebM and OGV and got the
"error encountered writing file header" message.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.