android camera

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

android camera

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

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:
ffmpeg -f android_camera -vcodec flv1 -f flv /sdcard/capture.flv
I get the error:
Output file # 0 doesn’t contain any stream
Tried various codecs and output file formats
What's wrong?
Gadget LG K7
OS Android 7.1.2

--
Evgeny
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

=?UTF-8?B?ZmZtcGVnX2J1aWxkLnNo?= (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: android camera

Carl Eugen Hoyos-2
2018-12-22 6:51 GMT+01:00, Евгений Эресман <[hidden email]>:
>
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: android camera

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



>Суббота, 22 декабря 2018, 15:09 +03:00 от Carl Eugen Hoyos <[hidden email]>:
>
>2018-12-22 6:51 GMT+01:00, Евгений Эресман < [hidden email] >:
>>
>> 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
>[hidden email]
>http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>To unsubscribe, visit link above, or email
>[hidden email] 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.

--
Евгений Эресман
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: android camera

Nikhil Yadav
Failed to allocate memory and Failed to open camera error are due to the
reason app doesn't have camera permission
Check weather your app has relevant permission or not

On Sat, Dec 22, 2018, 6:20 PM Евгений Эресман <[hidden email]>
wrote:

>
>
>
> >Суббота, 22 декабря 2018, 15:09 +03:00 от Carl Eugen Hoyos <
> [hidden email]>:
> >
> >2018-12-22 6:51 GMT+01:00, Евгений Эресман <
> [hidden email] >:
> >>
> >> 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
> >[hidden email]
> >http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> >To unsubscribe, visit link above, or email
> >[hidden email] 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.
>
> --
> Евгений Эресман
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: android camera

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



>Суббота, 22 декабря 2018, 16:00 +03:00 от Nikhil Yadav <[hidden email]>:
>
>Failed to allocate memory and Failed to open camera error are due to the
>reason app doesn't have camera permission
>Check weather your app has relevant permission or not
>
>On Sat, Dec 22, 2018, 6:20 PM Евгений Эресман < [hidden email] >
>wrote:
>
>>
>>
>>
>> >Суббота, 22 декабря 2018, 15:09 +03:00 от Carl Eugen Hoyos <
>>  [hidden email] >:
>> >
>> >2018-12-22 6:51 GMT+01:00, Евгений Эресман <
>>  [hidden email] >:
>> >>
>> >> 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
>> > [hidden email]
>> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> >
>> >To unsubscribe, visit link above, or email
>> > [hidden email] 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.
>>
>> --
>> Евгений Эресман
>> _______________________________________________
>> ffmpeg-user mailing list
>>  [hidden email]
>>  http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>>  [hidden email] with subject "unsubscribe".
>_______________________________________________
>ffmpeg-user mailing list
>[hidden email]
>http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>To unsubscribe, visit link above, or email
>[hidden email] with subject "unsubscribe".
I understand that the command line does not reach the camera?

--
Евгений Эресман
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: android camera

Евгений Эресман
In reply to this post by Nikhil Yadav
I understand that the command line does not reach the camera?


>Суббота, 22 декабря 2018, 16:00 +03:00 от Nikhil Yadav <[hidden email]>:
>
>Failed to allocate memory and Failed to open camera error are due to the
>reason app doesn't have camera permission
>Check weather your app has relevant permission or not
>
>On Sat, Dec 22, 2018, 6:20 PM Евгений Эресман < [hidden email] >
>wrote:
>
>>
>>
>>
>> >Суббота, 22 декабря 2018, 15:09 +03:00 от Carl Eugen Hoyos <
>>  [hidden email] >:
>> >
>> >2018-12-22 6:51 GMT+01:00, Евгений Эресман <
>>  [hidden email] >:
>> >>
>> >> 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
>> > [hidden email]
>> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> >
>> >To unsubscribe, visit link above, or email
>> > [hidden email] 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.
>>
>> --
>> Евгений Эресман
>> _______________________________________________
>> ffmpeg-user mailing list
>>  [hidden email]
>>  http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>>  [hidden email] with subject "unsubscribe".
>_______________________________________________
>ffmpeg-user mailing list
>[hidden email]
>http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>To unsubscribe, visit link above, or email
>[hidden email] with subject "unsubscribe".

--
Евгений Эресман
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".