Unified · Split
| @@ -32,6 +32,32 @@ Remove zero padding at the end of a packet. · 31 unmodified lines | ||
| 32 | 32 | |
| 33 | 33 | @section dump_extra |
| 34 | 34 | |
| 35 | +Add extradata to the beginning of the filtered packets. | |
| 36 | + | |
| 37 | +The additional argument specifies which packets should be filtered. | |
| 38 | +It accepts the values: | |
| 39 | +@table @samp | |
| 40 | +@item a | |
| 41 | +add extradata to all key packets, but only if @var{local_header} is | |
| 42 | +set in the @option{flags2} codec context field | |
| 43 | + | |
| 44 | +@item k | |
| 45 | +add extradata to all key packets | |
| 46 | + | |
| 47 | +@item e | |
| 48 | +add extradata to all packets | |
| 49 | +@end table | |
| 50 | + | |
| 51 | +If not specified it is assumed @samp{k}. | |
| 52 | + | |
| 53 | +For example the following @command{ffmpeg} command forces a global | |
| 54 | +header (thus disabling individual packet headers) in the H.264 packets | |
| 55 | +generated by the @code{libx264} encoder, but corrects them by adding | |
| 56 | +the header stored in extradata to the key packets: | |
| 57 | +@example | |
| 58 | +ffmpeg -i INPUT -map 0 -flags:v +global_header -c:v libx264 -bsf:v dump_extra out.ts | |
| 59 | +@end example | |
| 60 | + | |
| 35 | 61 | @section h264_mp4toannexb |
| 36 | 62 | |
| 37 | 63 | Convert an H.264 bitstream from length prefixed mode to start code |