[FFmpeg-user] Please streaming over nginx

Phat Nguyentan phatnguyentan0491 at gmail.com
Wed Aug 7 11:50:32 EEST 2019


Hi Moritz Barsnick,
Thank you so much to help me. Please check this link:
https://drive.google.com/open?id=1KpIVkt9WA0O2CDU3E9BjuSxPhcik8gto
(2 clips, and log ffmpeg -codecs)
Clip 1> Run ffmpeg on ubuntu and nginx server on ubuntu:
- command: ffmpeg -loglevel verbose -re -i /dev/video0 -vcodec libx264
-acodec libmp3lame -ar 44100 -ac 1 -f flv rtmp://192.168.1.11:1935/hls/movie
- result: move-01.ts (and movie.m3u8 later),
Clip 2> Run ffmpeg on openwrt:
- command: ffmpeg -loglevel verbose -re -i /dev/video0 -vcodec libx264
-acodec libmp3lame -ar 44100 -ac 1 -f flv rtmp://192.168.1.11:1935/hls/movie
- result: Unknown encoder 'libx264'
- command: ffmpeg -loglevel verbose -re -i /dev/video0  -acodec libmp3lame
-ar 44100 -ac 1 -f flv rtmp://192.168.1.11:1935/hls/movie
- result: working ( but nginx can not create move-01.ts and movie.m3u8
later).
Please help me.

On Wed, Aug 7, 2019 at 2:43 PM Moritz Barsnick <barsnick at gmx.net> wrote:

> On Wed, Aug 07, 2019 at 13:29:06 +0700, Phat Nguyentan wrote:
> > I use openwrt and ffmpeg without h264 and libx264.  try to create m3u8
> file
> > on nginx. I run command:
> > ffmpeg -loglevel verbose -re -i /dev/video0 -acodec libmp3lame -ar 44100
> > -ac 1 -f flv rtmp://localhost:1935/hls/movi
> > It's not working, can't create m3u8 file.
>
> "It's not working" is a very short report. It helps if you post the
> complete, uncut console output. (Why would the format flv create an
> m3u8? Or do you mean nginx creates the m3u8?)
>
> Seeing that you already figured out that it's the missing codec: Have
> you tried a different one? ffmpeg's default codec for flv should be
> "flv1", and that is supported natively, without external libraries.
>
> > -vcodec h264, it's working, but on openwrt we don't have codecs.
>
> No codecs *at all*? You mean ffmpeg has no video encoders? Please show
> us the output of
> $ ffmpeg -codecs
>
> Thanks.
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list