Skip to main content

Questions tagged [ffmpeg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
150 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 ...
Catalin Morosan's user avatar
1 vote
0 answers
1k 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 ...
user9279628's user avatar
0 votes
0 answers
541 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 ...
Ash's user avatar
  • 1
0 votes
0 answers
946 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 ...
user avatar
0 votes
0 answers
218 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 ...
connor449's user avatar
  • 111
0 votes
1 answer
618 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 ...
TheIdealis's user avatar
1 vote
0 answers
349 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:...
user avatar
0 votes
1 answer
148 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 ...
allengar's user avatar
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 ...
user123456's user avatar
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 ...
user123456's user avatar
0 votes
0 answers
640 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 ...
Nonny Moose's user avatar
3 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....
Asif Aminur Rashid's user avatar
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 ...
Adam Chance's user avatar
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/...
jfreak53's user avatar
  • 240
5 votes
1 answer
597 views

How can I convert my music to show up OGG Vorbis tags?

What command with FFmpeg should I use to ensure that all of my metadata (Currently, most of the Artist tags are ignored) and music will play perfectly on Android? (Preferably using Ogg Vorbis!) I'm ...
Joe Simpson's user avatar
3 votes
3 answers
5k views

The video file cannot be played

I have new android tablet (Archos 7) and lot of video files are not playable. The program ends with message "The video file cannot be played". The file type is avi, which is normally playble (I played ...
xralf's user avatar
  • 47
3 votes
5 answers
3k views

Ffmpeg options for Android?

What ffmpeg options should I use to make video playable on Android Phone (specifically, LG Optimus)? I tried various bitrate and codecs and all combinations I came up with doesn't work (tried theora, ...
Kuroki Kaze's user avatar