This command worked on the local server:

ffmpeg -i "файл.mp4" -vcodec copy -acodec copy -bsf h264_mp4toannexb -ss 00:05:00 -t 00:00:04 "часть-файла.ts" 

This command from the 5th minute copies a piece of video clip lasting 4 seconds. But on the vps server, this command copies only sound, without video. Why there is no video?

  • Perhaps there is no codec? What does ffmpeg display? - ilyaplot
  • and how to check if there is a codec? - boomuo
  • if a part of the line with a start time definition and a move to the beginning, then ffmpeg creates videos from the video, but their duration does not match the specified parameters, the parts are very long, almost the entire movie instead of the specified 4 senund. ffmpeg -ss 00:20:34 -t 00:00:04 -i "file.mp4" -vcodec copy -acodec copy -bsf h264_mp4toannexb "tp_3.ts" - boomuo
  • command: ffmpeg -i "/home/admin/web/pornobody.ru/public_html/temp/video.mp4" -codec copy -bsf:v h264_mp4toannexb -ss 00:20:34 -t 00:00:04 "/home/admin/web/pornobody.ru/public_html/temp/tp_3.ts" Result: pastebin.com/8uzR7JEJ - boomuo

0