History

doc/bitstream_filters: document dump_extra

Stefano Sabatini committed 13 years ago

Commit 34322ab1 parent b405f4e1 file · +26 −0Browse files

Unified · Split

doc/bitstream_filters.texi+26−0
@@ -32,6 +32,32 @@ Remove zero padding at the end of a packet. · 31 unmodified lines
3232
3333 @section dump_extra
3434
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+
3561 @section h264_mp4toannexb
3662
3763 Convert an H.264 bitstream from length prefixed mode to start code

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t