summaryrefslogtreecommitdiff
path: root/fftools
Commit message (Collapse)AuthorAge
* ffprobe: Fix memory leakDerek Buitenhuis2019-06-21
| | | | | | This packet was not necessarily unreferenced. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* ffmpeg_hw: Treat empty device string as no device settingMark Thompson2019-06-02
| | | | | | | The implementation will use some default in this case. The empty string is not a meaningful device for any existing hardware type, and indeed OpenCL treats it identically to no device already to work around the lack of this setting on the command line.
* ffmpeg_hw: Mark some strings as constMark Thompson2019-06-02
|
* fftools/ffprobe: Add S12M Timecode output as side data (such as SEI TC)Antonin Gouzer2019-05-27
| | | | | | Slightly modified by Marton Balint to produce valid json as well. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: added option always on top for video windowDaniel Kucera2019-05-20
| | | | | Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Daniel Kucera <github@danman.eu>
* libavformat: improve logs with cur_dtsAndreas Hakon2019-04-19
| | | | | | | | | | | This patch improves the logs when the message "cur_dts is invalid" appears. If helps to identify which stream generates the trouble, and the status of the stream. A lot of users suffers with the message, and the origin varies. The improved message can help to discover the cause. Signed-off-by: Andreas Hakon <andreas.hakon@protonmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/videotoolbox: add support for 10bit pixel formatfumoboy0072019-04-16
| | | | | this patch was originally posted on issue #7704 and was slightly adjusted to check for the availability of the pixel format.
* fftools/ffmpeg: Check if we do have also a filter_complex filter.Thierry Foucu2019-03-28
| | | | | | | | | | | | | | | | | Right now, the code check for no filter description, but if we use a filter_complex, the code will use the AVFrame.duration which could be wrong in case of using fps filter. How to reproduce the problem: ffmpeg -f lavfi -i testsrc=duration=1 -vf fps=fps=50 -vsync 1 -f null - output 50 frames ffmpeg -f lavfi -i testsrc=duration=1 -filter_complex fps=fps=50 -vsync 1 -f null - output 51 frames With this commit, the same command will always output 50 frames. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '7e5bde93a1e7641e1622814dafac0be3f413d79b'James Almer2019-03-10
| | | | | | | * commit '7e5bde93a1e7641e1622814dafac0be3f413d79b': build: Rename OBJDIRS variable to OUTDIRS Merged-by: James Almer <jamrial@gmail.com>
* ffmpeg_filter: initialize sub2video.end_pts together with last_ptsJan Ekström2019-02-21
| | | | | | | | | | | This way re-initializations properly update end_pts, enabling sub2video_heartbeat to call sub2video_update as expected to re-init the sub2video AVFrame's contents and to feed a frame into the filter chain. This then fixes memory usage ballooning due to framesync waiting for secondary input in case of no actual subtitle samples being present for a while in source after a re-init occurs.
* ffplay: add support for setting the number of filter threadsMarton Balint2019-02-07
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: add missing avfilter_graph_alloc result checkMarton Balint2019-02-07
| | | | | | Also do not allocate a graph at start, we will reallocate it anyway. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: use different decoder names for each media typeMarton Balint2019-02-07
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffmpeg_opt: Print a warning if more than one -vf/-af option was specified.Carl Eugen Hoyos2019-01-15
| | | | Fixes ticket #4184.
* ffmpeg: allow disabling streams by type for inputsGyan Doshi2019-01-03
| | | | | | -vn/-an/-sn/-dn now works for input. Streams are still registered in input_streams but they can't be automatically selected or mapped or filtered.
* ffmpeg: skip disabled streamsGyan Doshi2019-01-02
| | | | | | | | Fully discarded streams can't be selected for output or mapped or filtered. Previously, a few packets from such streams, probably buffered for stream probing, would get smuggled into output files. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffmpeg: improve the intra stream discontinuity messageJan Ekström2018-12-18
| | | | | | Now it actually tells which stream from which input and of which type had an absolute DTS discontinuity larger than dts_delta_threshold.
* ffplay: fix -x and -y options when only one of them is usedMarton Balint2018-12-02
| | | | | | | | | | Previously if only -y was used then nothing happened, if only -x then zero window height was set which is undefined in SDL and caused a black window. From now on if only one dimension is set we calculate the other based on size/aspect of the shown content. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: convert float math to int math in calculate_display_rectMarton Balint2018-12-02
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffmpeg: Avoid duplicating Closed Captions when increasing frame rate.Carl Eugen Hoyos2018-11-27
| | | | Fixes ticket #7506.
* fftools/ffmpeg: delete the unused code.Jun Zhao2018-11-27
| | | | | | | There are come from 2012 ago and have never been used from this time. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* fftools/ffprobe: Indent the code.Jun Zhao2018-11-27
| | | | | | commit 196765a7cc4 missed the reindet. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* fftools/ffmpeg: Repair reinit_filter featureMichael Niedermayer2018-11-16
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fftools/ffmpeg: Indent the codeJun Zhao2018-11-11
| | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* fftools/ffmpeg: Put the variable declaration at uppper for block.Jun Zhao2018-11-11
| | | | | | | move the variable declaration at start of upper for block and remove the redundant brace. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* fftools/ffmpeg: Remove the micor like "#if 1"Jun Zhao2018-11-11
| | | | | | They are come from 2003 and delete them. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* ffmpeg: log corrupted packets and framesMarton Balint2018-10-14
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffmpeg: check return value of avcodec_parameters_from_contextMarton Balint2018-10-09
| | | | | | Fixes Coverity CID 1427273. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: add options to specify window positionDave Rice2018-10-07
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffmpeg: break loop when dts_heuristic check donexiaofeng2018-09-30
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffmpeg: block output == input for filesGyan Doshi2018-09-17
| | | | Fixes #4655
* ffplay: add option to allow custom seek intervalGyan Doshi2018-09-05
| | | | At present, left and right keys are hardcoded to seek by 10 seconds.
* ffplay: do not drain existing filters when seekingMarton Balint2018-09-01
| | | | | | | After a seek we drop all frames from the filter anyway. Audio filters already had a similar approach. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffmpeg: add correct field for raw pts in -progress reportGyan Doshi2018-08-28
| | | | | | | | | PTS is in microseconds, so correct field name is out_time_us. Old field out_time_ms kept for now - will be removed after a suitable transition period. Fixes #7345
* ffmpeg: simplify refcounting packets for the muxing queueJames Almer2018-08-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fftools/qsv: add extra_hw_frames supportZhong Li2018-08-07
| | | | | | | | | | Currently extra_hw_frames can't be applied to qsv since it doesn't call function avcodec_get_hw_frames_parameters(). Give an option to fix ticket #7261 though it is not a perfect soultion (allocate the minimum pool size internally and automatically). Signed-off-by: Zhong Li <zhong.li@intel.com>
* cmdutils: print a more descriptive error message in show_help_bsf() when no ↵James Almer2018-07-28
| | | | | | | bsf is specified Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* ffplay: add support for various YUV conversion modesMarton Balint2018-07-13
| | | | | | | SDL from version 2.0.8 has support for full range YUV and specifying BT601/BT709 color space for YUV->RGB conversion. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffmpeg: fix -stream_loop with multiple inputsMarton Balint2018-07-02
| | | | | | | | | | The input thread needs to be properly cleaned up and re-initalized before we can start reading again in threaded mode. (Threaded input reading is used when there is mode than one input file). Fixes ticket #6121 and #7043. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffmpeg: factorize input thread creation and destructionMarton Balint2018-07-02
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffmpeg: make loglevel verbose for frame duration warningGyan Doshi2018-06-28
|
* fftools/ffmpeg: check sseof value and clash with ssGyan Doshi2018-06-26
| | | | Prioritize -ss
* ffmpeg: Treat subtitles like audio and video for non-monotonic dts.Hans Carlson2018-06-23
| | | | | | | Fixes ticket #4450. Fixes ticket #6248. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffplay: ignore keypress events before a window is createdMarton Balint2018-06-20
| | | | | | | | | | Current ffplay code assumes that the read thread is in its main loop before any key events are captured, but apparently on IOS even keypresses without a window are forwared. Fixes ticket #7252. Signed-off-by: Marton Balint <cus@passwd.hu>
* fftools/cmdutils: Replace the number by macro for bprint initJun Zhao2018-06-17
| | | | | | Replace the number by macro for bprint init. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* fftools/ffmpeg_filter: Replace the number by macro for bprint initJun Zhao2018-06-17
| | | | | | Replace the number by macro for bprint init. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* fftools/ffmpeg: Replace the number by macro for bprint initJun Zhao2018-06-17
| | | | | | Replace the number by macro for bprint init. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* ffmpeg: assert that audio packet duration in process_input_packet() is non ↵Michael Niedermayer2018-06-14
| | | | | | negative Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fftools/ffmpeg: Fallback to duration if sample rate is unavailableMichael Niedermayer2018-06-14
| | | | | | | | | Regression since: af1761f7 Fixes: Division by 0 Fixes: ffmpeg_crash_1 Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffmpeg: Fail if the user requested impossible subtitle encoding.Carl Eugen Hoyos2018-06-09
| | | | Fixes ticket #7239.