summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* avformat/framehash: also print channel layout as a stringJames Almer2016-11-05
| | | | | | | | This should be more useful for users since numerical values for channel layout can be confusing and unintuitive. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* fate: Remove show_formats for fate-mov-zombie testMichael Niedermayer2016-11-05
| | | | | | | This includes the absolute path Found-by: jamrial Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add zombie testMichael Niedermayer2016-11-05
| | | | | | This test tests some odd sample with odd aspect ratio Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add bsf tests for ticket 5927James Almer2016-11-04
| | | | | Tested-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/af_firequalizer: add fft2 optionMuhammad Faiz2016-11-04
| | | | | | | | | | 2-channels convolution using complex fft improves speed significantly not sure if it should be enabled by default so disable it by default Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* tests/fate/avformat: add segment.c testsRodger Combs2016-11-02
|
* fate: add streamcopy test for apngAndreas Cadhalpun2016-11-01
| | | | | Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* fate filter metadata : add test for aphasemeter - Test a mono file (in ↵Martin Vignali2016-11-01
| | | | | | phase) -> 1. as result - Test a out of phase 1000 Hz -> -1. as result Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mov.c: Use the correct timescale when seeking for audio.Sasi Inguva2016-10-31
| | | | | Signed-off-by: Sasi Inguva <isasi@google.com> Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* fate: add apng encoding/muxing testAndreas Cadhalpun2016-10-28
| | | | | | | Also test the fallback to png creation for a single frame. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* lavfi/vf_overlay: support NV12 and NV21Rodger Combs2016-10-26
| | | | Tested-by: Michael on x86-32/64 linux, mingw, mips/arm qemu linux
* avformat/matroskaenc: fix cue relative position values when CRC32 is enabledJames Almer2016-10-26
| | | | | | | | | | | | The dynamic buffer does not contain the CRC32 element so calls to avio_tell() don't take it into account. This resulted in CueRelativePosition values being six bytes short. This is a regression since 6724525a1576ca334d2ffdc085620bb44aea7394 Instead of adding yet another custom check for CRC32 to fix a size or an offset, remove the existing ones and reserve the six bytes in the dynamic buffer. Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/flvdec: init AVPacket::pos to FLVTAG offsetSuman-2016-10-26
| | | | | | Current code doesn't initialize AVPacket::pos. Made it point to FLVTAG so flv_read_packet can decode from pos Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: Add MXF D10/DNXHD/DV25 probe testsTobias Rapp2016-10-26
| | | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf: add AV_DISPOSITION_TIMED_THUMBNAILSRodger Combs2016-10-24
| | | | Reviewed-By: Michael Niedermayer <michael@niedermayer.cc>
* fate/hevc: add automatic bsf testRodger Combs2016-10-24
|
* fate/aac: add automatic bsf testRodger Combs2016-10-24
|
* fate/h264: make mp4toannexb test use auto-BSFRodger Combs2016-10-24
|
* ffprobe: report field order for video streamsRodger Combs2016-10-24
|
* avformat/matroskaenc: write DisplayWidth and DisplayHeight elements only if ↵James Almer2016-10-22
| | | | | | they differ from PixelWidth and PixelHeight Signed-off-by: James Almer <jamrial@gmail.com>
* tests/fate: add mxf metadata streams testMark Reid2016-10-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* FATE: Add test for muxing discontinuous MP4 fragments with large timestampsDerek Buitenhuis2016-10-19
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* fate: add swr-convertaudio testMuhammad Faiz2016-10-18
| | | | | | | test for flt to s16 should pass on correct rounding to nearest Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* avformat/matroskaenc: write a DisplayUnit element when aspect ratio is unknownJames Almer2016-10-15
| | | | | | | | | | | We don't currently support values 1 (centimeters), 2 (inches) or 3 (DAR), only the default value 0 (pixels) which doesn't need to be written. The fate refs are updated as unknown SAR is now signaled in the output files with the addition of the new element. Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: Improved selftest coverage for libavutil/fifo.cThomas Turner2016-10-14
| | | | | | Tested functions: av_fifo_generic_peek(), av_fifo_grow() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add test for firequalizer filterMuhammad Faiz2016-10-14
| | | | Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* avformat/matroskaenc: don't write a FlagInterlaced element if it would write ↵James Almer2016-10-11
| | | | | | | | | | | the default value The spec says: "Mandatory elements with a default value may be left out of the file. In the absence of a mandatory element, the element's default value is used." Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskaenc: fix targets for attachment tagsJames Almer2016-10-10
| | | | | | | | | Attachment tags were being written targeting non-existent streams in the output file. Also filter filename and mimetype entries, as they are standard elements in the Attachment master. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/movenc: Switch mov_write_uuidprof_tag() to avg_frame_rateMichael Niedermayer2016-10-10
| | | | | | | Using the stream timebase simply overflows Fix integer overflow in psp framerate computation Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit 'dc7501e524dc3270335749302c7aa449973625f3'Hendrik Leppkes2016-10-07
|\ | | | | | | | | | | | | * commit 'dc7501e524dc3270335749302c7aa449973625f3': checkasm: Issue emms after benchmarking functions Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * checkasm: Issue emms after benchmarking functionsMartin Storsjö2016-06-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The functions may not clean up properly after using MMX registers. For the normal testing calls, the checkasm_checked_call functions will do the cleanup (and check that functions that should clean up do it as well), but when benchmarking functions that don't clean up, we don't currently properly clean up at all. This causes issues if a benchmarked function is followed by testing of a function that is supposed to not clobber the MMX/FPU state but doesn't touch it at all. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'beb62dac629603eb074a44c44389c230b5caac7c'Hendrik Leppkes2016-10-07
|\| | | | | | | | | | | | | * commit 'beb62dac629603eb074a44c44389c230b5caac7c': Use AVFrame.pts instead of deprecated pkt_pts. Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
* | tests: add -nostdin flag when calling ffmpegRodger Combs2016-10-06
| | | | | | | | | | | | This fixes a long-standing issue where running FATE in parallel could result in the terminal being left misconfigured, particularly if a test failed or was canceled wtih ^C.
* | avformat/matroskaenc: write a CRC32 element on InfoJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Finishes implementing ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on TagsJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on AttachmentsJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on TracksJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on CuesJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on SeekHeadJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on each ClusterJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: don't reserve space for stream duration tags if the ↵James Almer2016-10-04
| | | | | | | | | | | | | | | | | | output is not seekable The durations are never written in that situation. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | fate: add bitexact decode flag to fate-svq3-watermarkJames Almer2016-10-03
| | | | | | | | | | | | Fixes failure with mmxext or 3dnow cpuflags enabled but ssse3 disabled Signed-off-by: James Almer <jamrial@gmail.com>
* | fate: Add PSP copy testMichael Niedermayer2016-10-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | ffmpeg: use new decode APIwm42016-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a bit messy, mainly due to timestamp handling. decode_video() relied on the fact that it could set dts on a flush/drain packet. This is not possible with the old API, and won't be. (I think doing this was very questionable with the old API. Flush packets should not contain any information; they just cause a FIFO to be emptied.) This is replaced with checking the best_effort_timestamp for AV_NOPTS_VALUE, and using the suggested DTS in the drain case. The modified tests (fate-cavs and others) still fails due to dropping the last frame. This happens because the timestamp of the last frame goes backwards (ffprobe -show_frames shows the same thing). I suspect that this "worked" due to the best effort timestamp logic picking the DTS over the decreasing PTS. Since this logic is in libavcodec (where it probably shouldn't be), this can't be easily fixed. The timestamps of the cavs samples are weird anyway, so I chose not to fix it. Another strange thing is the timestamp handling in the video path of process_input_packet (after the decode_video() call). It looks like the code to increase next_dts and next_pts should be run every time a frame is decoded - but it's needed even if output is skipped.
* | fate: Add regression test for Ticket 186Michael Niedermayer2016-10-01
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate: Add fate-svq3-watermarkMichael Niedermayer2016-10-01
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavf/mov: Read display aspect ratio from ares atom also for dnxhd.Carl Eugen Hoyos2016-09-29
| | | | | | | | | | Fixes aspect ratio of sample in ticket #2125. Fixes aspect ratio of sample in ticket #5325.
* | lavf/mov.c: Make audio timestamps strictly monotonically increasing inside ↵Sasi Inguva2016-09-29
| | | | | | | | | | | | | | | | | | an edit list. Fixes gapless decoding. Adjust skip_samples field correctly in case of DISCARDed audio frames. Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | ffmpeg: switch to the new BSF APIClément Bœsch2016-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is initially largely based on commit 4426540 from Anton Khirnov <anton@khirnov.net> and two following fixes (80fb19b and fe7b21c) which were previously skipped respectively in 98e3153, c9ee36e, and 7fe7cdc. mpeg4-bsf-unpack-bframes FATE reference is updated because the bsf filter now actually fixes the extradata (mpeg4_unpack_bframes_init() changing one byte is now honored on the output extradata). The FATE references for remove_extra change because the packet flags were wrong and the keyframes weren't marked, causing the bsf relying on these proprieties to not actually work as intended. The following was fixed by James Almer: The filter option arguments are now also parsed correctly. A hack to propagate extradata changed by bitstream filters after the first av_bsf_receive_packet() call is added to maintain the current behavior. This was previously done by av_bitstream_filter_filter() and is needed for the aac_adtstoasc bsf. The exit_on_error was not being checked anymore, and led to an exit error in the last frame of h264_mp4toannexb test. Restoring this behaviour prevents erroring out. The test is still changed as a result due to the badly filtered frame now not being written after the failure. Signed-off-by: Clément Bœsch <u@pkh.me> Signed-off-by: James Almer <jamrial@gmail.com>
* | ffprobe.c: Indicate decode-but-discard packets when doing -show_packets.Sasi Inguva2016-09-23
| | | | | | | | | | Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>