Segmenting MP4 videofile for HLS VoD problem

For the developers that use FFmpeg in Windows software.
Post Reply
murilozilli
Posts: 1
Joined: Fri Jul 07, 2017 6:51 pm

Segmenting MP4 videofile for HLS VoD problem

Post by murilozilli » Fri Jul 07, 2017 6:58 pm

I am trying to encode and segment a video into different bitrates/resolutions.

I am using the following command

Code: Select all

ffmpeg -i 20170706_174314.mp4 -c 24 \
            -vcodec libx264 -acodec aac -ac 1 -strict -2 -b:v 128k \
            -profile:v baseline -maxrate 400k -bufsize 1835k \
            -hls_time 10 -hls_playlist_type vod -vsync 1 \
            video_chunks/index1.m3u8 \
            -c 24 -vcodec libx264 -acodec aac -ac 1 -strict -2 -b:v 128k \
            -profile:v baseline -maxrate 700k -bufsize 1835k \
            -hls_time 10 -hls_playlist_type vod -vsync 1 \
            video_chunks/index2.m3u8
It starts OK but then it starts to give the following message:
Past duration XX too large
Where XX is a decimal number really close to
0.675316
I have tried other ways to segment it like:

Code: Select all

ffmpeg -i 20170706_174314.mp4  -c:a libmp3lame -ar 48000 -ab 64k  -c:v libx264 -b:v 128k -flags -global_header -map 0 -f segment  -segment_list video_chunks/test.m3u8 -segment_time 10 -segment_format mpegts video_chunks/segment_%05d.ts
But I had the exactly same problem. It starts OK then it starts to give this message until the end of the process.

It is important to say that when I try to play the video using the playlist(m3u8) generated the video sucks in quality, some parts are black&white

The link to the video is below:
https://www.dropbox.com/s/ab9p0kqg7a6su ... 4.mp4?dl=0

Post Reply