Examples showing how to use the commandline to create stream output. Read more
Extract video and audio tracks from a media container
To extract the raw H.264 and AAC contents of an mp4 container.
This will create test.mp4 containing the H.264 NALs in AnnexB format and test.aac in AAC ADTS format.
--extract can be used to convert .flv files to .mp4 by extracting the raw contents and then creating an mp4 container. .mp4 is preferred over .flv to allow fast-play of download files and better seeking during playback.
To extract the raw video and audio contents of an mpeg2-ts file.
If the mpeg2-ts file was captured from broadcast TV, this will create test.h262 containing the mpeg2 elementary stream and test.ac3 containing the a52 (dolby digital) audio contents.