How to trim HLS or MEPG-DASH video using FFmpeg?

@Deepak_k, welcome to the community.

[fferr] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1f65fc0] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible! → this means the file may be corrupted of truncated.

bf288058-73f8-4a6a-a608-ffabac80179d:49 [fferr] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1f65fc0] moov atom not found → this contains the metadata of an MP4 file, if this is missing, processing is not possible

Note: Try this command ffmpeg -v error -i temp_video.mp4 -f null - and if this throws error, the file is damaged.

Solution:
You can try this ffmpeg -i temp_video.mp4 -c copy -movflags +faststart fixed_video.mp4 to fix the errors. If not, try to source the file again. It may be not completely downloaded or still in writing mode.