O
O
OKNOZA2015-03-19 18:11:06
fmpeg
OKNOZA, 2015-03-19 18:11:06

How to convert from mpg format to mp4 or cut m3u8?

Do you need to convert the format from mpg to mp4 or m3u8 (HLS) cut, and can you also cut black edges?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
monah_tuk, 2015-04-05
@monah_tuk

1. mpg -> mp4 it's not clear what exactly you want, basically, what question is the answer:
ffmpeg -i in.mpeg out.mp4
will do everything for you.
For HLS you need to smoke:
https://www.ffmpeg.org/ffmpeg-formats.html#segment...
https://bitbucket.org/walterebert/ffmpeg-hls/src
2. black edges
If the dimensions are known, a filter will help crop:
https://ffmpeg.org/ffmpeg-filters.html#crop
video.stackexchange.com/questions/4563/how-can-ic...
if not known - write your own to detect and set up crop.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question