summaryrefslogtreecommitdiff
path: root/ffplay.c
Commit message (Collapse)AuthorAge
* ffplay: add configure_filtergraph() helperStefano Sabatini2012-06-26
| | | | | Will help factorization with the pending -af patch, and add some checks missing in the original code.
* lavfi: remove old video sink APIStefano Sabatini2012-06-26
| | | | | It was deprecated since a long time and removed after the 2->3 major bump.
* ffplay: give more meaningful names to the buffersink instancesStefano Sabatini2012-06-25
|
* lavfi/avcodec: deprecate avfilter_fill_frame_from_*_buffer_ref APIStefano Sabatini2012-06-25
| | | | | | | | | | | Deprecate functions: avfilter_fill_frame_from_buffer_ref avfilter_fill_frame_from_audio_buffer_ref avfilter_fill_frame_from_video_buffer_ref and schedule to drop them at the next API major bump. The function avfilter_copy_buf_props() should be used instead.
* ffplay: add cast to fix warning in configure_video_filters()Stefano Sabatini2012-06-23
| | | | | | Fix warning: ffplay.c:1578:40: warning: passing argument 5 of ‘avfilter_graph_create_filter’ discards ‘const’ qualifier from pointer target type [enabled by default] libavfilter/avfiltergraph.h:84:5: note: expected ‘void *’ but argument is of type ‘const enum PixelFormat *’
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-06-22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: libspeexenc: add supported sample rates and channel layouts. Replace usleep() calls with av_usleep() lavu: add av_usleep() function utvideo: mark interlaced frames as such utvideo: Fix interlaced prediction for RGB utvideo. cosmetics: do not use full path for local headers lavu/file: include unistd.h only when available configure: check for unistd.h log: include unistd.h only when needed lavf: include libavutil/time.h instead of redeclaring av_gettime() Conflicts: configure doc/APIchanges ffmpeg.c ffplay.c libavcodec/utvideo.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | ffplay: fix -vismv 1Michael Niedermayer2012-06-17
| | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: rename buffer source instance from "src" to "ffplay_buffer"Stefano Sabatini2012-06-17
| | | | | | | | | | | | The new name is more descriptive. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: use key=val syntax for the buffersrc argsStefano Sabatini2012-06-17
| | | | | | | | | | | | | | Fix warning: [src @ ...] Flat options syntax is deprecated, use key=value pairs. Signed-off-by: Marton Balint <cus@passwd.hu>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-06-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Avoid C99 variable declarations within for statements. rtmp: Read and handle incoming packets while writing data doc: document THREAD_TYPE fate variable rtpdec: Don't require frames to start with a Mode A packet avconv: don't try to free threads that were not initialized. Conflicts: doc/fate.texi ffplay.c libavdevice/dv1394.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | ffplay: fix return value of get_video_frame if avcodec_decode_video failsMarton Balint2012-06-09
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: reset AVFrame to defaults before decoding each new frame.Michael Niedermayer2012-06-08
| | | | | | | | | | | | | | | | This fixes: ffplay -f lavfi -i cellauto This was a regression since factorizing the filter code with ffmpeg. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: check return code of avcodec_decode_video2()Michael Niedermayer2012-06-08
| | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: fix build if avfilter is disabledMarton Balint2012-06-07
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: fix frame_delay calculation in new avfilter codeMarton Balint2012-06-07
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: add support for changing pixel formatMarton Balint2012-06-07
| | | | | | | | | | | | | | | | With the filtering code refactored, it was much easier to finally fix this. Fixes ticket 123 and 238. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: add missing filt_in assignment after video filter reconfigureMarton Balint2012-06-07
| | | | | | | | | | | | Fixes segfaults on changing resolution. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: fix frame aspect ratio after qatar mergeMarton Balint2012-06-07
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: fix use after freeMichael Niedermayer2012-06-07
| | | | | | | | | | | | | | | | | | reproduceable with: ffmpeg -i tests/lena.pnm -pix_fmt pal8 -vcodec rawvideo -s 512x512 out.avi valgrind ffplay_g out.avi Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: use dummy video driver if display is disabledMarton Balint2012-06-07
| | | | | | | | | | | | Fixes ticket 1402. Signed-off-by: Marton Balint <cus@passwd.hu>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-06-06
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: vorbis: Validate that the floor 1 X values contain no duplicates. avprobe: Identify codec probe failures rather than calling them unsupported codecs. avformat: Probe codecs at score 0 on buffer exhaustion conditions. avformat: Factorize codec probing. Indeo Audio decoder imc: make IMDCT support stereo output imc: move channel-specific data into separate context lavfi: remove request/poll and drawing functions from public API on next bump lavfi: make avfilter_insert_pad and pals private on next bump. lavfi: make formats API private on next bump. avplay: use buffersrc instead of custom input filter. avtools: move buffer management code from avconv to cmdutils. avconv: don't use InputStream in the buffer management code. avconv: fix exiting when max frames is reached. mpc8: fix maximum bands handling aacdec: Turn PS off when switching to stereo and turn it to implicit when switching to mono. Conflicts: Changelog cmdutils.h ffmpeg.c ffplay.c ffprobe.c libavcodec/avcodec.h libavcodec/mpc8.c libavcodec/v210dec.h libavcodec/version.h libavcodec/vorbisdec.c libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/buffersrc.c libavfilter/formats.c libavfilter/src_movie.c libavfilter/vf_aspect.c libavfilter/vf_blackframe.c libavfilter/vf_boxblur.c libavfilter/vf_crop.c libavfilter/vf_cropdetect.c libavfilter/vf_delogo.c libavfilter/vf_drawbox.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_fifo.c libavfilter/vf_format.c libavfilter/vf_frei0r.c libavfilter/vf_gradfun.c libavfilter/vf_hflip.c libavfilter/vf_hqdn3d.c libavfilter/vf_libopencv.c libavfilter/vf_lut.c libavfilter/vf_overlay.c libavfilter/vf_pad.c libavfilter/vf_scale.c libavfilter/vf_select.c libavfilter/vf_showinfo.c libavfilter/vf_transpose.c libavfilter/vf_unsharp.c libavfilter/vf_yadif.c libavfilter/vsrc_color.c libavfilter/vsrc_testsrc.c libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | ffplay: calculate audio diff threshold based on the actual settingsMarton Balint2012-06-02
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: try more channel count combinations for SDL_OpenAudioMarton Balint2012-06-02
| | | | | | | | | | | | This should fix ticket 1384. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: simplify audio_open, rename parameters to more explanatory namesMarton Balint2012-06-02
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: remove VideoState from audio_openMarton Balint2012-06-02
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: put audio parameters to their own structMarton Balint2012-06-02
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: put audio_open into a seperate functionMarton Balint2012-06-02
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: remove VideoPicture pix_fmt and use frame pixel format insteadMarton Balint2012-05-29
| | | | | | | | | | | | | | | | | | VideoPicture pixel format is set at allocation time, therefore it is not reflecting the proper value. Fixes files with changing pixel format in the avfilter disabled case. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: only request 4 or 6 channels from SDL, if SDL version is at least 1.2.8Marton Balint2012-05-29
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: add pause audio feature in the middle of a packetMarton Balint2012-05-29
| | | | | | | | | | | | Fixes ticket 215. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: remove VideoPicture duration fieldMarton Balint2012-05-29
| | | | | | | | | | | | We are not using it. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: force exit when filter configuration failsMarton Balint2012-05-24
| | | | | | | | | | | | | | | | | | Switching to visualization instead of exiting ffplay is a bit more tricky, so just exit for now. Fixes ticket 38. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: fix stream cycling if audio decoding failsMarton Balint2012-05-24
| | | | | | | | | | | | Fixes ticket 1161. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: flush codec buffers before freeing filtersMarton Balint2012-05-24
| | | | | | | | | | | | | | | | | | | | We do this to ensure that input_get_buffer is not called from a frame_worker_thread of a multithreaded decoder when we already freed the filters. Fixes occasional segfaults on video stream change. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: dont destroy packet queues on stream changeMarton Balint2012-05-24
| | | | | | | | | | | | | | | | | | | | This fixes occasional segfaults caused by lock request of the packet queue from the reader thread. Also don't allow to put frames into the queue when it's aborted, and don't try to fill the queue with frames when it is aborted. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: set base in dr1 allocation.Michael Niedermayer2012-05-24
| | | | | | | | | | | | This matches the default non dr1 allocator Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ffplay: Use input picture parameters in input_request_frame().Michael Niedermayer2012-05-20
| | | | | | | | | | | | | | Fixes Ticket122 Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ffplay: put aspect ratio info to the VideoPicture structMarton Balint2012-05-15
| | | | | | | | | | | | | | Also use av_guess_sample_aspect_ratio for determining aspect ratio of the video frame if not using avfilter. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: use AVFrame::width and height instead of using codec or filter settingsMarton Balint2012-05-15
| | | | | | | | | | | | | | Codec values may not reflect the actual frame size, and it also enables us to simplify code in the avfilter enabled and the avfilter disabled case. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: use stream sample_aspect_ratio if available in source framesMarton Balint2012-05-15
| | | | | | | | | | | | | | | | | | | | When we are using filter chains we have to set the aspect ratio of the source to the best known value, we use the av_guess_sample_aspect_ratio function to determine that. Fixes ticket 1228. Signed-off-by: Marton Balint <cus@passwd.hu>
* | ffplay: fix video_thread when no frame is returned in get_video_frameMarton Balint2012-05-15
| | | | | | | | | | | | Affects only ffplay build with avfilter disabled. Signed-off-by: Marton Balint <cus@passwd.hu>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-05-10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (27 commits) libxvid: Give more suitable names to libxvid-related files. libxvid: Separate libxvid encoder from libxvid rate control code. jpeglsdec: Remove write-only variable in ff_jpegls_decode_lse(). fate: cosmetics: lowercase some comments fate: Give more consistent names to some RealVideo/RealAudio tests. lavfi: add avfilter_get_audio_buffer_ref_from_arrays(). lavfi: add extended_data to AVFilterBuffer. lavc: check that extended_data is properly set in avcodec_encode_audio2(). lavc: pad last audio frame with silence when needed. samplefmt: add a function for filling a buffer with silence. samplefmt: add a function for copying audio samples. lavr: do not try to copy to uninitialized output audio data. lavr: make avresample_read() with NULL output discard samples. fate: split idroq audio and video into separate tests fate: improve dependencies fate: add convenient shorthands for ea-vp6, libavcodec, libavutil tests fate: split some combined tests into separate audio and video tests fate: fix dependencies for probe tests mips: intreadwrite: fix inline asm for gcc 4.8 mips: intreadwrite: remove unnecessary inline asm ... Conflicts: cmdutils.h configure doc/APIchanges doc/filters.texi ffmpeg.c ffplay.c libavcodec/internal.h libavcodec/jpeglsdec.c libavcodec/libschroedingerdec.c libavcodec/libxvid.c libavcodec/libxvid_rc.c libavcodec/utils.c libavcodec/version.h libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/buffersink.h tests/Makefile tests/fate/aac.mak tests/fate/audio.mak tests/fate/demux.mak tests/fate/ea.mak tests/fate/image.mak tests/fate/libavutil.mak tests/fate/lossless-audio.mak tests/fate/lossless-video.mak tests/fate/microsoft.mak tests/fate/qt.mak tests/fate/real.mak tests/fate/screen.mak tests/fate/video.mak tests/fate/voice.mak tests/fate/vqf.mak tests/ref/fate/ea-mad tests/ref/fate/ea-tqi Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | ffplay: use AVFrame accessor.Nicolas George2012-05-03
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-05-01
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avplay: use libavresample for sample format conversion and channel mixing Fix compilation with YASM/NASM without AVX support. WMAL: do not output last frame again if nothing was decoded in current packet WMAL: do not start decoding if frame does not end in current packet adpcm-thp: fix invalid array indexing ppc: add const where needed in scalarproduct_int16_altivec() ppc: remove shift parameter from scalarproduct_int16_altivec() ppc: dsputil: do unaligned block accesses correctly dvenc: do not call dsputil functions with stride not a multiple of 16 APIchanges: fill in some dates and commit hashes Conflicts: doc/APIchanges ffplay.c libavcodec/adpcm.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | lowres2 support.Michael Niedermayer2012-04-22
| | | | | | | | | | | | | | | | | | The new lowres support is limited to decoders where lowres decoding is possible in high quality. I was not able to measure any speed difference, but if one is found the 2-3 lines that might affect speed can be made compile time conditional Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-04-22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: ARM: allow runtime masking of CPU features dsputil: remove unused functions mov: Treat keyframe indexes as 1-origin if starting at non-zero. mov: Take stps entries into consideration also about key_off. Remove lowres video decoding Conflicts: ffmpeg.c ffplay.c libavcodec/arm/vp8dsp_init_arm.c libavcodec/libopenjpegdec.c libavcodec/mjpegdec.c libavcodec/mpegvideo.c libavcodec/utils.c libavformat/mov.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-04-18
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: aacenc: Fix issues with huge values of bit_rate. dv_tablegen: Drop unnecessary av_unused attribute from dv_vlc_map_tableinit(). proresenc: multithreaded quantiser search riff: use bps instead of bits_per_coded_sample in the WAVEFORMATEXTENSIBLE header avconv: only set the "channels" option when it exists for the specified input format avplay: update get_buffer to be inline with avconv aacdec: More robust output configuration. faac: Fix multi-channel ordering faac: Add .channel_layouts rtmp: Support 'rtmp_playpath', an option which overrides the stream identifier rtmp: Support 'rtmp_app', an option which overrides the name of application avutil: add better documentation for AVSampleFormat Conflicts: libavcodec/aac.h libavcodec/aacdec.c libavcodec/aacenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '3b266da3d35f3f7a61258b78384dfe920d875d29'Michael Niedermayer2012-04-17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3b266da3d35f3f7a61258b78384dfe920d875d29': avconv: add support for complex filtergraphs. avconv: make filtergraphs global. avconv: move filtered_frame from InputStream to OutputStream. avconv: don't set output width/height directly from input value. avconv: move resample_{width,height,pix_fmt} to InputStream. avconv: remove a useless variable from OutputStream. avconv: get output pixel format from lavfi. graphparser: fix the order in which unlabeled input links are returned. avconv: change {input,output}_{streams,files} into arrays of pointers. avconv: don't pass input/output streams to some functions. Conflicts: cmdutils.c cmdutils.h doc/ffmpeg.texi ffmpeg.c ffplay.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-04-11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avplay: Don't free video filters string until the end of decoding. movenc: small refactor mov_write_packet movenc: remove redundant check interplayvideo: fix av_dlog parameter type mismatch Drop some pointless #ifdefs. Conflicts: libavcodec/interplayvideo.c libavcodec/libxvidff.c libavcodec/snowenc.c libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-04-07
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: rtpdec_asf: Set the no_resync_search option for the chained asf demuxer asfdec: Add an option for not searching for the packet markers cosmetics: Clean up the tiffenc pix_fmts declaration to match the style of others cosmetics: Align codec declarations cosmetics: Convert mimic.c to utf-8 avconv: remove an unused function parameter. avconv: remove now pointless variables. avconv: drop support for building without libavfilter. nellymoserenc: fix crash due to memsetting the wrong area. libavformat: Only require first packet to be known for audio/video streams avplay: Don't try to scale timestamps if the tb isn't set Conflicts: Changelog configure ffmpeg.c libavcodec/aacenc.c libavcodec/bmpenc.c libavcodec/dnxhddec.c libavcodec/dnxhdenc.c libavcodec/ffv1.c libavcodec/flacenc.c libavcodec/fraps.c libavcodec/huffyuv.c libavcodec/libopenjpegdec.c libavcodec/mpeg12enc.c libavcodec/mpeg4videodec.c libavcodec/pamenc.c libavcodec/pgssubdec.c libavcodec/pngenc.c libavcodec/qtrleenc.c libavcodec/rawdec.c libavcodec/sgienc.c libavcodec/tiffenc.c libavcodec/v210dec.c libavcodec/wmv2dec.c libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>