![]() Audio codecs for TS containers: FFmpeg will happily place these codecs in TS: MP2, MP3, LC-AAC, HE-AAC, AC3.Comparison of video container formats: A handy set of tables showing which codecs live most happily in each container format.A lot of room for experimentation with the segment options which are described here. If you wish to alter the codecs of the input file simply add the required settings in place of -codec copy, I believe that H.264 and AAC are popular codecs for this type of streaming. segment_list_flags live -segment_time 10 \ There are as always several ways to accomplish this but the sample command line below will work well for input files whose codecs are supported in a TS container: ffmpeg -re -i input.mp4 \ You wish to segment your file for HTTP Live Streaming (HLS):Īnd finally you may wish to produce a segmented TS file with playlist for use with HTTP Live Streaming (HLS). ![]() This certainly gave quite reasonable results on my system and should on yours as well.ģ. If you are happy to go with these default codecs the following will give great results: ffmpeg -i input.mp4 \ The default codecs for FFmpeg and the TS container are mpeg2video and mp2 sound. If your input file contains codecs that are not well supported in a TS container you will need to re-encode either video or audio streams or both. Your input file's codecs are not supported in a TS container: This will give great results although you may need to vary this command line depending on your actual use of the output file (streaming, a certain playback device etc).Ģ. If the file contains codecs that are well supported in a TS container, for example H.264 video and AAC sound, you can simply copy the streams across: ffmpeg -i input.mp4 -c copy output.ts Your input file's codecs are supported in TS container:Įxamine your input file with FFmpeg as follows: ffmpeg -i input.mp4 As always with FFmpeg there are a number of choices to make, and I have narrowed this down a little further to create a clear answer:ġ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |