Code Monkey home page Code Monkey logo

avane's People

Contributors

tuarua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avane's Issues

AVANE Global Options Error

Hi there,
I'm currently facing this issue with the AVANE in android and it says:

ReferenceError: Error #1065: Variable com.tuarua.ffmpeg::GlobalOptions is not defined.

I'm using the AVANE-android.ane file that is included. Hope you can help me with this since I badly needed this extension.

Best Regards,
Raymond

can i get the data from encoding ?

Hi tuarua, i want to get the data from the encoding, just like byteArray, not save to file, can i do it, hope and thanks for your answer.

Program crushed when call avane encode

Function call

avANE.encode("-i /Users/guorui/Desktop/10.mp4 -vcodec copy -acodec copy -f flv tmp://192.168.1.92:1936/meetingVideo/ED5AD03F-DDEB-8565-171F-A943E396374D);

Output log
constructed FFmpeg cli sent to encode: -i,/Users/guorui/Desktop/10.mp4,-vcodec,copy,-acodec,copy,-f,flv,rtmp://192.168.1.92:1936/meetingVideo/ED5AD03F-DDEB-8565-171F-A943E396374D
connect uir is rtmp://192.168.1.92:1936/meetingVideo, server url is rtmp://192.168.1.92:1936/meetingVideo
[ffmpeg][][info] : Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/guorui/Desktop/10.mp4':
[ffmpeg][][info] : Metadata:
[ffmpeg][][info] : major_brand :
[ffmpeg][][info] : mp42
[ffmpeg][][info] : minor_version :
[ffmpeg][][info] : 0
[ffmpeg][][info] : compatible_brands:
[ffmpeg][][info] : mp42mp41
[ffmpeg][][info] : creation_time :
[ffmpeg][][info] : 2011-12-11T19:27:51.000000Z
[ffmpeg][][info] : Duration:
[ffmpeg][][info] : 00:00:42.09
[ffmpeg][][info] : , start:
[ffmpeg][][info] : 0.000000
[ffmpeg][][info] : , bitrate:
[ffmpeg][][info] : 30304 kb/s
[ffmpeg][][info] : Stream #0:0
[ffmpeg][][info] : (eng)
[ffmpeg][][info] : : Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 30009 kb/s
[ffmpeg][][info] : ,
[ffmpeg][][info] : 29.97 fps,
[ffmpeg][][info] : 29.97 tbr,
[ffmpeg][][info] : 29970 tbn,
[ffmpeg][][info] : 59.94 tbc
[ffmpeg][][info] : (default)
[ffmpeg][][info] : Metadata:
[ffmpeg][][info] : creation_time :
[ffmpeg][][info] : 2011-12-11T19:27:51.000000Z
[ffmpeg][][info] : handler_name :
[ffmpeg][][info] : Mainconcept MP4 Video Media Handler
[ffmpeg][][info] : encoder :
[ffmpeg][][info] : AVC Coding
[ffmpeg][][info] : Stream #0:1
[ffmpeg][][info] : (eng)
[ffmpeg][][info] : : Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s
[ffmpeg][][info] : (default)
[ffmpeg][][info] : Metadata:
[ffmpeg][][info] : creation_time :
[ffmpeg][][info] : 2011-12-11T19:27:51.000000Z
[ffmpeg][][info] : handler_name :
[ffmpeg][][info] : Mainconcept MP4 Sound Media Handler

Stack info:
Process: adl [835]
Path: /Users/USER/Desktop/*/adl
Identifier: adl
Version: ???
Code Type: X86-64 (Native)
Parent Process: Adobe Flash Builder 4.7 [536]
Responsible: adl [835]
User ID: 501

Date/Time: 2017-04-26 16:05:58.188 0800
OS Version: Mac OS X 10.11.6 (15G1421)
Report Version: 11
Anonymous UUID: 6579561D-B439-673A-5449-8564B7F7429D

Time Awake Since Boot: 2100 seconds

System Integrity Protection: enabled

Crashed Thread: 21

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Dyld Error Message:
Symbol not found: _clock_gettime
Referenced from: /Users/USER/Documents/*/AVANE.framework/AVANE
Expected in: /usr/lib/libSystem.B.dylib

Global Trace Buffer (reverse chronological seconds):
31.118254 CFNetwork 0x00007fff9b624659 TCP Conn 0x12a26abf0 complete. fd: 14, err: 0
31.118397 CFNetwork 0x00007fff9b6b2f33 TCP Conn 0x12a26abf0 event 1. err: 0
31.138186 CFNetwork 0x00007fff9b62392b TCP Conn 0x12a26abf0 started
31.140007 CFNetwork 0x00007fff9b5e756e Creating default cookie storage with process/bundle identifier
31.140033 CFNetwork 0x00007fff9b5e7506 Faulting in CFHTTPCookieStorage singleton
31.140033 CFNetwork 0x00007fff9b5e7395 Faulting in NSHTTPCookieStorage singleton

Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff9de77f8a __read_nocancel 10
1 libsystem_c.dylib 0x00007fff8a6be155 _sread 16
2 libsystem_c.dylib 0x00007fff8a6bd769 __srefill1 24
3 libsystem_c.dylib 0x00007fff8a6b7fa7 __fread 393
4 libsystem_c.dylib 0x00007fff8a6b7e07 fread 48
5 Adobe AIR_64 0x00000001011f2e66 0x101000000 2043494
6 Adobe AIR_64 0x00000001011f6099 0x101000000 2056345
7 Adobe AIR_64 0x00000001011c8d6b 0x101000000 1871211
8 Adobe AIR_64 0x00000001011c103c 0x101000000 1839164
9 Adobe AIR_64 0x00000001011f529f 0x101000000 2052767
10 Adobe AIR_64 0x00000001011f7df9 0x101000000 2063865
11 Adobe AIR_64 0x00000001011f77e0 0x101000000 2062304
12 ??? 0x00002c98b98f6b9f 0 49034459835295
13 ??? 0x00002c98b98ea1fc 0 49034459783676
14 Adobe AIR_64 0x000000010161c9d5 0x101000000 6408661
15 Adobe AIR_64 0x000000010161beb9 0x101000000 6405817
16 Adobe AIR_64 0x0000000101620e87 0x101000000 6426247
17 Adobe AIR_64 0x0000000101922845 0x101000000 9578565
18 Adobe AIR_64 0x0000000101a29f88 0x101000000 10657672
19 com.apple.Foundation 0x00007fff8a12efde __NSThreadPerformPerform 279
20 com.apple.CoreFoundation 0x00007fff905147e1 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION 17
21 com.apple.CoreFoundation 0x00007fff904f3f1c __CFRunLoopDoSources0 556
22 com.apple.CoreFoundation 0x00007fff904f343f __CFRunLoopRun 927
23 com.apple.CoreFoundation 0x00007fff904f2e38 CFRunLoopRunSpecific 296
24 com.apple.HIToolbox 0x00007fff90dec935 RunCurrentEventLoopInMode 235
25 com.apple.HIToolbox 0x00007fff90dec76f ReceiveNextEventCommon 432
26 com.apple.HIToolbox 0x00007fff90dec5af _BlockUntilNextEventMatchingListInModeWithFilter 71
27 com.apple.AppKit 0x00007fff99915df6 _DPSNextEvent 1067
28 com.apple.AppKit 0x00007fff99915226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 454
29 com.apple.AppKit 0x00007fff99909d80 -[NSApplication run] 682
30 Adobe AIR_64 0x00000001010022ec 0x101000000 8940
31 adl 0x0000000100002109 RuntimeMain(char const*, int) 142
32 adl 0x0000000100001bec start

Trying to play hls stream on Android

Hi,

first of all great job, this project is awesome. I am trying to play hls stream on Android, and found your ANE.

I tried using the ANE in a project but the IDE sais: extension xml is not present or is invalid.
I am using FB 4,6, could that be the problem?

My second question is that would it be possible to play hls stream on Android? If it is not possible at all, and some people say it is not, then I should look for another solution.

Thank you for your great work and your answer.

Istvan Keresztes.

UniversalPlayer failed to seek and play

It seems that when you seek a few times( like 5 or 6 times), then then player will will failed to seek and play. It just showing the loading and the last picture before you seek.

It seems to add
if(!streamer.connected){ streamer.init(); OutputOptions.uri = "tcp:127.0.0.1:1234"; avANE.encode(); seekAfterEncodeFinish=false; }
to the onSeek function in the UniversalPlayer will fixed it.

Extension XML is not present or is invalid

i have this message on native extension window on flash builder, i think its missing the extension.xmk for AVANE and SaveAsANE, could u please upload the files for WIN and OSX?

thank you so much for sharing this

Commands fail on Android

Hi

The following commands fail on android (the app crashes)

-devices
(supposed to list the available devices)

-sources v4l2
(to list the available sources for video4linux2 input)

Although the file conversion is working fine, I'd really like to access the camera and microphone inputs.

Any chance you can implement these?

Thanks

ArgumentError: Error #3500: The extension context does not have a method with the name getHardwareAccelerations.

Hi, @tuarua
When runing the example ,i got error #3500: The extension context does not have a method with the name getHardwareAccelerations

ArgumentError: Error #3500: The extension context does not have a method with the name getHardwareAccelerations. at flash.external::ExtensionContext/_call() at flash.external::ExtensionContext/call() at com.tuarua::AVANE/getHardwareAccelerations()[D:\dev\flash\AVANE\native_extension\src\com\tuarua\AVANE.as:122] at views::UniversalPlayer()[D:\Coding\Flash\AVANE-master\example\src\views\UniversalPlayer.as:71] at StarlingRoot/start()[D:\Coding\Flash\AVANE-master\example\src\StarlingRoot.as:63] at Function/onRootCreated()[D:\Coding\Flash\AVANE-master\example\src\AVANESample.as:34] at starling.events::EventDispatcher/invokeEvent()[/Users/redge/Dropbox/Development/starling/starling/src/starling/events/EventDispatcher.as:148] at starling.events::EventDispatcher/dispatchEvent()[/Users/redge/Dropbox/Development/starling/starling/src/starling/events/EventDispatcher.as:118] at starling.events::EventDispatcher/dispatchEventWith()[/Users/redge/Dropbox/Development/starling/starling/src/starling/events/EventDispatcher.as:196] at starling.core::Starling/initializeRoot()[/Users/redge/Dropbox/Development/starling/starling/src/starling/core/Starling.as:369] at starling.core::Starling/initialize()[/Users/redge/Dropbox/Development/starling/starling/src/starling/core/Starling.as:357] at starling.core::Starling/onContextCreated()[/Users/redge/Dropbox/Development/starling/starling/src/starling/core/Starling.as:584]

i am running in the virtual machine of windows 7.
Any idea how to fix the problem

InputOptions.frameRate should be Number type

Hi,

First, I LOVE your work, what you achieved here is amazing, a big thank you.

I'm mostly working with webcams (dshow/avfoundation) and there are certain things that need to be considered:

InputOptions.frameRate should be typed as Number. there are webcam modes with fps like 29.97, 30.00003 etc. and the capture fails if these numbers are rounded to int (29 or 30).

Weird error when starting AVANE the 2nd time

A weird error occurs if I start a live capture (dshow) the 2nd time during the same app session.

First everything works perfectly, then I stop avane with cancelEncode(). If I start the encoding process again with exactly the same parameters, it fails to read any input from the capture device. It looks like some buffer is not getting flushed, can't really say for sure what's wrong. Here's the trace output of the second encoding process:

...
message Picture size 53247x16256 is invalid
message Error while decoding stream #0:0: Invalid data found when processing input
message decode_sos: nb_components (0) unsupported
...

The encoding never starts and after a minute or so avane exits.

I tried avane.dispose(), InputStream.clear(), reinitialise the instance and to create a new instance - the same error happens every time.

Here's the classicString if you're interested:

-y -thread_queue_size 512 -f dshow -vcodec mjpeg -s 1280x720 -framerate 30 -i video="HD 720P Webcam" -c:v libx264 -flags +global_header -pix_fmt yuv420p -b:v 1500k -bufsize 3000k -vf scale=-1:720 -r 30 -g 60 -force_key_frames 2 -copytb 1 -tune zerolatency -preset ultrafast -f tee -map 0:0 [f=flv]rtmp://localhost:1935/LiveBroadcaster/LiveStream

Issue when converting consecutive files

Hi sir,
Good day! :) I am now using your ANE to convert video files. I implemented it in a way that the user can browse and select the file that they want to convert but unfortunately after the first file has been converted, and the user selects another file, it will process the conversion but the strange thing is that the content of the file is the same with the first video that is converted. I already checked and tried to debug the issue, and made sure that the encoding is pointing on the right file url, but the issue is still there. Do you have any idea sir what causes the issue? Will wait for your kind response good sir. :)
Thanks

InputOptions.size is missing

I noticed the InputOptions.size property is currently not implemented yet.
It would be great to use it, webcam (dshow) inputs require to define size for certain camera modes. (ie "-s 1280x720")

Is there any way to add extra command line parameters to an input or output without implementing certain properties in code?

FFmpegEvent.ON_START or similar

While testing with tcp sockets, I noticed that the ON_ENCODE_START event only fires when there's actually an encoding started. Now this is perfect in most cases, but for a TCP listener, it fires only if there's actual bytes sent in the connected socket. So there's no way to know if AVANE has started, I had to implement a timer before connecting the socket.

It would be nice to fire an ON_START or ON_PROCESS_START event (or similar) to see if avane is started

AVANE for iOS and Android

Hi @tuarua Eoin,

Have you planned to add iOS and Android support for this ANE? I think a lot of people would be interested in it.

Best regards,
Dmitrii

Audio - Wav to MP3 Conversion

Is it possible to add wav to mp3 conversion? Wondering if i can do that with AVANE, thank you for your amazing support! :)

ANE Error when building app in ios

Hi sir,
The android ane is really doing great but when I tried to build my app in ios it gives me this error:
ane-error
Please advice.

Thanks once again :)

AVANE.swc bytecode error

At compiling my AS project I receive the following errors

AVANE.swc(com.tuarua.ffmpeg:InputOptions): Error: abc bytecode decoding failed.

AVANE.swc(com.tuarua.ffmpeg:OutputOptions): Error: abc bytecode decoding failed.

After these errors, there's hundreds more, but it's unrelated, since the problem is with the swc, therefore the entire compile process fails.

Something's not right with the latest swc, the previous one is working fine.

InputOptions.vcodec

still webcams related issue :)

many webcams provide their streams in different video codecs, so it would be nice to have the possibility to select them. for certain modes only one can be selected, and must be selected

ffmpeg command like looks like this:
ffmpeg -f dshow -vcodec mjpeg -s 1280x720 -i video=My Webcam Device

Possible vcodec values for webcams (that i know of): mjpeg, rawvideo, h264

Desktop capture

您好:
我 using screen-capture-recorder to capture desktop in Windows,
请问是否 支持 以 将桌面的画面和麦克风的声音以rtmp流的形式推送到 FMS流媒体服务器上面呢?

The extension context does not have a method with the name setLogLevel.

I had tested android_example with fb4.7 and air sdk24 on my android device,but it gave following error:
[SWF] com.tuarua.AVANE - 解压缩后为 106,384 个字节
[SWF] Main.swf - 解压缩后为 425,015 个字节
[Starling] Context ready. Display Driver: OpenGL (Baseline Extended)
[AVANE] Initalizing ANE...
ArgumentError: Error #3500: The extension context does not have a method with the name setLogLevel.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.tuarua::AVANE/setLogLevel()[/Users/User/flash/AVANE/native_extension/src/com/tuarua/AVANE.as:392]
at StarlingRoot/start()[E:\myPRO\AVANE-master\android_example\src\StarlingRoot.as:50]
at Function/onRootCreated()[E:\myPRO\AVANE-master\android_example\src\Main.as:41]
at starling.events::EventDispatcher/invokeEvent()[/Users/redge/Dropbox/Development/starling/starling/src/starling/events/EventDispatcher.as:148]
at starling.events::EventDispatcher/dispatchEvent()[/Users/redge/Dropbox/Development/starling/starling/src/starling/events/EventDispatcher.as:118]
at starling.events::EventDispatcher/dispatchEventWith()[/Users/redge/Dropbox/Development/starling/starling/src/starling/events/EventDispatcher.as:196]
at starling.core::Starling/initializeRoot()[/Users/redge/Dropbox/Development/starling/starling/src/starling/core/Starling.as:383]
at starling.core::Starling/initialize()[/Users/redge/Dropbox/Development/starling/starling/src/starling/core/Starling.as:371]
at starling.core::Starling/onContextCreated()[/Users/redge/Dropbox/Development/starling/starling/src/starling/core/Starling.as:617]

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.