Convert H.264 to H.263 for Android Phone

I get a live stream of IP camera content in H.264 AVC format, and I found out that Android phones with SDKs less than 3.0 do not support it. Is there a way when I can convert it while receiving it and display it in the form if H.263 is from my end? I am testing Samsung Galaxy with OS 2.2.

+4
source share
1 answer

Android 3.0 preview devices support H.264 playback (i.e., decoding). They simply do not support H.264 encoding. (See documentation.) See also this Q & A.

I don't know how to convert a live stream to H.263, as the OP requested, but for those who can do the conversion first, FFmpeg is a possible solution.

ffmpeg -i /path/to/your/file.h264 -vcodec copy -acodec copy /path/to/your/newfile.h263 

(a source)

But see this answer for more specific ffmpeg options designed to work on Android.

0
source

Source: https://habr.com/ru/post/1388124/


All Articles