finbad.blogg.se

Ffmpeg mp4 to ts with time info
Ffmpeg mp4 to ts with time info










ffmpeg mp4 to ts with time info

I have researched the process using these (and other pages) as a guide: VLC Error Log (though I expect to play via web browser)

ffmpeg mp4 to ts with time info

Using ffprobe I can confirm their duration is 60seconds, for example:įfprobe -i 1.ts -v quiet -show_entries format=duration -hide_banner -print_format jsonĬan anyone advise where I am going wrong? Thus now I have 1.mp4, 1.ts, 2.mp4, 2.ts and all four play individually just fine. I repeat the above steps except specific to image21.jpg and image22.jpg, creating 2.mp4 and 2.tsįfmpeg -y -framerate 1/30 -f image2 -i image1%1d.jpg -c:v libx264 -vf "fps=1,format=yuvj420p" 2.mp4įfmpeg -y -i 1.mp4 -c:v libx264 -vbsf h264_mp4toannexb -flags -global_header -f mpegts 2.ts

ffmpeg mp4 to ts with time info

It plays like expected.įfmpeg -y -i 1.mp4 -c:v libx264 -vbsf h264_mp4toannexb -flags -global_header -f mpegts 1.ts I then convert 1.mp4 to an mpegts file, creating 1.ts. It plays like expected.įfmpeg -y -framerate 1/30 -f image2 -i image1%1d.jpg -c:v libx264 -vf "fps=1,format=yuvj420p" 1.mp4 The following command creates 1.mp4, using image11.jpg and image12.jpg, each image displayed for 30 seconds, total duration of the mp4 is 1 minute. I have four jpgs named image11.jpg, image12.jpg, image21.jpg, image22.jpg - The images look near identical as only the timestamp in top left changes. I am using ffmpeg 4.2.2-static installed on an AWS EC2 with AMI2 Linux. Can anyone advise why it stops and how I can get it to play all the TS files that I expect to create, not just the first TS file? Besides my ffmpeg commands, I also include my VLC log file (though I expect to stream to Firefox/Chrome clients). When I reference the two TS files in an M3U8 playlist, only the first TS file gets played.

ffmpeg mp4 to ts with time info

Each MP4 and TS file play fine individually (each contain two images, each image transitions after 30seconds, each movie file is 1minute long). I need stream them, preferably via HLS, thus I wrap 2 images in an MP4. The duration that each image is shown within the movie file differs from many posts that I have seen thus far.Ī camera captures 1 image every 30 seconds. Before posting I have searched and found similar questions on stackoverflow (I list some below) - none have helped me towards a solution, hence this post.












Ffmpeg mp4 to ts with time info