how to run terminal scripts to the ios - ios

i have terminal script for ffmpeg like : ffmpeg -i input_file -c:a aac -strict -2 -b:a 128k -c:v libx264 -profile:v baseline out.mp4
how can i run something like this in my app

This isn't possible with the native iOS SDK, as that could easily lead to malicious apps on the App Store. If you must do so, try mobile terminal from cydia on a jailbroken iPhone, even then I doubt you would somehow be able to install ffmpeg on iOS without any porting. http://cydia.saurik.com/package/mobileterminal/

Related

H265 does not show up as an option in Linphone App iOS

I am trying to enable the H265 codec in the Linphone App for iOS but I don't know how to.
I have successfully built both the app and its sdk.
When one goes to Settings -> Video, under CODECS in the app, there are only the VP8 and H264 codecs available.
I thought that compiling the SDK with all video support and all 3rd party components should be enough.
This is how I have compiled the SDK:
Prepare:
cmake .. -G Ninja -DLINPHONESDK_PLATFORM=IOS -DENABLE_VIDEO=YES -DENABLE_ZRTP=YES -DENABLE_GPL_THIRD_PARTIES=YES
Build:
cmake --build .
Everything built successfully and I have referenced the built SDK in my Linphone project.
The SDK version is 4.2:
"Installing linphone-sdk 4.4.0-alpha.167+f8422b1 (was 4.2)"
The app version is 4.1.0 and in its read me file one can see:
"Video H.265 codec support, based on iOS VideoToolbox framework."
After rebuilding everything and running it, I am still unable to see H265 show up under CODECS.
Does anybody know what else I have to do to enable H265 ?
Also, I have downloaded the Linphone app from the App Store and noticed that it too does not include the H265 video codec.
My device is an iPhone 6S running iOS 12.4.
I guess it is due to the hardware of the phone; iPhone 6S does not support encoding H265... it does seem to work on an iPhone X.

How can i automate 'Settings' app in real iOS devices?

I tried with Appium, UI Automation and Monkey Talk to automate native app automation for real iOS device. Mentioned tools are not supporting real iOS native app automation.
Is there a (freeware) tool that automates native apps of real iOS devices?
You can try the following in your Terminal:
instruments -v -w YOUR_DEVICE_ID -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/Preferences.app -e UIASCRIPT /Users/mytests/Documents/xCode/Shell-Script/YourTestScript-App.js
The above command is a 1 liner.
But you need to write your own test script called YourTestScript-App.js

Air Native Extension Build Error ios

I am trying to make native extension in AIR for nativeCamera Extension in iOS app. Which open camera from iOS when i click on button from flex. When i make ane for it and include in my flex code and when i make build for iPA, At that time i show following error. i stuck from last 2 days but didn't get any solution. it's make me headache for finding solution.
Thanks in advance
Make sure you are packaging against an iOS SDK. I'm not sure if they've added this option in Flash Builder on Windows as yet so you might have to use the command line:
adt -package
-target ipa-test
-provisioning-profile /path_to_provisioning_profile/Provisioning_Profile.mobileprovision
-storetype pkcs12
-keystore /path_to_certificate/certificate.p12
-storepass xxxxx
myApp.ipa
application_xml_file.xml
application_swf.swf
-platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
More information here: http://distriqt.uservoice.com/knowledgebase/articles/252920-ld-framework-not-found

iOS rtmp streaming

I want play rtmp link following:
rtmp://edgecast-fmstream.mndigital.com/mp3:/mp3/mn_mp3_12_02/downloads/a070/071/051/71051427_017?48d882e51ff49ca3806e4b63d90b926556349db16cecf61947afe79948feb8eda04e
This link play on Windows:
rtmpdump -r rtmp://edgecast-fmstream.mndigital.com -y mp3:/mp3/mn_mp3_12_02/downloads/a070/071/051/71051427_017?48d882e51ff49ca3806e4b63d90b926556349db16cecf61947afe79948feb8eda04e | vlc.exe -
How can do I in iOS project?
already I complied librtmp on mac for iphone?
How can use librtmp on iOS?

Installing an app directly into /Applications/

When you build an app, and directly install it on your iOS device as normal using Xcode, the application will be sandboxed on the device.
However, I would like to build the app straight into /Applications/ so that the application will not be sandboxed and therefore, I will be able to access the SMS database (var/mobile/Library/SMS/sms.db)
Edit---- Editor
(Editors Fault)
The OP mentioned in his original question that the application would be for a Jailbroken iOS Device, hence the 'jailbreak' tag. Apologies on my (the editors) behalf.
You can check out iOSOpenDev for an alternate toolset to use.
But, also, if your phone is jailbroken, you can use Cydia to install OpenSSH. With SSH installed, and the SSH daemon running, you can just log in to the phone and simply move the application directory (e.g. /var/mobile/Applications/*/MyAppName.app) to /Applications. You might need to change permissions with chown or chmod to make MyAppName.app and its contents have the same ownership/permissions as the other apps in /Applications.
ssh root#iphone-wifi-ip
find /var/mobile/Applications/ -name MyAppName.app
cd /var/mobile/Applications/D76328B1-42F2-4AA0-B1B4-A77796290082/
mv MyAppName.app /Applications/
chown -R mobile.staff /Applications/MyAppName.app
su mobile -c uicache
Obviously, the long unique ID string above will be different for you.
Another option is to use dpkg to package up your apps, and then install them on the device from the command line. But, that might be more work than you're ready for yet.
This is not possible with an app that is sold through the iTunes App Store.

Resources