summaryrefslogtreecommitdiff
path: root/ffplay.c
Commit message (Collapse)AuthorAge
* ffplay: remove misleading comment from audio_decode_frame()Stefano Sabatini2013-02-03
|
* ffplay: rename audio_decode_frame() variable "pts" to "audio_clock0"Stefano Sabatini2013-02-03
| | | | The new name better expresses what the variable is.
* ffplay: remove pts_ptr argument from audio_decode_frame()Stefano Sabatini2013-02-03
| | | | The argument is no longer used outside the function. Simplify.
* ffplay: drop redundant NULL sws_freeContext() check in stream_close()Stefano Sabatini2013-02-03
| | | | sws_freeContext() already checks for NULL, simplify.
* Merge remote-tracking branch 'cus/stable'Michael Niedermayer2013-02-02
|\ | | | | | | | | | | | | | | | | | | | | * cus/stable: ffplay: step to next frame if paused when seeking ffplay: move up pause functions ffplay: remember last window dimensions ffplay: fix order of setting show_mode ffplay: dynamically allocate audio buffer Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ffplay: step to next frame if paused when seekingMarton Balint2013-02-02
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
| * ffplay: move up pause functionsMarton Balint2013-02-02
| | | | | | | | | | | | No change in functionality. Signed-off-by: Marton Balint <cus@passwd.hu>
| * ffplay: remember last window dimensionsMarton Balint2013-02-02
| | | | | | | | | | | | | | After this change the dimensions of single image videos will be remembered when coming back from full screen. The issue was mentioned in ticket #2174. Signed-off-by: Marton Balint <cus@passwd.hu>
| * ffplay: fix order of setting show_modeMarton Balint2013-02-02
| | | | | | | | | | | | | | | | Without the fix the refresh event may have got called with unset show mode. Fixes ticket #2174. Signed-off-by: Marton Balint <cus@passwd.hu>
| * ffplay: dynamically allocate audio bufferMarton Balint2013-02-02
| | | | | | | | | | | | | | | | | | We simply remove the fixed length VideoState->audio_buf2 and use the previously unused VideoState->audio_buf1. Fixes ticket #2191. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: extend doxy for audio_decode_frame()Stefano Sabatini2013-02-02
|/
* ffplay: flush video filters on seekMarton Balint2013-01-19
| | | | | | | | Actually we just re-create the filters, since there is no way to flush them. Fixes hangup with yadif filter on seeking forward caused by a filtered frame with a pts before the seek. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: use videoq.serial to detect obsolete framesMarton Balint2013-01-19
| | | | | | | | | | | Previously VideoPicture->skip was used for that, using videoq.serial enables us to detect obsolete frames right after pushing flush_pkt to the packet queue, so we don't have to wait for the decoder thread to pop the flush packet anymore. This is good because until now a full video picture queue may have blocked the decoder thread. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: fix sws_flagsMichael Niedermayer2013-01-13
| | | | | | | Fixes Ticket45 Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ffplay: extend documentation for the -vf optionStefano Sabatini2013-01-13
| | | | In particular, make it consistent with the ffmpeg docs.
* Replace references to "que" with the appropriate word.Clément Bœsch2013-01-03
| | | | | | "que" sounds like a slang word to me. This commit renames a few variables, fix the comments and the logging messages (sometimes along with small other typo fixes).
* ffplay: fix type of time_diff in waveform displayMarton Balint2012-12-28
| | | | | | | Fixes time diff overflow visible as showing the same few waveforms in a loop at the end of file. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: always display audio visualization if mode is setMarton Balint2012-12-28
| | | | | | Fixes ticket #1903. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: hide cursor on no mouse movementMarton Balint2012-12-28
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: reset external clock to unknown on startMarton Balint2012-12-28
| | | | | | | Fixes a delay and initial frame drops on starting realtime streams with external clock. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: only drop frames if not in frame step modeMarton Balint2012-12-28
| | | | | | Fixes ticket #2053. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: move frame step pause from the video thread to video_refreshMarton Balint2012-12-28
| | | | | | | This way we pause the video right after we displayed a new frame. Partially fixes ticket #2053. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: fix greenish line on the right edge with some xv sizesMarton Balint2012-12-25
| | | | | | | | | | If the XV image linesize was different from the width, SDL would create an overlay wider than the actually requested one. This causes a greenish line on the right, because the rightmost texel is blended with unset data. This patch introduces a function which duplicates the rightmost texel to the unset space, that way the blending will be done with duplicated border texels. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: fix another use of context instead of frame parametersMichael Niedermayer2012-12-22
| | | | | | | Fixes Ticket2050 Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ffplay: fix handling of resolution changes with h264-mtMichael Niedermayer2012-12-21
| | | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ffplay: provide some feedback in case the codec cannot be setStefano Sabatini2012-12-16
|
* ffplay: set codec_id in codec contextStefano Sabatini2012-12-16
| | | | | | | | Set codec id in case another codec is forced on the context (e.g. when the user specify the codec with -codec). For example fix: ffplay -vcodec pgmyuv -i "tests/vsynth1/%02d.pgm"
* ffplay: improve robustness of opt_codec(), and add options acodec,vcodec,scodecStefano Sabatini2012-12-16
| | | | | | | Fail with a meaningfull error message in case of bogus input. Also the new options are more consistent with the rest of the tool options, since it does not support generic stream specifiers.
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-11-29
|\ | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avplay: Do not use removed av_get_int() avconv: fix variable shadowing in configure_input_audio_filter() Conflicts: ffmpeg_filter.c ffplay.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | ffplay: increase maximum frame duration to 1 hour for streams without TS ↵Marton Balint2012-11-28
| | | | | | | | | | | | | | | | discontinuity Partially fixes ticket #1707. A-V sync still needs some work after seeking... Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: fix updating external clock after seekingMarton Balint2012-11-28
| | | | | | | | | | | | | | Now it should work for the timestamp based and the byte based case as well. Also only update the external clock if the seeking was successful. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: disallow seeking before the start of the fileMarton Balint2012-11-28
| | | | | | | | | | | | | | | | In timestamp based seeking we update the external clock to the seek target, therefore we should use sane timestamps even if libavformat could handle seeking before the start of the file. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: adjust external clock speed based on buffer fullness for realtime ↵Marton Balint2012-11-04
| | | | | | | | | | | | | | | | | | sources This provides a means to synchronize the player clock to the clock of the encoder. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: remove redundant !codec checkMarton Balint2012-11-01
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: only initialize codec opts before using itMarton Balint2012-11-01
| | | | | | | | | | | | Fixes Coverity CID 733793. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: always free buffersink_params in configure_video_filtersMarton Balint2012-11-01
| | | | | | | | | | | | Fixes Coverity CID 733792. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: remove uneeded format filter, buffersink format is setMarton Balint2012-11-01
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: check for buffersink_params allocation successMarton Balint2012-11-01
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: always free inputs and outputs in configure_filtergraphMarton Balint2012-11-01
| | | | | | | | | | | | Fixes Coverity CID 733791. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: fill the unused part of the window with blackMarton Balint2012-11-01
| | | | | | | | | | | | Should fix ticket #1667. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: add update parameter to fill_rectangleMarton Balint2012-11-01
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: if there is no audio stream, use external clock by defaultMarton Balint2012-10-21
| | | | | | | | | | | | | | Otherwise playing the video could be much slower than realtime if the system can't decode or display the frames fast enough. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: use get_master_sync_type where necessaryMarton Balint2012-10-21
| | | | | | | | | | | | | | We should make decisions based on the real sync type. This also simplifies the code. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: add get_master_sync_type functionMarton Balint2012-10-21
| | | | | | | | | | | | | | | | | | The real av_sync_type may be different to VideoState->av_sync_type, because the required audio or video stream for audio or video clock may not be available. We will use a function to query the real av_sync_type which is used for determining the master clock. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: only check external clock if current frame serial matches the ↵Marton Balint2012-10-21
| | | | | | | | | | | | | | | | | | displayed frame serial This way we avoid updating the external clocks with timestamps beloging to frames before seek. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: add serial field to PacketQueue entry and populate itMarton Balint2012-10-21
| | | | | | | | | | | | | | | | The purpose of the serial field is to accompany the decoded data during the decoding process to know if the decoded data belongs to the data stream after the latest packet queue flush. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: fix external time sync modeMarton Balint2012-10-21
| | | | | | | | | | | | | | | | | | We now initalize the external clock to 0 and, we use the system clock to regulate the timings of audio and video in external clock sync mode. We recover from external clock sync loss, when the delay to external clock is bigger than AV_NOSYNC_THRESHOLD. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: initialize audio and video pts driftMarton Balint2012-10-21
| | | | | | | | | | | | | | This makes sensible audio and video clock values even before displaying the first frame. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: fix nosync threshold check in synchronize_audioMarton Balint2012-10-21
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: use framedrop by default when sync is not done to videoMarton Balint2012-10-21
| | | | | | | | | | | | When using external sync, framedrop is perfectly fine. Signed-off-by: Marton Balint <cus@passwd.hu>