Open wnpllrzodiac opened 5 years ago
ffplay windows version: ffplay version 4.1 Copyright (c) 2003-2018 the FFmpeg developers
sample clip as follows:
http://iloveyaya.ga:9108/test/tmp/cut_bad.mp4 http://iloveyaya.ga:9108/test/tmp/cut_good.mp4
Both files produce identical TS segments -
# for i in {1..4}; do curl -s localhost:8001/local/hls/content/cut_bad.mp4/seg-$i-v1-a1.ts | cksum ; done
3086110997 3309176
3955747098 2154104
3556619675 3107640
2423141460 105656
# for i in {1..4}; do curl -s localhost:8001/local/hls/content/cut_good.mp4/seg-$i-v1-a1.ts | cksum ; done
3086110997 3309176
3955747098 2154104
3556619675 3107640
2423141460 105656
Fast start is not required, the module can locate the metadata without it, but when the file is 'fast start' it can save some read/seek operations when the metadata is not already cached. Maybe you updated the file in place, and you have some caching issue?
Yes, I transcode the media file using ffmpeg several time for test(with out restart nginx). May be it's the key point, I will check it.
The suggested work-flow is transcode media file in trans folder and move it to nginx vod distribution folder to avoid media meta data corruption?
If it's for testing, you can just disable the metadata cache. For production, we never change a video file on disk, if it needs to be changed, we create a new version (=file with a different name) + generate new URLs. Consider that on production, if someone is already playing v1 of the file, he needs to keep getting segments generated from v1. If you start returning segments from v2, playback will likely fail, or some other odd behaviors will be encountered.
Hi, I convert a clip with ffmepg command like this:
ffplay http://1.2.3.4:9880/hls/cut_bad.mp4/index.m3u8 play bad,
ffplay http://1.2.3.4:9880/hls/cut_good.mp4/index.m3u8 play well
option "-movflags +faststart" make the difference?