| Branch: | Revision:

ffmpeg / ffplay.c @ f59d8ff8

History | View | Annotate | Download (98.1 KB)

# Date Author Comment
0ebf4754 02/18/2011 06:52 PM Anton Khirnov

lavf: add av_ prefix to dump_format()

Signed-off-by: Mans Rullgard <>
(cherry picked from commit 610219a598095f938705f200dfe3946455ef871a)

7ffe76e5 02/16/2011 10:00 PM Reinhard Tartler

Merge libavcore into libavutil

Done to keep ABI compatible. Otherwise this is just silly

9d375bf5 02/14/2011 10:58 PM Stefano Sabatini

Remove disabled legacy code in ffplay.

The code was setting aspect ratio from the DTG active format, and was
present and disabled since the creation of ffplay.

See thread:
Subject: [FFmpeg-devel] [PATCH] Cosmetics: adopt compact notation in
disabled code....

d6705a27 02/11/2011 05:59 PM Nicolas George

ffplay: stats: do not dereference NULL video

Also: cosmetic: split this overly long line

043d2ff2 02/11/2011 01:54 AM Alexander Strange

Deprecate avcodec_thread_init()

As a side effect of the last commit, avcodec_open() now calls it automatically,
so there is no longer any need for clients to call it.
Instead they should set AVCodecContext.thread_count.

avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the...

b38f008e 02/11/2011 01:53 AM Alexander Strange

Frame-based multithreading framework using pthreads

See doc/multithreading.txt for details on use in codecs.

Signed-off-by: Ronald S. Bultje <>

76ad67ca 02/07/2011 06:32 PM Nicolas George

Implement guessed_pts in avcodec_decode_video2

Signed-off-by: Nicolas George <>
Signed-off-by: Michael Niedermayer <>

fd0ae17a 02/06/2011 07:31 PM Alexander Strange

Adopt pkt_dts/pkt_pts in lavc clients

No behavior change; this makes DTS reliable with the next patch.

Signed-off-by: Ronald S. Bultje <>
(cherry picked from commit 6b474953975fd8ea64d1ed4d09c42b2d8e787c6f)

ab543afe 02/06/2011 07:31 PM Stefano Sabatini

Make avfilter_graph_free() free the graph.

Make avfilter_graph_free() free not only the internal structures, but
also the allocated graph, and set the graph pointer to NULL for
increased safety.

Simplify usage.

Signed-off-by: Mans Rullgard <>...

8904a0f1 02/04/2011 02:08 AM Stefano Sabatini

ffplay: factorize code from video_thread() into configure_video_filters()

Signed-off-by: Mans Rullgard <>
(cherry picked from commit 75ea596de1145878a7603d5a3f269a9aac9ae30e)

2fa1d7b3 01/31/2011 05:25 PM Stefano Sabatini

In ffplay:get_video_frame(), use frame->pkt_pts rather than reordered_opaque.

AVCodecContext.reordered_opaque is deprecated for this specific use.

Signed-off-by: Mans Rullgard <>
(cherry picked from commit 2855080447a226aba7e88e943fd8a8779d6daa98)

97b925ea 01/31/2011 05:25 PM Stefano Sabatini

ffplay: in video_thread(), use av_dlog() for timestamp logging.

Disable logging of rescaled timestamps if DEBUG is not enabled.
Avoid debug log spamming with -loglevel debug.

Signed-off-by: Mans Rullgard <>
(cherry picked from commit 13156f40e1f17ec1d0c57e6bf7a2850f673600c0)

22f73157 01/23/2011 06:32 PM Stefano Sabatini

Remove outdated and confusing comment.

Signed-off-by: Mans Rullgard <>
(cherry picked from commit db2ddd38859b26c0a4e4bf92619625cd7e0e7f42)

d72858f8 01/17/2011 09:31 PM Stefano Sabatini

Merge two if (got_picture) {} blocks in ffplay.c:get_video_frame().

8f83a3b0 01/17/2011 09:04 PM Stefano Sabatini

Remove outcommented fossil code.

199c18a7 01/16/2011 05:26 PM Stefano Sabatini

Fix weird indent in get_video_frame().

Originally committed as revision 26390 to svn://

24d13ebc 01/15/2011 05:21 PM Stefano Sabatini

Reindent after the last commit.

Originally committed as revision 26372 to svn://

112c4b87 01/15/2011 05:21 PM Stefano Sabatini

In ffplay, do not open display if -nodisp is set.

Fixes issue 1017.

Originally committed as revision 26371 to svn://

d881a0e8 01/15/2011 01:28 AM Stefano Sabatini

Cosmetics: fix weird indent.

Originally committed as revision 26350 to svn://

393cbb96 01/07/2011 11:07 PM Michael Niedermayer

Add AVFrame.pkt_pts that contains the correctly reordered AVPacket.pts

Originally committed as revision 26260 to svn://

be732b70 12/28/2010 09:52 AM Nicolas George

Fix ffplay -an/-vn options that were swapped by r26105.

Originally committed as revision 26115 to svn://

0ccabeea 12/27/2010 03:10 PM Michael Niedermayer

Support filters and decoders that dont support negative linesizes.
This patch is based on work by stefano.

Originally committed as revision 26108 to svn://

406f0f1b 12/27/2010 09:08 AM Nicolas George

Use av_find_best_stream in ffplay.

Originally committed as revision 26105 to svn://

037be76e 12/02/2010 08:12 PM Stefano Sabatini

Add avfilter_graph_create_filter().

Originally committed as revision 25862 to svn://

5d6e4c16 11/12/2010 11:04 AM Stefano Sabatini

Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
SampleFormat with AVSampleFormat.

Originally committed as revision 25730 to svn://

1e80a0ea 11/07/2010 10:56 PM Stefano Sabatini

Remove graphparser.h header, move AVFilterInOut and
avfilter_graph_parse() declaration to libavfilter/avfiltergraph.h.

Simplify, and less confusing for the user.

Originally committed as revision 25705 to svn://

7313132b 11/07/2010 06:40 PM Stefano Sabatini

Rename AVFilterInOut field filter to filter_ctx, more semantically correct.

Originally committed as revision 25700 to svn://

97dd1e4a 11/04/2010 08:34 PM Stefano Sabatini

Rename avfilter_graph_destroy() to avfilter_graph_free().

The new name is shorter and more consistent with the rest of the API.

This change breaks libavfilter API/ABI.

Originally committed as revision 25674 to svn://

e15aeea6 11/04/2010 08:34 PM Stefano Sabatini

Implement avfilter_graph_alloc().

Originally committed as revision 25673 to svn://

ba7d6e79 11/03/2010 08:19 PM Stefano Sabatini

Remove usage of deprecated libavcodec/audioconvert.h functions.

Originally committed as revision 25668 to svn://

ff0652e5 10/18/2010 01:57 PM Stefano Sabatini

Implement a common get_filtered_video_frame(), shared between ffplay.c
and ffmpeg.c.

Originally committed as revision 25520 to svn://

2a24df93 10/16/2010 10:20 AM Stefano Sabatini

Add avfilter_graph_config().

Originally committed as revision 25502 to svn://

f7ead94c 10/12/2010 06:40 PM Stefano Sabatini

Factorize definition of the output_filter defined in both ffplay.c and
Replace it with a more generic definition which can be shared.

Originally committed as revision 25453 to svn://

387b4ac9 10/12/2010 06:40 PM Stefano Sabatini

Fix timebase handling at the begin and at the end of the ffplay video

Set timebase in the ffplay input, and make get_filtered_video_frame()
rescale the output frames PTSes according to their timebase.

Originally committed as revision 25450 to svn://

72ae4aa1 10/12/2010 01:47 PM Stefano Sabatini

Do not pass an unused variable when initing filt_out. Less confusing.

Originally committed as revision 25448 to svn://

27d97fde 10/09/2010 05:50 PM Michael Chinen

Fix ffplay to keep calling av_read_frame even if EOF has been reached.

Patch by Michael Chinen, mchinen gmail

Originally committed as revision 25426 to svn://

a5c33faa 10/02/2010 08:44 AM Reimar Döffinger

Add init and uninit functions to cmdutils, reduces code duplication
between ffmpeg and ffplay and avoids a valgrind error by freeing

Originally committed as revision 25309 to svn://

0093ebc2 09/29/2010 11:06 PM Michael Niedermayer

User application side of Codec specific parameters.

Originally committed as revision 25266 to svn://

7a8bfa5d 09/28/2010 02:05 AM Alexander Strange

Extract timestamp correction code from ffplay.c to cmdutils.c

Originally committed as revision 25241 to svn://

6b6bca64 09/24/2010 03:39 PM Michael Niedermayer

Enable AV_LOG_SKIP_REPEATED to maintain previous behavior.

Originally committed as revision 25175 to svn://

f66eb58e 09/24/2010 12:51 AM Stefano Sabatini

Make ffplay -h show the settable AVOptions.

Originally committed as revision 25167 to svn://

4afbcf46 09/07/2010 09:23 PM Stefano Sabatini


Originally committed as revision 25068 to svn://

34017fd9 09/07/2010 09:23 PM Stefano Sabatini

Move av_picture_data_copy() to libavcore, and rename it

Originally committed as revision 25067 to svn://

91880e46 08/23/2010 09:12 PM Dave Yeo

Add _XOPEN_SOURCE definition for usleep().
patch by Dave Yeo, daveryeo telus net

Originally committed as revision 24893 to svn://

aa78a6d6 08/17/2010 08:13 AM Carl Eugen Hoyos

Mention lowres if SDL can't provide the needed resolution.

Originally committed as revision 24802 to svn://

cb036f90 08/17/2010 07:47 AM Mike Scheutzow

Fix SDL crash on specific hardware.

Patch by Mike Scheutzow, mjs973 optonline net

Originally committed as revision 24801 to svn://

f7b8c814 08/17/2010 07:46 AM Mike Scheutzow

Move do_exit() up for upcoming patch.

Patch by Mike Scheutzow, mjs973 optonline net

Originally committed as revision 24800 to svn://

c1db7bff 08/11/2010 03:25 PM S.N. Hemanth Meenakshisunda...

Resize data and linesize in AVFilterBufferRef to 8.

This is required to make AVFilterBufferRef able to contain also audio
data, required by audio filtering integration.

Patch by S.N. Hemanth Meenakshisundaram smeen??.

Originally committed as revision 24773 to svn://

84c03869 08/11/2010 11:44 AM Stefano Sabatini

Change avfilter_open() signature, from:
AVFilterContext *avfilter_open(AVFilter *filter, const char *inst_name);
int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name);

This way it is possible to propagate an error code telling the reason...

cc80caff 08/11/2010 11:06 AM S.N. Hemanth Meenakshisunda...

Separate video specific BufferRef properties into VideoProps.

Define a new struct AVFilterBufferRefVideoProps and add a type field
to AVFilterBufferRef.

Video specific properties in AVFilterBufferRefVideoProps are now
referred to by *video pointer in AVFilterBufferRef....

5d4890d7 08/07/2010 01:15 AM S.N. Hemanth Meenakshisunda...

Rename fields:

AVFilterLink.srcpic -> AVFilterLink.src_buf
AVFilterLink.cur_pic -> AVFilterLink.cur_buf
AVFilterLink.outpic -> AVFilterLink.out_buf

The new names are more generic and more consistent, since the struct
they contain, which was named AVFilterPicRef, has been renamed to...

7fce481a 08/07/2010 01:15 AM S.N. Hemanth Meenakshisunda...

Rename functions and fields:

avfilter_(un)ref_pic -> avfilter_(un)ref_buffer
avfilter_copy_picref_props -> avfilter_copy_buffer_ref_props
AVFilterBufferRef.pic -> AVFilterBufferRef.buffer

They have been renamed to allow sharing with audio.

Patch by S.N. Hemanth Meenakshisundaram $smeenaks$ucsd$edu$....

ecc8dada 08/07/2010 01:15 AM S.N. Hemanth Meenakshisunda...

Rename AVFilterPicRef to AVFilterBufferRef.

The struct is going to be used for storing audio buffer references as
well, and the new name is more generic.

Patch by S.N. Hemanth Meenakshisundaram smeenaks@ucsd@edu.

Originally committed as revision 24730 to svn://

d54e0948 08/07/2010 12:02 AM S.N. Hemanth Meenakshisunda...

Move format from AVFilterBuffer to AVFilterPicRef.

Patch by S.N. Hemanth Meenakshisundaram |smeenaks|ucsd|edu|.

Originally committed as revision 24728 to svn://

126b638e 07/26/2010 11:12 PM Stefano Sabatini

Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
in favor of the newly added corresponding functions
av_parse_video_size() and av_parse_video_rate() defined in

This change also adds a linking-time dependency of libavcodec and of...

e1d7c883 07/11/2010 07:35 AM Reimar Döffinger

Add avsubtitle_free function.

Originally committed as revision 24185 to svn://

00f72577 07/07/2010 06:14 PM Jai Menon

FFplay : Fix segfault when playing monoaural streams.

Originally committed as revision 24090 to svn://

066ce8c9 07/04/2010 12:43 PM Alexei Svitkine

Implement -onkeydown and -onmousedown options for ffplay.

Patch by Alexei Svitkine cout << name << "." << surname << "@" << "".

See thread:
Subject: [FFmpeg-devel] new command-line option for ffplay
Date: Wed, 23 Jun 2010 09:13:50 -0400

Originally committed as revision 24037 to svn://

cfb7e6e6 07/03/2010 09:20 PM Jai Menon

FFplay : Copy all AVFrame fields from the reference picture to the
requested buffer.

Originally committed as revision 24032 to svn://

2b4abbd6 07/01/2010 06:49 PM Stefano Sabatini

Move colorspace.h from libavcodec to libavutil.
Avoid a compile-time dependency of the pad filter on libavcodec.

Originally committed as revision 23940 to svn://

7dbbf6a1 06/29/2010 10:41 PM Måns Rullgård

ffplay: remove VLA

Originally committed as revision 23892 to svn://

867ab7fb 05/27/2010 12:31 AM Michael Niedermayer

Fix pts reordering code.
This fixes a regression introduced when libavfilter support was added to ffplay.

Originally committed as revision 23343 to svn://

12bd3c1f 05/24/2010 02:19 PM Jai Menon

FFplay : Implement custom reget_buffer for the input filter.

Originally committed as revision 23287 to svn://

e53ca636 05/23/2010 07:14 PM Jai Menon

Cosmetics : re-indent after last commit.

Originally committed as revision 23265 to svn://

3635c07b 05/23/2010 07:13 PM Jai Menon

FFplay : Avoid manipulating NULL data pointers so that future checks
remain valid. This fixes segfaults for those cases where data copy to
this invalid pointer is attempted.

Originally committed as revision 23264 to svn://

65929418 05/15/2010 05:34 PM François Revol

Avoid mixed declaration and code, fix C89 compatibility.

Patch by François Revol revol free fr.

Originally committed as revision 23143 to svn://

09ed11e5 05/12/2010 11:18 PM Baptiste Coudurier

rename -vfilters cli option to -vf in ffplay as well

Originally committed as revision 23104 to svn://

3f073fa2 05/08/2010 09:39 PM Stefano Sabatini

Fix auto-scaling.

Use the numeric value assigned to sws_flags for the sws_flags set in
the graph, rather than the string "bilinear", which is not even
parsable by the scale filter.

Originally committed as revision 23060 to svn://

9b157b0c 04/22/2010 08:55 AM Cyril Russo

Fix compilation error of ffmpeg and ffplay with --disable-avdevice.

Patch by Cyril Russo, stage D nexvision A laposte net

Originally committed as revision 22940 to svn://

79f8b328 04/09/2010 05:52 PM Jai Menon

ffplay : Add 's' to the list of supported commands.

Originally committed as revision 22823 to svn://

d834d63b 04/01/2010 08:56 PM Robert Krüger

Add -t option to ffplay.

Patch by Robert Krüger, krueger signal7 de

Originally committed as revision 22764 to svn://

cf097cbc 04/01/2010 06:41 AM Bobby Bingham

Cosmetics: indentation

Originally committed as revision 22756 to svn://

c41c5b02 04/01/2010 06:41 AM Bobby Bingham

Don't create unnecessary refereces to pictures

Originally committed as revision 22755 to svn://

dd0c789b 04/01/2010 06:41 AM Bobby Bingham

Hook decoder up to libavfilter's direct rendering for ffplay

Originally committed as revision 22754 to svn://

72415b2a 03/30/2010 11:30 PM Stefano Sabatini

Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.

Originally committed as revision 22735 to svn://

1922c0a7 03/23/2010 05:39 PM Robert Krüger

Add a loop option to ffplay.

Patch by Robert Krüger, krueger signal7 de

Originally committed as revision 22646 to svn://

4903b5ca 03/20/2010 09:39 PM Diego Biurrun

Move variable declaration, fixes the warning:
ffplay.c:1703: warning: unused variable `pos'

Originally committed as revision 22611 to svn://

076db5ed 03/17/2010 11:39 PM Robert Krüger

Add a -window_title option, which sets the FFplay window title.

Patch by Robert Krüger "krueger ET signal7 DOT de".

Originally committed as revision 22588 to svn://

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://

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

Print skip_frames variable.

Originally committed as revision 22482 to svn://

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://

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://

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://

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://

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://

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

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://

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://

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://

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

ffplay: use public fft interface

Originally committed as revision 22292 to svn://

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

Give RDFT types more meaningful names

Originally committed as revision 22290 to svn://

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

Reindent after the last commit.

Originally committed as revision 22248 to svn://

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

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

Originally committed as revision 22247 to svn://

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://

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

10l fix timestamps (lavfi update broke them)

Originally committed as revision 22218 to svn://

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

Fix 100l pkt->pos typo.

Originally committed as revision 22217 to svn://

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://

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://

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://

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

Also favor streams with more packets in ffplay.

Originally committed as revision 22008 to svn://