ubuntu:video:convert_ts_to_mp4
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ubuntu:video:convert_ts_to_mp4 [2023/06/06 18:27] – peter | ubuntu:video:convert_ts_to_mp4 [2023/06/13 11:06] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - Video - Convert TS to MP4 ====== | ||
- | |||
- | ===== Software Encoding ===== | ||
- | |||
- | This will [[https:// | ||
- | |||
- | <code bash> | ||
- | ffmpeg -i input -map 0 -c copy output.mp4 | ||
- | </ | ||
- | |||
- | * If your inputs formats are not compatible with MP4 you will get an error. | ||
- | * Your player/ | ||
- | * If in doubt re-encode to H.264 + AAC as shown below. | ||
- | |||
- | This will re-encode the video to H.264 and stream copy the audio: | ||
- | |||
- | <code bash> | ||
- | ffmpeg -i input.ts -c:v libx264 -c:a copy output.mp4 | ||
- | </ | ||
- | |||
- | The next example will re-encode both video and audio: | ||
- | |||
- | <code bash> | ||
- | ffmpeg -i input.ts -c:v libx264 -c:a aac output.mp4 | ||
- | </ | ||
- | |||
- | Lossless H.264 example: | ||
- | |||
- | <code bash> | ||
- | ffmpeg -i input.ts -c:v libx264 -crf 0 -c:a copy output.mp4 | ||
- | </ | ||
- | |||
- | <WRAP important> | ||
- | **WARNING: | ||
- | </ | ||
- | |||
- | |||
- | See [[https:// | ||
ubuntu/video/convert_ts_to_mp4.1686076063.txt.gz · Last modified: 2023/06/06 18:27 by peter