[FFmpeg-user] mp4 streaming error on ffmpeg
Ameeth Vikram
ameeth at watchy.in
Tue Oct 2 08:56:59 CEST 2012
On Tue, Oct 2, 2012 at 10:53 AM, Ameeth Vikram <ameeth at watchy.in> wrote:
>
>
> On Tue, Oct 2, 2012 at 10:37 AM, Roger Pack <rogerdpack2 at gmail.com> wrote:
>
>> >> ffmpeg exits? What's the return value?
>> >> You may need to add " live=1" to your url...
>> >> -r
>> >>
>> >
>> > Hi,
>> > yes ffmpeg exists , but i didn't get about the return value and also can
>> > tell me an example command for h264 format streaming.
>>
>> it exits with a hard failure like seg fault?
>> return value in bash is
>> $ echo $?
>>
>> http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide may be useful to you.
>>
>
> thanks, i will go through this link.
>
> i went through this link according to an example command which was in
this link, i changed my command and worked but i am getting the previous
error i.e., the command stops after some amount of time say 2-3 minutes.
The command that i worked is
./ffmpeg \
-f alsa -async 1 -ac 2 -i hw:2,0 \
-f video4linux2 -vsync 1 -s:v vga -i /dev/video0 \
-acodec aac -b:a 40k \
-r 25 -s:v vga -vcodec libx264 -strict -2 -crf 25 -preset fast -b:v 320K
-pass 1 -bsf:v h264_mp4toannexb \
-f mpegts rtmp://192.168.2.105/live/testing
Above command stops after sometimes and the video is also not playing on
the rtmp server.
_______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>
>
>
> --
> Thanks,
> Ameeth.
> Ph: 77950 00494
> email: ameeth at watchy.in
>
>
--
Thanks,
Ameeth.
Ph: 77950 00494
email: ameeth at watchy.in
More information about the ffmpeg-user
mailing list