ffmpeg
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ffmpeg [2016/11/23 11:22] – walkeradmin | ffmpeg [2019/11/20 21:42] (current) – walkeradmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== FFMEPG | + | ===== FFMPEG |
| ==== and FFPLay ==== | ==== and FFPLay ==== | ||
| \\ | \\ | ||
| Line 6: | Line 6: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | Chris Duxbury has worked out a simple syntax we can use to extract our .ts files to .mp4 files (.mp4 is a valid container for both h.264 and HEVC steams). | + | ==== Contents |
| - | \\ | + | |
| - | \\ | + | *[[.MOV to .MP4]]\\ |
| - | ==== FFMEPG | + | |
| - | The following syntax will work for SPTS files (not sure about MPTS) | + | *[[Rescale |
| - | \\ | + | *[[FFPlay]]\\ |
| - | | + | *[[FFProbe]]\\ |
| - | \\ | + | |
| - | The <color red> | + | |
| - | \\ | + | |
| - | \\ | + | |
| - | Using <color red>-map 0:0 -map 0:1 -map 0:1 -map 0: | + | |
| - | \\ | + | |
| - | \\ | + | |
| - | Using <color red>-c copy</ | + | |
| - | \\ | + | |
| - | \\ | + | |
| - | ==== FFPLAY ==== | + | |
| - | FFPLAY comes bundled with the ffmpeg download. The ffplay is a simple to use command line app for playing the extracted streams that you have just created. | + | |
| - | \\ | + | |
| - | \\ | + | |
| - | The simple use of fflplay is just: | + | |
| - | \\ | + | |
| - | ffplay filename.mp4 | + | |
| - | \\ | + | |
| - | However, the issue with UHD streams is that they are larger than most monitors, so it is generally necessary | + | |
| - | \\ | + | |
| - | \\ | + | |
| - | To replay a video in a window. | + | |
| - | \\ | + | |
| - | ffplay -i video.mpg -vf scale=800x600 | + | |
| - | + | ||
| - | This will replay the selected file at a window size of 800x600. Remember, currently (End 2016) | + | |
| - | UHD streams play very poorly and you will only get 1 or 2 frames per second. | + | |
| - | \\ | + | |
| - | To replay a video full screen. | + | |
| - | \\ | + | |
| - | ffplay -i video.mpg -vs | + | |
| - | + | ||
| - | This will replay the video at fullscreen resolution. | + | |
| - | \\ | + | |
| - | \\ | + | |
| - | ==== FFPROBE ==== | + | |
| - | FFPROBE allows the inspection of a file for some basic information. ffprobe is useful to analyse a .ts file before extraction to see what streams are present, the PIDs etc. | + | |
| - | \\ | + | |
| - | ffproble filename.ts | + | |
| - | + | ||
| - | Input #0, mpegts, from ' | + | |
| - | Duration: 00: | + | |
| - | Program 1 | + | |
| - | Metadata: | + | |
| - | service_name | + | |
| - | service_provider: | + | |
| - | Stream #0:0[0x3e9]: | + | |
| - | 0le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc | + | |
| - | | + | |
| \\ | \\ | ||
| \\ | \\ | ||
ffmpeg.1479900145.txt.gz · Last modified: (external edit)
