Statistics
| Branch: | Revision:

ffmpeg / ffplay.c @ c07c6f81

History | View | Annotate | Download (94.8 KB)

# Date Author Comment
bb409513 03/13/2010 11:27 AM Stefano Sabatini

Make ffplay pass the packet.pos information to the filterchain, get it
again from the filterchain and pass it back to output_picture2().

Originally committed as revision 22507 to svn://svn.ffmpeg.org/ffmpeg/trunk

382f3a5b 03/12/2010 03:12 PM Michael Niedermayer

Print skip_frames variable.

Originally committed as revision 22482 to svn://svn.ffmpeg.org/ffmpeg/trunk

2b3da32f 03/11/2010 11:25 AM Michael Niedermayer

Make rdft speed user configureable.
Change default speed back to a slower variant.

Originally committed as revision 22467 to svn://svn.ffmpeg.org/ffmpeg/trunk

d38c9e7a 03/11/2010 02:35 AM Michael Niedermayer

Implement framedrop.
Replace SDL timer by a seperate thread, more accurate and less annoying.
frame drop is enabled by default, bug reports welcome.
Fixes issue1191

Originally committed as revision 22452 to svn://svn.ffmpeg.org/ffmpeg/trunk

8a3ceaf4 03/11/2010 02:32 AM Måns Rullgård

ffplay: use correct format specifiers in printf()

Originally committed as revision 22447 to svn://svn.ffmpeg.org/ffmpeg/trunk

122dcdcb 03/10/2010 10:43 PM Michael Niedermayer

Fix some apparent +- errors in the audio vissualization.
The bugs become only vissible at higher time resolution than what is
used currently.

Originally committed as revision 22442 to svn://svn.ffmpeg.org/ffmpeg/trunk

d9427e84 03/10/2010 04:11 PM Michael Niedermayer

Only reschedule refresh if we successfully removed the scheduled one.
Fixes some spurious error messages.

Originally committed as revision 22435 to svn://svn.ffmpeg.org/ffmpeg/trunk

562f382c 03/10/2010 03:45 PM Michael Niedermayer

Increase VIDEO_PICTURE_QUEUE_SIZE to 2.
this allows more asynchronous decoding and display thus improving
video smoothness.
It also seems to improve absolute video decoding speed for some reason

Originally committed as revision 22434 to svn://svn.ffmpeg.org/ffmpeg/trunk

d3d7b12e 03/10/2010 03:39 PM Michael Niedermayer

Do not call SDL_SetVideoMode() with the same size as previously
as this blanks the window.

Originally committed as revision 22433 to svn://svn.ffmpeg.org/ffmpeg/trunk

6580d5e3 03/07/2010 10:18 PM Måns Rullgård

Remove hacks not required since HAVE_AV_CONFIG_H was unset for the apps

Originally committed as revision 22295 to svn://svn.ffmpeg.org/ffmpeg/trunk

166621ab 03/07/2010 09:56 PM Måns Rullgård

ffplay: use public fft interface

Originally committed as revision 22292 to svn://svn.ffmpeg.org/ffmpeg/trunk

41ea18fb 03/07/2010 09:47 PM Måns Rullgård

Give RDFT types more meaningful names

Originally committed as revision 22290 to svn://svn.ffmpeg.org/ffmpeg/trunk

ff358eca 03/06/2010 07:19 PM Stefano Sabatini

Reindent after the last commit.

Originally committed as revision 22248 to svn://svn.ffmpeg.org/ffmpeg/trunk

fd9da252 03/06/2010 07:19 PM Stefano Sabatini

Use av_get_pict_type_char() in debug code within output_picture2(),
simplify.

Originally committed as revision 22247 to svn://svn.ffmpeg.org/ffmpeg/trunk

1429224b 03/06/2010 02:34 PM Måns Rullgård

Move FFT parts from dsputil.h to fft.h

Originally committed as revision 22235 to svn://svn.ffmpeg.org/ffmpeg/trunk

3966a574 03/05/2010 03:54 AM Michael Niedermayer

10l fix timestamps (lavfi update broke them)

Originally committed as revision 22218 to svn://svn.ffmpeg.org/ffmpeg/trunk

fca62599 03/05/2010 03:34 AM Michael Niedermayer

Fix 100l pkt->pos typo.

Originally committed as revision 22217 to svn://svn.ffmpeg.org/ffmpeg/trunk

917d2bb3 03/05/2010 02:20 AM Michael Niedermayer

Libavfilter for ffplay support.
This still needs some minor work here and there but should be already functional.
Note that the code pathes that are under "not avfilter" ifdefs as well as the
ifdefs will be droped as soon as all major issues have been det with, aka could...

8ef94840 03/05/2010 12:22 AM David Conrad

Just ignore streams with unknown codec_type instead of exiting

Originally committed as revision 22213 to svn://svn.ffmpeg.org/ffmpeg/trunk

07a70b38 03/01/2010 11:10 PM Stefano Sabatini

Add a check for checking if more than one input file is provided to
ffplay, make it complain and abort in that case as just one input file
is currently supported.

Originally committed as revision 22139 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc77fce6 02/24/2010 02:45 PM Ramiro Polla

Clear freed pointer in ffplay.c.
Fixes a crash when audio stream is cycled twice.

Originally committed as revision 22026 to svn://svn.ffmpeg.org/ffmpeg/trunk

9f7490a0 02/23/2010 05:35 PM Michael Niedermayer

Also favor streams with more packets in ffplay.

Originally committed as revision 22008 to svn://svn.ffmpeg.org/ffmpeg/trunk

256ab3ed 02/23/2010 05:09 PM Michael Niedermayer

Dont modify wanted_stream.

Originally committed as revision 22007 to svn://svn.ffmpeg.org/ffmpeg/trunk

5b369983 02/23/2010 04:56 PM Michael Niedermayer

replace wanted_*_stream by wanted_stream[CODEC_TYPE]

Originally committed as revision 22006 to svn://svn.ffmpeg.org/ffmpeg/trunk

6625a3de 02/23/2010 04:46 PM Michael Niedermayer

Replace *_index by st_index[codec_type].

Originally committed as revision 22003 to svn://svn.ffmpeg.org/ffmpeg/trunk

f05ef45c 02/21/2010 11:35 AM Stefano Sabatini

Use the official FFmpeg spelling: "ffmpeg" -> "FFmpeg".

Originally committed as revision 21935 to svn://svn.ffmpeg.org/ffmpeg/trunk

077a8d61 02/18/2010 12:19 AM Michael Niedermayer

fix issue 1747

Originally committed as revision 21874 to svn://svn.ffmpeg.org/ffmpeg/trunk

fe74099a 02/16/2010 10:38 PM Stefano Sabatini

Rename the "enc" variable, which refers to the AVCodecContext of a
decoder, to "avctx".

See the thread:
Subject: [FFmpeg-devel] [PATCH] enc is not a good name for a decoder context
Date: Mon, 28 Dec 2009 22:56:25 +0100

Originally committed as revision 21855 to svn://svn.ffmpeg.org/ffmpeg/trunk

6c7165c7 02/06/2010 01:15 PM Jai Menon

cosmetics : re-indent after r21639.

Originally committed as revision 21658 to svn://svn.ffmpeg.org/ffmpeg/trunk

570da52b 02/06/2010 12:05 AM Stefano Sabatini

Remove unused variable ref_clock, fix the warning:
ffplay.c: In function ‘compute_frame_delay’:
ffplay.c:1064: warning: unused variable ‘ref_clock’

Originally committed as revision 21649 to svn://svn.ffmpeg.org/ffmpeg/trunk

bf8ae197 02/05/2010 03:26 PM Michael Niedermayer

make the RDFT vissualizatiom default, the scopes are ugly and eat CPU like
piranhas.

Originally committed as revision 21646 to svn://svn.ffmpeg.org/ffmpeg/trunk

4c7c7645 02/05/2010 03:16 PM Michael Niedermayer

Make sure the rdft has enough audio available.
10l (looks cleaner now)

Originally committed as revision 21645 to svn://svn.ffmpeg.org/ffmpeg/trunk

092421cf 02/05/2010 11:25 AM Michael Niedermayer

Scale rdft vissualization up by 2 so theres no unused space on the top
but rather the unimportant high frequencies are cut off if the window is
not a multiple of 2 high.

Originally committed as revision 21641 to svn://svn.ffmpeg.org/ffmpeg/trunk

674fe163 02/05/2010 04:42 AM Vitor Sessak

Do not segfault when doing "ffplay -h"

Originally committed as revision 21640 to svn://svn.ffmpeg.org/ffmpeg/trunk

12eeda34 02/05/2010 02:06 AM Michael Niedermayer

Pretty RDFT audio visualization.

Originally committed as revision 21639 to svn://svn.ffmpeg.org/ffmpeg/trunk

d52ec002 02/05/2010 12:37 AM Michael Niedermayer

Fast seeking.
Try clicking with the mouse in the window, hold the button and drag.

Originally committed as revision 21638 to svn://svn.ffmpeg.org/ffmpeg/trunk

2d1653b0 02/04/2010 01:54 AM Michael Niedermayer

autoexit
implements issue1019

Originally committed as revision 21634 to svn://svn.ffmpeg.org/ffmpeg/trunk

f5968788 02/03/2010 11:34 PM Michael Niedermayer

Clean after toggling wave.
Fixes issue1180.

Originally committed as revision 21632 to svn://svn.ffmpeg.org/ffmpeg/trunk

b25453bd 02/03/2010 09:33 PM Michael Niedermayer

Move is->frame_timer init from start to flush_pkt handling so it is also
done on seeking. This fixes the bug where after reaching the end and waiting
a few seconds seeking back to the begin messes up AV sync and playback speed.

Originally committed as revision 21629 to svn://svn.ffmpeg.org/ffmpeg/trunk

566cd2cb 02/03/2010 03:19 PM Michael Niedermayer

The convertion between bit and byte is 8 not 60.
Fixes wrong cursor key seek distances.

Originally committed as revision 21627 to svn://svn.ffmpeg.org/ffmpeg/trunk

f04c6e35 02/02/2010 11:22 PM Michael Niedermayer

Compare the correct clocks for syncing video to audio/ext.
Fixes initial delay on video from issue1134.

Originally committed as revision 21618 to svn://svn.ffmpeg.org/ffmpeg/trunk

48ff3f7c 02/02/2010 10:43 PM Michael Niedermayer

Move the initial refresh scheduling for audio display away from where it
can interfere with video.

Originally committed as revision 21616 to svn://svn.ffmpeg.org/ffmpeg/trunk

a3cc2160 02/02/2010 09:31 PM Michael Niedermayer

Commit disapeared hunk, must have editied this out by mistake between local debug statements.
This should fix seeking in TS.

Originally committed as revision 21614 to svn://svn.ffmpeg.org/ffmpeg/trunk

70a4764d 02/02/2010 06:02 PM Michael Niedermayer

Autodetect when byte based seeking is better (that is for all formats that allow
discontinuities)
Fixes issue1090

Originally committed as revision 21606 to svn://svn.ffmpeg.org/ffmpeg/trunk

1a620dd7 02/02/2010 04:51 PM Michael Niedermayer

Use currently displayed file position instead of just url_ftell() for seeking by bytes.
This fixes seeking back with the cursor keys and -bytes.

Originally committed as revision 21605 to svn://svn.ffmpeg.org/ffmpeg/trunk

3890dd3a 02/02/2010 04:01 PM Michael Niedermayer

Fix seek flags

Originally committed as revision 21603 to svn://svn.ffmpeg.org/ffmpeg/trunk

ecbed31c 02/01/2010 10:23 PM Stefano Sabatini

Use parentheses around && within ||, fix the gcc warning:
ffplay.c: In function ‘video_thread’:
ffplay.c:1391: warning: suggest parentheses around && within ||

Originally committed as revision 21600 to svn://svn.ffmpeg.org/ffmpeg/trunk

df7d6e48 02/01/2010 10:17 PM Stefano Sabatini

Reindent.

Originally committed as revision 21599 to svn://svn.ffmpeg.org/ffmpeg/trunk

99e0b12b 02/01/2010 01:03 PM Michael Niedermayer

Make sure the faulty timestamp detection is just done when we have a picture
from the decoder.

Originally committed as revision 21593 to svn://svn.ffmpeg.org/ffmpeg/trunk

f7119e42 02/01/2010 12:31 PM Michael Niedermayer

Reset frame_last_delay to 0.
This avoids a few ms delay for the first frame after a seek in theory.

Originally committed as revision 21592 to svn://svn.ffmpeg.org/ffmpeg/trunk

acf24b87 02/01/2010 12:30 PM Michael Niedermayer

Move frame_last_delay into flush code as it must be reset on seeks to,
otherwise the first frame after a seek would be delayed by that amount.

Originally committed as revision 21591 to svn://svn.ffmpeg.org/ffmpeg/trunk

967030eb 02/01/2010 12:27 PM Michael Niedermayer

Reset frame_last_pts on flush (and thus also at start)
fixes issue558 and probably others.

Originally committed as revision 21590 to svn://svn.ffmpeg.org/ffmpeg/trunk

515bd00e 02/01/2010 12:22 PM Michael Niedermayer

Insert a flush packet into the que on init, that way common code between
flush and init can be put into the flush handling.

Originally committed as revision 21589 to svn://svn.ffmpeg.org/ffmpeg/trunk

6c7d3ead 02/01/2010 12:19 PM Michael Niedermayer

"Flush" the picture que on seeks, this prevents the display thread from
having frames from before and after the seek which just isnt a good idea.

Originally committed as revision 21588 to svn://svn.ffmpeg.org/ffmpeg/trunk

b8bb398a 02/01/2010 11:30 AM Michael Niedermayer

Schedule refreshes from a thread that actually knows the PTS.
Fixes wernfried_1.avi

Originally committed as revision 21586 to svn://svn.ffmpeg.org/ffmpeg/trunk

68aefbe8 02/01/2010 10:55 AM Michael Niedermayer

Fix race condition with reading between video_current_pts and video_current_pts_time.

Originally committed as revision 21585 to svn://svn.ffmpeg.org/ffmpeg/trunk

f5668147 02/01/2010 10:32 AM Michael Niedermayer

Try to more completely update time variables on unpause.
Could not notice a differenc in behavior.

Originally committed as revision 21584 to svn://svn.ffmpeg.org/ffmpeg/trunk

41a4cd0c 02/01/2010 09:26 AM Michael Niedermayer

Simplify get_video_clock()

Originally committed as revision 21582 to svn://svn.ffmpeg.org/ffmpeg/trunk

59055363 02/01/2010 03:12 AM Michael Niedermayer

10l, forgot HAS_ARG, -drp segfaulted.

Originally committed as revision 21581 to svn://svn.ffmpeg.org/ffmpeg/trunk

41db429d 01/31/2010 06:54 PM Michael Niedermayer

decoder reorder pts auto detection.

Originally committed as revision 21579 to svn://svn.ffmpeg.org/ffmpeg/trunk

6371c81a 01/31/2010 06:07 PM Michael Niedermayer

Fix indention.

Originally committed as revision 21578 to svn://svn.ffmpeg.org/ffmpeg/trunk

2ef46053 01/30/2010 11:19 PM Michael Niedermayer

Fix seeking by bytes with the mouse and do so by default if the duration is
nonsense.

Originally committed as revision 21563 to svn://svn.ffmpeg.org/ffmpeg/trunk

6299a229 01/30/2010 10:47 PM Michael Niedermayer

Fix AVFormat AVOprions.

Originally committed as revision 21561 to svn://svn.ffmpeg.org/ffmpeg/trunk

79ee4683 01/30/2010 09:27 PM Michael Niedermayer

Redesign packet queue full check to be more robust.

Originally committed as revision 21555 to svn://svn.ffmpeg.org/ffmpeg/trunk

ce2421a5 01/30/2010 08:45 PM Michael Niedermayer

Bump up MAX_VIDEOQ_SIZE to fix stuttering of oddly interleaved avi files.
Fixes issue1211

Originally committed as revision 21554 to svn://svn.ffmpeg.org/ffmpeg/trunk

718c7b18 01/30/2010 07:10 PM Stefano Sabatini

Use av_get_pix_fmt() instead of the deprecated avcodec_get_pix_fmt()
function.

Originally committed as revision 21550 to svn://svn.ffmpeg.org/ffmpeg/trunk

c6727809 01/22/2010 03:25 AM Måns Rullgård

Move array specifiers outside DECLARE_ALIGNED() invocations

Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk

40ccc754 01/20/2010 10:55 PM Måns Rullgård

Indent

Originally committed as revision 21359 to svn://svn.ffmpeg.org/ffmpeg/trunk

68cf92ee 01/20/2010 10:55 PM Måns Rullgård

Always call avcodec_thread_init()

The various avcodec_thread_init() functions are updated to return
immediately after setting avctx->thread_count. This allows -threads 0
to pass through to codecs. It also simplifies the usage for apps
using libavcodec....

de4898a2 12/28/2009 09:49 PM Stefano Sabatini

Set thread_count in the decoder before to open it.

This is safer since avcodec_open() may initialize some structure using
the thread_count default value which will be changed later, causing
potential security / stability issues.

Also do not explicitely set the thread_count value in the decoder,...

7f11e745 12/21/2009 02:15 AM Ramiro Polla

Print usage instead of help when no files are specified.

Originally committed as revision 20905 to svn://svn.ffmpeg.org/ffmpeg/trunk

0c2a18cb 12/21/2009 02:12 AM Ramiro Polla

Split show_usage() out of show_help().

Originally committed as revision 20904 to svn://svn.ffmpeg.org/ffmpeg/trunk

27daa420 12/21/2009 02:09 AM Ramiro Polla

First print the program description and then the basic usage line.

Originally committed as revision 20902 to svn://svn.ffmpeg.org/ffmpeg/trunk

813338a0 12/13/2009 06:46 PM Michael Niedermayer

Until -DHAVE_AV_CONFIG_H is removed from ffplays compilation, *printf must be #undef.
Without this random changes to the header inclusion can trigger
linking failures, and these are not even picked up in some environments
(some fate machines didnt catch it)....

e4637d6a 12/13/2009 01:49 PM Michael Niedermayer

Show help if no cmd line options are provided at all.
This safes the users time to find out which of -h --help -? works.

Originally committed as revision 20822 to svn://svn.ffmpeg.org/ffmpeg/trunk

992f8eae 11/29/2009 11:12 PM Stefano Sabatini

Factorize common commandline options definition.

Originally committed as revision 20664 to svn://svn.ffmpeg.org/ffmpeg/trunk

8447f0bd 11/19/2009 04:35 PM Michael Niedermayer

Split show_formats().

Originally committed as revision 20553 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba11257e 11/11/2009 11:46 PM Diego Biurrun

Add #include for required header config.h.

Originally committed as revision 20518 to svn://svn.ffmpeg.org/ffmpeg/trunk

43d160fd 10/02/2009 07:06 PM Stefano Sabatini

Prefer "loglevel" over "logging level number or string" as argname of
the loglevel command line option.

Make the loglevel option help message more clear, since the option
argument is shown as a single token, and make the whole message better
aligned with the other help messages....

5a6d6664 09/26/2009 05:18 PM Stefano Sabatini

Add a -loglevel command line option to ffplay.

The -loglevel option makes possible to set the logging level used by
the libav* libraries.

Originally committed as revision 20027 to svn://svn.ffmpeg.org/ffmpeg/trunk

c0b88f19 08/12/2009 01:17 PM Peter Ross

Moves the display of metadata to dump_format()

Originally committed as revision 19632 to svn://svn.ffmpeg.org/ffmpeg/trunk

966116b9 08/07/2009 02:53 PM Diego Biurrun

Remove some hunks of unused and disabled code cruft.

Originally committed as revision 19606 to svn://svn.ffmpeg.org/ffmpeg/trunk

98ae6acf 08/04/2009 09:26 AM Benoit Fouet

Make 'stats' a bool option again.
To disable stats, use -nostats option.

Originally committed as revision 19581 to svn://svn.ffmpeg.org/ffmpeg/trunk

9ebdf3ec 07/30/2009 10:19 PM Baptiste Coudurier

Increase audio queue size in FFplay so files with big audio/video delay
like mov can play nicely.

Originally committed as revision 19554 to svn://svn.ffmpeg.org/ffmpeg/trunk

1e1a0b18 07/30/2009 09:54 PM Baptiste Coudurier

Display stats by default in FFplay and increase refresh time.
Change -stats cli option to take int, so stats can be disabled.

Originally committed as revision 19552 to svn://svn.ffmpeg.org/ffmpeg/trunk

1764e4bc 07/14/2009 01:50 PM Diego Biurrun

Remove unnecessary rtsp.h #include.
Nothing from the header was used and it caused trouble on Windows CE.

Originally committed as revision 19430 to svn://svn.ffmpeg.org/ffmpeg/trunk

a7e6312b 05/23/2009 11:32 PM Stefano Sabatini

Remove duplicated RGB_TO_[YUV]_CCIR macros, directly use those defined
in libavcodec/colorspace.h.

Originally committed as revision 18922 to svn://svn.ffmpeg.org/ffmpeg/trunk

c2b4c859 05/22/2009 11:08 PM Baptiste Coudurier

fix mouse seeking when start time is not set, fix #1083

Originally committed as revision 18902 to svn://svn.ffmpeg.org/ffmpeg/trunk

3ac56e28 05/16/2009 10:29 AM Martin Storsjö

Move img_convert_ctx to VideoState and free it in stream_close().

Patch by Martin Storsjö, martin martin st

Originally committed as revision 18854 to svn://svn.ffmpeg.org/ffmpeg/trunk

7c5ab145 05/16/2009 10:26 AM Martin Storsjö

Add missing frees to stream_close() and do_exit().

Patch by Martin Storsjö, martin martin st

Originally committed as revision 18853 to svn://svn.ffmpeg.org/ffmpeg/trunk

e45aeb38 04/28/2009 06:02 PM Michael Niedermayer

Reset eof state on seeking.
Fixes issue1005.

Originally committed as revision 18710 to svn://svn.ffmpeg.org/ffmpeg/trunk

26534fe8 04/19/2009 09:44 PM Michael Niedermayer

indent

Originally committed as revision 18630 to svn://svn.ffmpeg.org/ffmpeg/trunk

9dc41767 04/19/2009 09:44 PM Michael Niedermayer

Only insert null packets into the video que if there is a video stream.
Fixes memleak and should fix issue791.

Originally committed as revision 18629 to svn://svn.ffmpeg.org/ffmpeg/trunk

b4083171 04/19/2009 08:25 PM Michael Niedermayer

Avoid 100% CPU useage at EOF.

Originally committed as revision 18625 to svn://svn.ffmpeg.org/ffmpeg/trunk

75bb7b0a 04/19/2009 08:24 PM Michael Niedermayer

Make sure that video frames are flushed at EOF.
This should fix a regression.

Originally committed as revision 18624 to svn://svn.ffmpeg.org/ffmpeg/trunk

bea18375 04/10/2009 12:07 PM Thilo Borgmann

Use the new avcodec_decode_* API.

Patch by Thilo Borgmann thilo.borgmann * googlemail ! com.

Originally committed as revision 18414 to svn://svn.ffmpeg.org/ffmpeg/trunk

fbf1b885 03/23/2009 04:43 PM avcoder

Move declaration of 'pict' closer to where it is used and initialize it.
Patch by avcoder: gmail(ffmpeg)

Originally committed as revision 18171 to svn://svn.ffmpeg.org/ffmpeg/trunk

4ed29207 03/14/2009 04:24 PM Michael Niedermayer

Switch ffplay to new seeking API.

Originally committed as revision 17958 to svn://svn.ffmpeg.org/ffmpeg/trunk

636f1c4c 03/03/2009 11:32 PM Stefano Sabatini

Rename avctx_opts to avcodec_opts.

The new name is more meaningful and consistent with avformat_opts
and sws_opts.

Originally committed as revision 17789 to svn://svn.ffmpeg.org/ffmpeg/trunk

4b037567 03/01/2009 05:13 PM Stefano Sabatini

Document ffplay -ast, -vst, and -sst options.

Originally committed as revision 17694 to svn://svn.ffmpeg.org/ffmpeg/trunk