[FFmpeg-user] ffserver config for HLS

Maziar Mehrabi maziar.mehrabi at gmail.com
Tue Oct 7 07:47:55 CEST 2014


Hi,

How did you verify and made sure that these parameters are correct?

BR,
Maziar


--
Hälsningar,
Maziar Mehrabi,

On Tue, Oct 7, 2014 at 8:18 AM, ajay parashar <
ajay_382000-at-yahoo.co.in at ffmpeg.org> wrote:

>
>
>
>
>
>
>
>
>
> Hi,
>
> Asf video streaming is working smoothly at my end  but Now I want to do
> HLS by using ffmpeg, ffserver and (VLC or iPAD) as per below order.
>
> Step 1) execute vlc
> Step 2) execute ffserver
> Step 3) execute ffmpeg
>
> I tried a lot but not getting any ffserver config file that can be used
> for HLS streaming .
>
> Please share working ffserver config file with me.
>
> Thanks
> Ajay
>
>
> ******************************************************************************
>
> Please provide me working ffserver configuration file for HLS streaming.
>
> **************************************************************************************
>
> Below is the ffmpeg command and it says "maybe incorrect parameters such
>  as bit_rate, rate, width or height". I verified all these parameters
> are correct
>
> ffmpeg -i
> pentagon_hd_sd.ts -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f
> ssegment -segment_list_flags +live -segment_list playlist.m3u8
> -segment_time 10 out%03d.ts  http://10.125.133.31:8080/feed1.ffm
> ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers
>   built on Sep 29 2014 13:53:35 with gcc 4.8.3 (GCC) 20140624 (Red Hat
> 4.8.3-1)
>   configuration: --enable-gpl --enable-libx264 --enable-shared
> --disable-static --disable-stripping
>   libavutil      54.  7.100 / 54.  7.100
>   libavcodec     56.  1.100 / 56.  1.100
>   libavformat    56.  4.101 / 56.  4.101
>   libavdevice    56.  0.100 / 56.  0.100
>   libavfilter     5.  1.100 /  5.  1.100
>   libswscale      3.  0.100 /  3.  0.100
>   libswresample   1.  1.100 /  1.  1.100
>   libpostproc    53.  0.100 / 53.  0.100
> [mpegts @ 0x22f4ec0] PES packet size mismatch
>     Last message repeated 2 times
> Input #0, mpegts, from 'pentagon_hd_sd.ts':
>   Duration: 00:01:03.13, start: 32875.204489, bitrate: 5282 kb/s
>   Program 1
>     Stream #0:0[0x44]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
> fltp, 192 kb/s
>     Stream #0:1[0x45]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
> fltp, 384 kb/s
>
>  Stream #0:2[0x46]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
> yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr,
> 90k tbn, 119.88 tbc
>     Stream #0:3[0x47]: Video:
> h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 704x480
> [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
> [libx264 @ 0x2351e60] using SAR=10/11
> [libx264 @ 0x2351e60] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
> [libx264 @ 0x2351e60] profile High, level 3.0
> [ac3 @ 0x2359c20] invalid mixing level. must be between 80dB and 111dB
> Output #0, stream_segment,ssegment, to 'out%03d.ts':
>     Stream #0:0: Video: h264 (libx264), yuv420p, 704x480 [SAR 10:11 DAR
> 4:3], q=-1--1, 29.97 fps, 29.97 tbn, 29.97 tbc
>     Metadata:
>       encoder         : Lavc56.1.100 libx264
>     Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s
> Output #1, ffm, to 'http://10.125.133.31:8080/feed1.ffm':
>   Metadata:
>     creation_time   : now
>     Stream #1:0: Audio: ac3, 48000 Hz, 2 channels, fltp, 128 kb/s
>     Metadata:
>       encoder         : Lavc56.1.100 ac3
>     Stream #1:1: Video: h264, 704x480, q=2-31, 128 kb/s, SAR 40:33 DAR
> 16:9, 59.94 fps, 1000k tbn, 30 tbc
>     Metadata:
>       encoder         : Lavc56.1.100 libx264
> Stream mapping:
>   Stream #0:3 -> #0:0 (h264 (native) -> h264 (libx264))
>   Stream #0:0 -> #0:1 (copy)
>   Stream #0:0 -> #1:0 (ac3 (native) -> ac3 (native))
>   Stream #0:2 -> #1:1 (h264 (native) -> h264 (libx264))
> Error while opening encoder for output stream #1:0 - maybe incorrect
> parameters such as bit_rate, rate, width or height
>
>
> *******************************************************************************************************
> My ffserevr config file
>
> *********************************************************************************************************
> HTTPPort 8080
> HTTPBindAddress 10.125.133.31
> MaxClients 1000
> MaxBandwidth 1000
>
> <Feed feed1.ffm>
> File /tmp/feed1.ffm
> FileMaxSize 1G
> ACL allow localhost
> ACL allow 10.125.133.31 10.125.133.66 10.125.133.151
> </Feed>
>
> <Stream playlist_try.m3u8>
> Feed feed1.ffm
> Format HLS
> VideoCodec libx264
> VideoFrameRate 30
> VideoBitRate 128
> VideoSize 704*480
> AVOptionVideo hls_time 10
> AVOptionVideo hls_list_size 0
> AVOptionVideo flags +global_header
> AudioCodec ac3
> AudioBitRate 128
> AudioChannels 2
> AudioSampleRate 48000
> </Stream>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list