Questions tagged [ffmpeg]
The ffmpeg tag has no summary.
18 questions
3 votes
0 answers
124 views
What are the additional data streams in Google Pixels MP4 videos?
Almost by accident I stumpled about 3 additional streams that are stored within the *.mp4 video files my google Pixle 7a makes. This is what is reported about them [alex@thinkbox ffmpeg]$ nn.ffmpeg -i ...
1 vote
0 answers
379 views
Re-encoding with ffmpeg fails on Android
I have the following command that fails when running on an Android device. I don't think it's related to the overlaying part but to the re-encoding of the video. This same command works perfectly on ...
1 vote
0 answers
2k views
Hardware accelerated ffmpeg using MediaCodec on Android?
I've tried running for example ffmpeg -i 1_5111632628432240784.MP4 -c:v h264_mediacodec -c:a aac -b:v 1M -g 60 test.mp4 in Termux in different variations, which yields an output like this, regardless ...
0 votes
0 answers
1k views
M4A audio files not recognized by Samsung Recorder app
I need to convert my M4A audio files to M4A but with a 3GP4 codec (it seems Samsung audio recording app only recognizes those with a 3GP4 codec). How can I do that with ffmpeg or any other program? I ...
0 votes
0 answers
1k views
ffmpeg closes with "Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted" in android
I am running FFmpeg in my app and specifically in "Android 11" I am getting this error from several users I have researched a lot but no solution found. I thought there is something wrong ...
0 votes
0 answers
307 views
Is it possible to record MJPEG directly on Android?
Is it possible to record video from an android camera directly as MJPEG? I am interested in MJPEG for quality purposes. I don't want to record video via default android settings and then convert to ...
1 vote
1 answer
730 views
Compress a video for android using ffmpeg
I'm trying to compress a video to send it around in a messenger. Normally I would use something like ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4 but if I send it around in a messenger app ...
1 vote
0 answers
408 views
FFmpeg Two-Pass Encoding in Android
According to the documentation for using Two-Pass method we have to run ffmpeg twice like this: ffmpeg -y -i input -c:v libx264 -b:v 2600k -pass 1 -an -f mp4 /dev/null && \ ffmpeg -i input -c:...
0 votes
1 answer
166 views
Unsure why Android has issues with certain Opus files
I'm not 100% sure where to post this cause it's kind of a strange issue. I recently discovered the Opus format and converted all my songs to it, so they would fit on my phone. However a few cd's I've ...
1 vote
0 answers
1k views
Which ffmpeg command allow me to record sound?
ffmpeg can be installed through termux by installing the package mpv: $ apt-get install mpv Now, on linux, I record sound with the command ffmpeg -f alsa -ac 2 -i plughw:0,0 recording.mp3 This ...
1 vote
1 answer
3k views
Cannot install ffmpeg with Termux
Why do I get a 404 Not Found [IP: 104.18.36.234 80] after attempting to install ffmpeg? # apt-install ffmpeg Reading package lists... Building dependency tree... Reading state ...
0 votes
0 answers
693 views
Ffmpeg on non-rooted Android?
I've set several places where I can get a ffmpeg binary for Android, but I cannot seem to run it. I use the . command to run shell scripts, but not ffmpeg. Is there any way at all I can run ffmpeg ...
4 votes
1 answer
17k views
Fast Video Compression on Android
I want to upload video files to server and compress before uploading. I'm using ffmpeg libx264. I have seen viber can upload 30 second video file of size 32MB within a minute [reduce it's down to 2....
1 vote
1 answer
6k views
ffmpeg - Permission denied when running binary, even as root
I've compiled ffmpeg for Android with the NDK and transferred the compiled binary to /data/local, but when I try to execute the binary, even as su, the terminal returns 'Permission denied.' The ...
5 votes
1 answer
5k views
FFMpeg stream to FFServer from Back Camera
I'm looking for a way to stream my camera video from my Android phone to an FFServer, like I would with FFMpeg from the command line in Linux: ffmpeg -f video4linux2 -i /dev/video0 http://IP:8090/...