[FFmpeg-user] android camera

Евгений Эресман klab.72 at mail.ru
Sat Dec 22 14:50:38 EET 2018




>Суббота, 22 декабря 2018, 15:09 +03:00 от Carl Eugen Hoyos <ceffmpeg at gmail.com>:
>
>2018-12-22 6:51 GMT+01:00, Евгений Эресман < klab.72-at-mail.ru at ffmpeg.org >:
>>
>> Hello!
>> Please help!
>> Built ffmpeg-4.1 static with android_camera support.
>> Config file attached
>> Trying to grab the android camera from the command line:
>When asking for help here, always provide the command
>line you tested together with the complete, uncut console output.
>
>> ffmpeg -f android_camera -vcodec flv1 -f flv /sdcard/capture.flv
>
>The command line is missing the necessary option "-i":
>ffmpeg -f android_camera -i ... -vcodec flv1 -f flv /sdcard/capture.flv
>but you can remove "-vcodec flv1 -f flv", both are the default
>for output file suffix ".flv".
>
>I don't know what you have to put after "-i", try "-i 0".
>
>Carl Eugen
>_______________________________________________
>ffmpeg-user mailing list
>ffmpeg-user at ffmpeg.org
>http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>To unsubscribe, visit link above, or email
>ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
Tried
ffmpeg -f android_camera -i 0 -vcodec flv1 -f flv /sdcard/capture.flv
and
ffmpeg -f android_camera -i 1 -vcodec flv1 -f flv /sdcard/capture.flv
and
ffmpeg -f android_camera -i - -vcodec flv1 -f flv /sdcard/capture.flv
Mistake
Failed to allocate memory for camera_id
Failed to open camera
Failed to open android_camera
0: Generic error in an external library
...
pipe: Generic error in an external library
If so
ffmpeg -f android_camera -map 0 -vcodec flv1 -f flv /sdcard/capture.flv
Mistake
Invalid input file index: 0.

-- 
Евгений Эресман


More information about the ffmpeg-user mailing list