wiki:

TracQuery


Version 1 (modified by trac, 6 years ago) (diff)

--

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.

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.

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 4658)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#6085 needs_more_info ffmpeg : Invaild data found when processing input koonx
#6084 invalid RTMP to MPEG-Dash conversion not possible since commit 6f69f7a8bf6a0d013985578df2ef42ee6b1c7994 lmm
#6083 needs_more_info ffmpeg -i "source" does not work rosenrot
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 4658)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#6085 needs_more_info ffmpeg : Invaild data found when processing input koonx
Description

Summary of the bug:

ffmpeg : Invaild data found when processing input

How to reproduce:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\LENVOV\Desktop\ffmpeg-hi>ffmpeg-hi10-heaac.exe -i "HD.avs" -vcodec libx264 -crf 17 -preset medium  "t
est_4.mp4"
ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8.3 (GCC)
  configuration: --enable-static --disable-shared --enable-gpl --enable-nonfree --enable-zlib --enable-bzlib -
-enable-libfreetype --enable-fontconfig --enable-libass --enable-libfaac --enable-libfdk_aac --enable-libmp3la
me --enable-libvorbis --enable-libtheora --enable-libxvid --enable-libx264 --enable-libx265 --enable-libbluray
 --enable-runtime-cpudetect --disable-debug --enable-w32threads --cpu=i686 --extra-libs=' -L/usr/local/lib -lx
265 -lstdc++' --extra-cflags=-static --extra-ldflags=-static
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
HD.avs: Invalid data found when processing input

C:\Users\LENVOV\Desktop\ffmpeg-hi>

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

Hi.

Actually I download ffmpeg-hi from this website : https://sourceforge.net/projects/ffmpeg-hi/

which supported pixel formats: yuv420p10le yuv422p10le yuv444p10le nv20le

and when I tried to import video by avs script Hd.avs script / "FFmpegSource2("DC_MV.mp4") "

I got an error "HD.avs: Invaild data found when processing input "

Why when I use 8bit ffmpeg don't get any issue, but when I used ffmpeg 10bit I got problem with avs script

Pic : https://postimg.org/image/lj3gwrwv5/

#6084 invalid RTMP to MPEG-Dash conversion not possible since commit 6f69f7a8bf6a0d013985578df2ef42ee6b1c7994 lmm
Description

Summary of the bug: Since commit 6f69f7a8bf6a0d013985578df2ef42ee6b1c7994 it is not longer possible to convert a live RTMP stream to live MPEG-Dash stream. By the new commit there are new warnings regarding audio and video stream discovery ("audio stream discovered after head already parsed"

How to reproduce:

% ffmpeg -y -f flv  -i rtmp://184.72.239.149/vod/BigBuckBunny_115k.mov -map 0:0 -c:v libvpx-vp9 -frame-parallel 1 -threads 8 -b:v 8192k -f webm_chunk -header /tmp/video/glass_7673159932128379.hdr -chunk_start_index 1 /tmp/video/glass_7673159932128379_%d.chk -map 0:1 -c:a libvorbis -b:a 128k -ar 44100 -f webm_chunk -audio_chunk_duration 2000 -header /tmp/video/glass_2497349482377957.hdr -chunk_start_index 1 /tmp/video/glass_2497349482377957_%d.chk
ffmpeg version N-83119-g0ba0187
built on Ubuntu 16.04 (64 bit)

ffmpeg (from master branch) output:

ffmpeg version N-83119-g0ba0187 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --enable-libvpx --enable-libvorbis --enable-gpl --enable-nonfree --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-librtmp --enable-libtheora --enable-libvpx --enable-libwebp --disable-opencl --enable-encoder=libvpx_vp9 --enable-encoder=libvpx_vp8
  libavutil      55. 43.100 / 55. 43.100
  libavcodec     57. 72.100 / 57. 72.100
  libavformat    57. 62.100 / 57. 62.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 69.100 /  6. 69.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Metadata:
trackinfo:
  language              eng
  timescale             24.00
  length                14315.00
sampledescription:
  sampletype            avc1
  language              eng
  timescale             12000.00
  length                7157760.00
sampledescription:
  sampletype            mp4a
  audiochannels         2.00
  audiosamplerate       12000.00
  videoframerate        24.00
  aacaot                2.00
  avclevel              30.00
  avcprofile            66.00
  audiocodecid          mp4a
  videocodecid          avc1
  width                 240.00
  height                160.00
  frameWidth            240.00
  frameHeight           160.00
  displayWidth          240.00
  displayHeight         160.00
  framerate             24.00
  moovposition          8671904.00
  duration              596.48
[flv @ 0x2ddf000] audio stream discovered after head already parsed
[flv @ 0x2ddf000] video stream discovered after head already parsed
Input #0, flv, from 'rtmp://184.72.239.149/vod/BigBuckBunny_115k.mov':
  Metadata:
    length          : 7157760
    timescale       : 12000
    sampletype      : mp4a
    audiochannels   : 2
    videoframerate  : 24
    aacaot          : 2
    avclevel        : 30
    avcprofile      : 66
    frameWidth      : 240
    frameHeight     : 160
    displayWidth    : 240
    displayHeight   : 160
    moovposition    : 8671904
  Duration: 00:09:56.48, start: 0.000000, bitrate: N/A
    Stream #0:0: Audio: aac (LC), 12000 Hz, stereo, fltp
    Stream #0:1: Video: h264 (Constrained Baseline), yuv420p(progressive), 240x160, 24 fps, 24 tbr, 1k tbn, 48 tbc
Automatic encoder selection failed for output stream #0:0. Default encoder for format webm_chunk (codec none) is probably disabled. Please choose an encoder manually.
Error selecting an encoder for stream 0:0

Expected output:

ffmpeg version 2.8.10-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Metadata:
trackinfo:
  language              eng
  timescale             24.00
  length                14315.00
sampledescription:
  sampletype            avc1
  language              eng
  timescale             12000.00
  length                7157760.00
sampledescription:
  sampletype            mp4a
  audiochannels         2.00
  audiosamplerate       12000.00
  videoframerate        24.00
  aacaot                2.00
  avclevel              30.00
  avcprofile            66.00
  audiocodecid          mp4a
  videocodecid          avc1
  width                 240.00
  height                160.00
  frameWidth            240.00
  frameHeight           160.00
  displayWidth          240.00
  displayHeight         160.00
  framerate             24.00
  moovposition          8671904.00
  duration              596.48
Input #0, flv, from 'rtmp://184.72.239.149/vod/BigBuckBunny_115k.mov':
  Metadata:
    length          : 7157760
    timescale       : 12000
    sampletype      : mp4a
    audiochannels   : 2
    videoframerate  : 24
    aacaot          : 2
    avclevel        : 30
    avcprofile      : 66
    frameWidth      : 240
    frameHeight     : 160
    displayWidth    : 240
    displayHeight   : 160
    moovposition    : 8671904
  Duration: 00:09:56.48, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 240x160, 24.42 fps, 24 tbr, 1k tbn, 48 tbc
    Stream #0:1: Audio: aac (LC), 12000 Hz, stereo, fltp
[libvpx-vp9 @ 0x1ccec80] v1.5.0
Output #0, webm_chunk, to '/tmp/video/glass_7673159932128379_%d.chk':
  Metadata:
    length          : 7157760
    timescale       : 12000
    sampletype      : mp4a
    audiochannels   : 2
    videoframerate  : 24
    aacaot          : 2
    avclevel        : 30
    avcprofile      : 66
    frameWidth      : 240
    frameHeight     : 160
    displayWidth    : 240
    displayHeight   : 160
    moovposition    : 8671904
    encoder         : Lavf56.40.101
    Stream #0:0: Video: vp9 (libvpx-vp9), yuv420p, 240x160, q=-1--1, 8192 kb/s, 24 fps, 1k tbn, 24 tbc
    Metadata:
      encoder         : Lavc56.60.100 libvpx-vp9
Output #1, webm_chunk, to '/tmp/video/glass_2497349482377957_%d.chk':
  Metadata:
    length          : 7157760
    timescale       : 12000
    sampletype      : mp4a
    audiochannels   : 2
    videoframerate  : 24
    aacaot          : 2
    avclevel        : 30
    avcprofile      : 66
    frameWidth      : 240
    frameHeight     : 160
    displayWidth    : 240
    displayHeight   : 160
    moovposition    : 8671904
    encoder         : Lavf56.40.101
    Stream #1:0: Audio: vorbis (libvorbis), 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc56.60.100 libvorbis
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> vp9 (libvpx-vp9))
  Stream #0:1 -> #1:0 (aac (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
^Cframe=   96 fps= 34 q=0.0 Lsize=N/A time=00:00:04.33 bitrate=N/A    
video:79kB audio:42kB subtitle:0kB other streams:0kB global headers:4kB muxing overhead: unknown
Exiting normally, received signal 2.

A complete debug log is attached.

#6083 needs_more_info ffmpeg -i "source" does not work rosenrot
Description

For tvheadend I wanted to use ffmpeg to transcode a stream. However when I want to run ffmpeg with parameters from within a bash script I get a problem when the stream contains "&". When I put "" around the input, ffmpeg does do something different and tvheadend can not play.

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