wiki:

TracQuery

Trac Ticket Queries

In addition to reports, Trac provides support for custom ticket queries, used to display lists of tickets meeting a specified set of criteria.

To configure and execute a custom query, switch to the View Tickets module from the navigation bar, and select the Custom Query link.

Filters

When you first go to the query page the default filter will display tickets relevant to you:

  • If logged in then all open tickets it will display open tickets assigned to you.
  • If not logged in but you have specified a name or email address in the preferences then it will display all open tickets where your email (or name if email not defined) is in the CC list.
  • If not logged and no name/email defined in the preferences then all open issues are displayed.

Current filters can be removed by clicking the button to the left with the minus sign on the label. New filters are added from the pulldown lists at the bottom corners of the filters box ('And' conditions on the left, 'Or' conditions on the right). Filters with either a text box or a pulldown menu of options can be added multiple times to perform an or of the criteria.

You can use the fields just below the filters box to group the results based on a field, or display the full description for each ticket.

Once you've edited your filters click the Update button to refresh your results.

Clicking on one of the query results will take you to that ticket. You can navigate through the results by clicking the Next Ticket or Previous Ticket links just below the main menu bar, or click the Back to Query link to return to the query page.

You can safely edit any of the tickets and continue to navigate through the results using the Next/Previous/Back to Query links after saving your results. When you return to the query any tickets which were edited will be displayed with italicized text. If one of the tickets was edited such that it no longer matches the query criteria the text will also be greyed. Lastly, if a new ticket matching the query criteria has been created, it will be shown in bold.

The query results can be refreshed and cleared of these status indicators by clicking the Update button again.

Saving Queries

Trac allows you to save the query as a named query accessible from the reports module. To save a query ensure that you have Updated the view and then click the Save query button displayed beneath the results. You can also save references to queries in Wiki content, as described below.

Note: one way to easily build queries like the ones below, you can build and test the queries in the Custom report module and when ready - click Save query. This will build the query string for you. All you need to do is remove the extra line breaks.

Note: you must have the REPORT_CREATE permission in order to save queries to the list of default reports. The Save query button will only appear if you are logged in as a user that has been granted this permission. If your account does not have permission to create reports, you can still use the methods below to save a query.

You may want to save some queries so that you can come back to them later. You can do this by making a link to the query from any Wiki page.

[query:status=new|assigned|reopened&version=1.0 Active tickets against 1.0]

Which is displayed as:

Active tickets against 1.0

This uses a very simple query language to specify the criteria (see Query Language).

Alternatively, you can copy the query string of a query and paste that into the Wiki link, including the leading ? character:

[query:?status=new&status=assigned&status=reopened&group=owner Assigned tickets by owner]

Which is displayed as:

Assigned tickets by owner

Using the [[TicketQuery]] Macro

The TicketQuery macro lets you display lists of tickets matching certain criteria anywhere you can use WikiFormatting.

Example:

[[TicketQuery(version=0.6|0.7&resolution=duplicate)]]

This is displayed as:

No results

Just like the query: wiki links, the parameter of this macro expects a query string formatted according to the rules of the simple ticket query language. This also allows displaying the link and description of a single ticket:

[[TicketQuery(id=123)]]

This is displayed as:

#123
Fuzzed sample crashes ffplay

A more compact representation without the ticket summaries is also available:

[[TicketQuery(version=0.6|0.7&resolution=duplicate, compact)]]

This is displayed as:

No results

Finally, if you wish to receive only the number of defects that match the query, use the count parameter.

[[TicketQuery(version=0.6|0.7&resolution=duplicate, count)]]

This is displayed as:

0

Customizing the table format

You can also customize the columns displayed in the table format (format=table) by using col=<field> - you can specify multiple fields and what order they are displayed by placing pipes (|) between the columns like below:

[[TicketQuery(max=3,status=closed,order=id,desc=1,format=table,col=resolution|summary|owner|reporter)]]

This is displayed as:

Results (1 - 3 of 4724)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#6163 invalid concat demuxer produces invalid output with frame-held mp4 JohnHawkinson
#6162 invalid concat protocol can't concat the same mp4 file? JohnHawkinson
#6161 invalid Wrong WAV duration only in json format lkentaro
1 2 3 4 5 6 7 8 9 10 11

Full rows

In table format you can also have full rows by using rows=<field> like below:

[[TicketQuery(max=3,status=closed,order=id,desc=1,format=table,col=resolution|summary|owner|reporter,rows=description)]]

This is displayed as:

Results (1 - 3 of 4724)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#6163 invalid concat demuxer produces invalid output with frame-held mp4 JohnHawkinson
Description

Summary of the bug: concat demuxer produces invalid output with frame-held mp4

If I "frame hold" the first frame of an mp4 by extracting it to a png and then looping it with -loop 1 -pix_fmt +yuv420p, and then combine with the original mp4, I get an mp4 that does not play in VLC. The held frame plays for the duration of the hold, and then VLC hangs.

Furthermore, doing so with a 3.933 second frame hold and a 1 second video gives nonsensical output per ffprobe: an 11.63 second mp4.

Note that short1.mp4 is attached to another ticket so I will not duplicate it here: https://trac.ffmpeg.org/attachment/ticket/6162/short1.mp4

How to reproduce:

# First, extract the still:
pb3:test jhawk$  ffmpeg -i short1.mp4 -frames:v 1 -f image2 f1.png
ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'short1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.66.102
  Duration: 00:00:01.10, start: 0.000000, bitrate: 8698 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 8572 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Output #0, image2, to 'f1.png':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.66.102
    Stream #0:0(eng): Video: png, rgb24, 1280x720, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc57.80.101 png
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> png (native))
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.03 bitrate=N/A speed=0.289x    
video:708kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

# Next, loop it for 3.933 seconds:
pb3:test jhawk$ ffmpeg -y -loop 1 -i f1.png -t 3.933 -pix_fmt +yuv420p h1.mp4
ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, png_pipe, from 'f1.png':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: png, rgb24(pc), 1280x720, 25 fps, 25 tbr, 25 tbn, 25 tbc
The filters 'Parsed_null_0' and 'format' do not have a common format and automatic conversion is disabled.
Error opening filters!

# Apparently that doesn't work? So use -c copy and get the Lavf encoder
$ ffmpeg -loop 1 -i f1.png -t 3.933 -pix_fmt +yuv420p -c copy h1.mp4
ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, png_pipe, from 'f1.png':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: png, rgb24(pc), 1280x720, 25 fps, 25 tbr, 25 tbn, 25 tbc
File 'h1.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'h1.mp4':
  Metadata:
    encoder         : Lavf57.66.102
    Stream #0:0: Video: png (m[0][0][0] / 0x006D), rgb24(pc), 1280x720, q=2-31, 25 fps, 25 tbr, 12800 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=   99 fps=0.0 q=-1.0 Lsize=   70106kB time=00:00:03.92 bitrate=146504.3kbits/s speed=22.4x    
video:70105kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001645%

# Now merge them:
$ echo -e 'ffconcat version 1.0\n\nfile h1.mp4\nfile short1.mp4\n' > concat2
$ ffmpeg -f concat -i concat2 -c copy concat2.mp4
ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, concat, from 'concat2':
  Duration: N/A, start: 0.000000, bitrate: 145025 kb/s
    Stream #0:0(und): Video: png (mp4v / 0x7634706D), rgb24(pc), 1280x720, 145025 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc
    Metadata:
      handler_name    : VideoHandler
Output #0, mp4, to 'concat2.mp4':
  Metadata:
    encoder         : Lavf57.66.102
    Stream #0:0(und): Video: png (m[0][0][0] / 0x006D), rgb24(pc), 1280x720, q=2-31, 145025 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc
    Metadata:
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fa5a2003000] Auto-inserting h264_mp4toannexb bitstream filter
[concat @ 0x7fa5a1800000] New audio stream 0:1 at pos:216156 and DTS:3.96s
frame=  132 fps=0.0 q=-1.0 Lsize=   71259kB time=00:00:11.54 bitrate=50545.2kbits/s speed=51.8x    
video:71257kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.003258%

Reversing the order of concatenation gives a parallel failure. VLC shows the video and stops, does not show the still after it:

$ echo -e 'ffconcat version 1.0\n\nfile short1.mp4\nfile h1.mp4\n' > concat3
$ ffmpeg -f concat -i concat3 -c copy concat3.mp4
ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8721018000] Auto-inserting h264_mp4toannexb bitstream filter
Input #0, concat, from 'concat3':
  Duration: N/A, start: 0.000000, bitrate: 8699 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 8572 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s
    Metadata:
      handler_name    : SoundHandler
Output #0, mp4, to 'concat3.mp4':
  Metadata:
    encoder         : Lavf57.66.102
    Stream #0:0(eng): Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p(tv, bt709), 1280x720, q=2-31, 8572 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 127 kb/s
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[concat @ 0x7f872100da00] DTS 14106 < 29029 out of order
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29029, current: 14106; changing to 29030. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29030, current: 14618; changing to 29031. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29031, current: 15130; changing to 29032. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29032, current: 15642; changing to 29033. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29033, current: 16154; changing to 29034. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29034, current: 16666; changing to 29035. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29035, current: 17178; changing to 29036. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29036, current: 17690; changing to 29037. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29037, current: 18202; changing to 29038. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29038, current: 18714; changing to 29039. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29039, current: 19226; changing to 29040. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29040, current: 19738; changing to 29041. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29041, current: 20250; changing to 29042. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29042, current: 20762; changing to 29043. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29043, current: 21274; changing to 29044. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29044, current: 21786; changing to 29045. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29045, current: 22298; changing to 29046. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29046, current: 22810; changing to 29047. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29047, current: 23322; changing to 29048. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29048, current: 23834; changing to 29049. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29049, current: 24346; changing to 29050. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29050, current: 24858; changing to 29051. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29051, current: 25370; changing to 29052. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29052, current: 25882; changing to 29053. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29053, current: 26394; changing to 29054. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29054, current: 26906; changing to 29055. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29055, current: 27418; changing to 29056. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29056, current: 27930; changing to 29057. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29057, current: 28442; changing to 29058. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f8721852e00] Non-monotonous DTS in output stream 0:0; previous: 29058, current: 28954; changing to 29059. This may result in incorrect timestamps in the output file.
frame=  132 fps=0.0 q=-1.0 Lsize=   71276kB time=00:00:02.14 bitrate=272495.7kbits/s speed=8.04x    
video:71257kB audio:16kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.004975%

Note that this also fails the same way without -c copy.

Someone suggested to me that perhaps the problem was frame rates and other incompatibilities between the held frame (h1.mp4) and the video (short1.mp4):

# ffprobe of h1:
  Duration: 00:00:03.96, start: 0.000000, bitrate: 145027 kb/s
    Stream #0:0(und): Video: png (mp4v / 0x7634706D), rgb24(pc), 1280x720, 145025 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)

# ffprobe of short1
  Duration: 00:00:01.10, start: 0.000000, bitrate: 8698 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 8572 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)

But holding the frame differently doesn't seem to help:

$ ffmpeg -loop 1 -i f1.png -t 3.933 -pix_fmt +yuv420p -r 29.97  -c:v libx264 h2.mp4
ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, png_pipe, from 'f1.png':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: png, rgb24(pc), 1280x720, 25 fps, 25 tbr, 25 tbn, 25 tbc
File 'h2.mp4' already exists. Overwrite ? [y/N] y
The filters 'Parsed_null_0' and 'format' do not have a common format and automatic conversion is disabled.
Error opening filters!
$ ls -l h2.mp4
-rw-r--r--  1 jhawk  staff  0 Feb 19 00:41 h2.mp4
$ ffmpeg -loop 1 -i f1.png -t 3.933 -pix_fmt +yuv420p -r 29.97  -c copy  h2.mp4
ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, png_pipe, from 'f1.png':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: png, rgb24(pc), 1280x720, 25 fps, 25 tbr, 25 tbn, 25 tbc
File 'h2.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'h2.mp4':
  Metadata:
    encoder         : Lavf57.66.102
    Stream #0:0: Video: png (m[0][0][0] / 0x006D), rgb24(pc), 1280x720, q=2-31, 25 fps, 25 tbr, 11988 tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=   99 fps=0.0 q=-1.0 Lsize=   70107kB time=00:00:03.92 bitrate=146505.5kbits/s speed=26.8x    
video:70105kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.002693%
pb3:test jhawk$ ffprobe h2.mp4
ffprobe version git-2017-02-19-3206ea4 Copyright (c) 2007-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'h2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf57.66.102
  Duration: 00:00:03.96, start: 0.000000, bitrate: 144992 kb/s
    Stream #0:0(und): Video: png (mp4v / 0x7634706D), rgb24(pc), 1280x720, 145023 kb/s, 25 fps, 25 tbr, 11988 tbn, 11988 tbc (default)
    Metadata:
      handler_name    : VideoHandler
$

Note this is still 25fps. I think I had different results with ffmpeg 3.1.5 yesterday (this is now the git HEAD), where the frame rate did change, but the concatenation was still broken. Not 100% sure, but this is probably enough to go on for now.

#6162 invalid concat protocol can't concat the same mp4 file? JohnHawkinson
Description

Summary of the bug: concat protocol can't concat the same mp4 file?

Attempting to combine a 5-second MP4 file with a copy of itself fails, and produces a 5-second MP4 output instead of a 10-second one.

How to reproduce:

# Produce a manageable file:
$ ffmpeg -t 5 MVI_6105.mp4 -c copy short5.mp4
$ ffmpeg -i concat:'short5.mp4|short5.mp4' 2x5.mp4 # fails
$ ffmpeg -i concat:'short5.mp4|short5.mp4' -c copy 2x5c.mp4 # also fails
$ cp short5.mp4 short5dupe.mp4
$ ffmpeg -i concat:'short5.mp4|short5dupe.mp4' -c copy 2x5c2.mp4 # also also fails

# Here we are with copious output, and some ffprobe -ing as well:

$ ffprobe MVI_6105.mp4
ffprobe version git-2017-02-19-3206ea4 Copyright (c) 2007-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MVI_6105.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1CAEP
    copyright       : 
    copyright-eng   : 
    creation_time   : 2017-02-14T22:11:24.000000Z
  Duration: 00:24:26.57, start: 0.000000, bitrate: 7509 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 7372 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      creation_time   : 2017-02-14T22:11:24.000000Z
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      creation_time   : 2017-02-14T22:11:24.000000Z

$ ffmpeg -t 5 -i ../MVI_6105.mp4 -c copy short5.mp4
ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../MVI_6105.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1CAEP
    copyright       : 
    copyright-eng   : 
    creation_time   : 2017-02-14T22:11:24.000000Z
  Duration: 00:24:26.57, start: 0.000000, bitrate: 7509 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 7372 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      creation_time   : 2017-02-14T22:11:24.000000Z
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      creation_time   : 2017-02-14T22:11:24.000000Z
Output #0, mp4, to 'short5.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1CAEP
    copyright       : 
    copyright-eng   : 
    encoder         : Lavf57.66.102
    Stream #0:0(eng): Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p(tv, bt709), 1280x720, q=2-31, 7372 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
    Metadata:
      creation_time   : 2017-02-14T22:11:24.000000Z
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      creation_time   : 2017-02-14T22:11:24.000000Z
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  153 fps=0.0 q=-1.0 Lsize=    4945kB time=00:00:04.99 bitrate=8114.3kbits/s speed= 321x    
video:4860kB audio:78kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.128599%
$ ffprobe short5.mp4 
ffprobe version git-2017-02-19-3206ea4 Copyright (c) 2007-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'short5.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.66.102
  Duration: 00:00:05.11, start: 0.000000, bitrate: 7933 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 7799 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler

$ ffmpeg -i concat:'short5.mp4|short5.mp4' 2x5.mp4
ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb94900da00] Found duplicated MOOV Atom. Skipped it
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'concat:short5.mp4|short5.mp4':
  Metadata:
    encoder         : Lavf57.66.102
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
  Duration: 00:00:05.11, start: 0.000000, bitrate: 15866 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 7799 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[libx264 @ 0x7fb949011600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7fb949011600] profile High, level 3.1
[libx264 @ 0x7fb949011600] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '2x5.mp4':
  Metadata:
    compatible_brands: isomiso2avc1mp41
    major_brand     : isom
    minor_version   : 512
    encoder         : Lavf57.66.102
    Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc57.80.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      encoder         : Lavc57.80.101 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
frame=  151 fps= 37 q=-1.0 Lsize=     814kB time=00:00:05.01 bitrate=1329.5kbits/s speed=1.23x    
video:726kB audio:81kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.825945%
[libx264 @ 0x7fb949011600] frame I:1     Avg QP:22.06  size: 30505
[libx264 @ 0x7fb949011600] frame P:38    Avg QP:22.24  size: 11265
[libx264 @ 0x7fb949011600] frame B:112   Avg QP:24.77  size:  2536
[libx264 @ 0x7fb949011600] consecutive B-frames:  0.7%  0.0%  4.0% 95.4%
[libx264 @ 0x7fb949011600] mb I  I16..4: 26.2% 57.1% 16.7%
[libx264 @ 0x7fb949011600] mb P  I16..4:  3.4%  5.1%  0.6%  P16..4: 31.6%  9.4%  6.0%  0.0%  0.0%    skip:43.9%
[libx264 @ 0x7fb949011600] mb B  I16..4:  0.5%  1.1%  0.0%  B16..8: 29.4%  2.1%  0.3%  direct: 0.7%  skip:65.9%  L0:42.1% L1:53.0% BI: 4.9%
[libx264 @ 0x7fb949011600] 8x8 transform intra:60.1% inter:78.8%
[libx264 @ 0x7fb949011600] coded y,uvDC,uvAC intra: 24.4% 23.6% 4.5% inter: 5.5% 5.4% 0.0%
[libx264 @ 0x7fb949011600] i16 v,h,dc,p: 27% 35% 10% 28%
[libx264 @ 0x7fb949011600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 23% 38%  3%  4%  3%  4%  3%  3%
[libx264 @ 0x7fb949011600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 19% 12%  5%  6%  6%  6%  7%  4%
[libx264 @ 0x7fb949011600] i8c dc,h,v,p: 73% 13% 13%  2%
[libx264 @ 0x7fb949011600] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fb949011600] ref P L0: 61.6%  9.9% 20.4%  8.2%
[libx264 @ 0x7fb949011600] ref B L0: 83.1% 13.2%  3.7%
[libx264 @ 0x7fb949011600] ref B L1: 93.4%  6.6%
[libx264 @ 0x7fb949011600] kb/s:1179.15
[aac @ 0x7fb949014e00] Qavg: 815.755

pb3:test jhawk$ ffmpeg -i concat:'short5.mp4|short5.mp4' -c copy 2x5c.mp4
ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f88eb000000] Found duplicated MOOV Atom. Skipped it
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'concat:short5.mp4|short5.mp4':
  Metadata:
    encoder         : Lavf57.66.102
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
  Duration: 00:00:05.11, start: 0.000000, bitrate: 15866 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 7799 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Output #0, mp4, to '2x5c.mp4':
  Metadata:
    compatible_brands: isomiso2avc1mp41
    major_brand     : isom
    minor_version   : 512
    encoder         : Lavf57.66.102
    Stream #0:0(eng): Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p(tv, bt709), 1280x720, q=2-31, 7799 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  153 fps=0.0 q=-1.0 Lsize=    4945kB time=00:00:04.99 bitrate=8114.3kbits/s speed= 671x    
video:4860kB audio:78kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.128757%

$ ffprobe 2x5.mp4
ffprobe version git-2017-02-19-3206ea4 Copyright (c) 2007-2017 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.101 / 57. 80.101
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2x5.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.66.102
  Duration: 00:00:05.04, start: 0.000000, bitrate: 1322 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1180 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 131 kb/s (default)
    Metadata:
      handler_name    : SoundHandler


Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

#6161 invalid Wrong WAV duration only in json format lkentaro
Description

ffprobe returns wrong wav duration, only in json format

ffprobe.exe -v quiet -print_format json -show_format -i 2.wav {

"format": {

"filename": "2.wav", "nb_streams": 1, "nb_programs": 0, "format_name": "wav", "format_long_name": "WAV / WAVE (Waveform Audio)", "duration": "333.658549", "size": "58857412", "bit_rate": "1411201", "probe_score": 99

}

}

--- without json format

ffprobe.exe -i 2.wav Input #0, wav, from '2.wav':

Duration: 00:05:33.66, bitrate: 1411 kb/s

Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels,

s16, 1411 kb/s

--- wav file https://drive.google.com/open?id=0B9_F3Jst6nCIaEFmNkhkbEMwZWM

I don't know why, but another wav file works fine, show the correct duration.

1 2 3 4 5 6 7 8 9 10 11

Query Language

query: TracLinks and the [[TicketQuery]] macro both use a mini “query language” for specifying query filters. Basically, the filters are separated by ampersands (&). Each filter then consists of the ticket field name, an operator, and one or more values. More than one value are separated by a pipe (|), meaning that the filter matches any of the values. To include a literal & or | in a value, escape the character with a backslash (\).

The available operators are:

= the field content exactly matches one of the values
~= the field content contains one or more of the values
^= the field content starts with one of the values
$= the field content ends with one of the values

All of these operators can also be negated:

!= the field content matches none of the values
!~= the field content does not contain any of the values
!^= the field content does not start with any of the values
!$= the field content does not end with any of the values

The date fields created and modified can be constrained by using the = operator and specifying a value containing two dates separated by two dots (..). Either end of the date range can be left empty, meaning that the corresponding end of the range is open. The date parser understands a few natural date specifications like "3 weeks ago", "last month" and "now", as well as Bugzilla-style date specifications like "1d", "2w", "3m" or "4y" for 1 day, 2 weeks, 3 months and 4 years, respectively. Spaces in date specifications can be left out to avoid having to quote the query string.

created=2007-01-01..2008-01-01 query tickets created in 2007
created=lastmonth..thismonth query tickets created during the previous month
modified=1weekago.. query tickets that have been modified in the last week
modified=..30daysago query tickets that have been inactive for the last 30 days

See also: TracTickets, TracReports, TracGuide

Last modified 20 months ago Last modified on Jul 6, 2015, 10:44:56 PM