| Branch: | Revision:

ffmpeg / ffplay.c @ 9b4f1cdb

History | View | Annotate | Download (98 KB)

# Date Author Comment
80c6e238 04/07/2011 04:11 PM Anton Khirnov

avio: avio_ prefix for url_set_interrupt_cb.

648c7962 03/21/2011 07:08 PM Martin Storsjö

ffplay: Don't assume ic->pb is non-null

This fixes crashes on exit when plaing some RealRTSP streams
(among other), e.g.
These crashes have been present since 3e68b3ba7b015cf21.

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

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

3e68b3ba 03/15/2011 12:04 PM Anton Khirnov

avio: deprecate url_ferror

AVIOContext.error should be used directly instead.

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

66e5b1df 03/07/2011 10:20 PM Anton Khirnov

avio: deprecate url_feof

AVIOContext.eof_reached should be used directly instead.

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

76aa876e 03/07/2011 04:03 PM Anton Khirnov

avio: avio_ prefix for url_fsize

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

a2704c97 03/04/2011 04:26 PM Anton Khirnov

avio: add avio_tell macro as a replacement for url_ftell

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

610219a5 02/16/2011 11:39 PM Anton Khirnov

lavf: add av_ prefix to dump_format()

Signed-off-by: Mans Rullgard <>

737eb597 02/15/2011 03:18 PM Reinhard Tartler

Merge libavcore into libavutil

It is pretty hopeless that other considerable projects will adopt
libavutil alone in other projects. Projects that need small footprint
are better off with more specialized libraries such as gnulib or rather
just copy the necessary parts that they need. With this in mind, nobody...

b7ec5cc4 02/14/2011 12:11 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....

c0b102ca 02/09/2011 02:17 PM 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...

37b00b47 02/09/2011 02:17 PM Alexander Strange

Frame-based multithreading framework using pthreads

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

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

6b474953 02/05/2011 09:37 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 <>

4359288c 02/04/2011 02:55 AM 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 <>

75ea596d 02/02/2011 12:09 PM Stefano Sabatini

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

Signed-off-by: Mans Rullgard <>

28550804 01/30/2011 07:02 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 <>

13156f40 01/30/2011 05:52 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 <>

db2ddd38 01/22/2011 01:06 PM Stefano Sabatini

Remove outdated and confusing comment.

Signed-off-by: Mans Rullgard <>

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