85 Commits
Author SHA1 Message Date
wang-bin db2f53edd2 Merge branch 'master' of github.com:wang-bin/QtAV resizeok 2012-12-16 01:40:01 +08:00
wang-bin 831a335385 Crash on resizing fixed with the fixed picture size 2012-12-16 01:33:51 +08:00
WangBin 1cef8f6042 Update README.md
How to build with QtCreator
2012-12-13 14:10:20 +08:00
wang-bin b6f712d2e0 Merge branch 'master' of github.com:wang-bin/QtAV 2012-12-12 15:44:39 +08:00
wang-bin 298835163f TODO: playNextFrame has a bug 2012-12-12 15:42:50 +08:00
LucasWang f02a1314d2 fix command line bug 2012-12-11 16:29:55 +08:00
wang-bin 9365bc2d08 version 1.1.2
better seeking
2012-12-10 10:55:01 +08:00
wang-bin 544bf5d7c4 TODO and bugs 2012-12-10 00:23:12 +08:00
wang-bin 180919c075 ignore empty packets 2012-12-09 14:21:19 +08:00
wang-bin a1b98cd86e don't wake up empty_cond in clear(). ensure the queue.size>0 when wake
blocking is always enabled if queue is empty. perhaps we should rename
the setBlocking() api
2012-12-09 14:19:44 +08:00
wang-bin 7cc5813aa5 ensure seeking and demuxthread not run concurrently
the a/v queue must been cleaned up after seeking. if seeking and
demuxing run concurrently, the clear() may be before put() for many
times(demux thread loop), e.g. seek()->clear()->readFrame()->put()
2012-12-09 14:15:41 +08:00
wang-bin 147f677b55 Do not block a/v queue if another queue's size is too small
I can not find a good way to sync the A/V packet queue now. For now, if
1 queue's size is less than it's threshold, for example, video queue,
then do not block audio queue, otherwise video queue will be empty for a
long time untill audio queue's size is less than it's threshold, so the
video renderer will not update pictures during this time. Problem still
exists, if video queue is empty when audio queue is blocked(demux thread
bolcked), then the picture will not update too.
The expected solution is do not block both queue(so the demux thread)
when 1 queue is empty(or size too small?)
2012-12-08 21:16:04 +08:00
wang-bin 6151070584 remove AVInfo. Use AVDemuxer instead 2012-12-08 10:15:10 +08:00
LucasWang 3f8437bcf6 Use template template parameter 2012-11-28 16:18:03 +08:00
wang-bin e250b087d8 Add AVPlayer::playerNextFrame()
if not player, start
2012-11-27 22:23:03 +08:00
wang-bin 231e59c00f Add resource file for win. 2012-11-23 00:25:58 +08:00
wang-bin 3d6aad1c3f v1.1.1 v1.1.1 2012-11-21 15:52:47 +08:00
wang-bin 0a76780943 Individual EventFilter to handle events pass to the renderer not global
install event filter to qApp will affect the other components' event
handling, e.g. text inputing. Now it is installed to the renderer.
FIXME: QGraphicsWidget event handling is strange
2012-11-21 15:39:08 +08:00
wang-bin d11d26c06b Seek only when the video is available 2012-11-21 13:50:39 +08:00
wang-bin 826348160d misc: mute in AVPlayer. README add shortcut "N" 2012-11-21 01:03:58 +08:00
wang-bin c5d25cca7f Avoid receiving a key press event multiple times
We return false and the event will be dispatched again, we may receive
this event again but for another target
2012-11-20 18:29:30 +08:00
wang-bin 1df22e9be7 capture name using video timestamp. resolution is 1ms 2012-11-20 16:49:14 +08:00
wang-bin 98592d0370 av_always_inline 2012-11-20 13:19:00 +08:00
wang-bin 26519622b3 Qt5 logging support 2012-11-20 13:16:34 +08:00
wang-bin 6574165039 clock value is pts+delay
BUG: the video is a litter faster than audio!
2012-11-20 13:03:56 +08:00
wang-bin 36b6f9ec87 capture and play frame by frame support
TODO: get the original size.
BUG: the capture file name using the pts, which may be the same for the
adjoining frames.
2012-11-20 13:02:27 +08:00
wang-bin ba95422c23 update README.md. Add seek forward/backward shortcut 2012-11-18 21:32:09 +08:00
wang-bin 41c567b3a6 puts ifdef the wrong position 2012-11-15 16:15:38 +08:00
wang-bin 67dc74df6c Seeking is better. Backward support
I used the last demuxed pts which is not correct because demuxer may be
waiting.
2012-11-15 15:47:57 +08:00
wang-bin 8c0125082d misc 2012-11-15 14:27:14 +08:00
wang-bin 0b741e3300 QtAV_Compat.h: fix compile failure with gcc. Only included by .cpp
the macro av_err2str() in ffmpeg's error.h results in a "taking address
of temporary array" error using gcc in linux. MinGW is ok. Don't know
why.
QtAV_Compat.h must include libav/ffmpeg headers, so it can't be included
in a public header.
2012-11-15 14:25:00 +08:00
wang-bin 44c3c1cf58 Delay AVPlay,show first. In linux init the audio may takes a lot of time 2012-11-15 14:19:28 +08:00
wang-bin 788b84b0dd fix crash when opening a file
crash on linux: activeWindow->setTitle. why?
setRenderer must stop the previous playing.
2012-11-15 14:16:56 +08:00
wang-bin 6ade74658f Merge branch 'master' of github.com:wang-bin/QtAV
Conflicts:
	src/QtAV/AOPortAudio.h
	src/QtAV/private/AOPortAudio_p.h
	src/QtAV/private/AudioOutput_p.h
2012-11-15 11:19:41 +08:00
wang-bin 209747f3cf misc 2012-11-15 11:14:07 +08:00
wang-bin 64d24d6d4b use dptr for AudioOutput and AOPortAudio 2012-11-13 21:51:43 +08:00
wang-bin 907d91bdfb use dptr for AudioOutput.
Ready to use OpenAL
2012-11-13 21:40:30 +08:00
wang-bin 2a5e79f15f BlockingQueue: QQueue as the default container 2012-11-13 20:46:02 +08:00
wang-bin e35ba84fc6 resolve merge problem 2012-11-13 14:26:05 +08:00
wang-bin fe518a4182 TODO list and roadmap 2012-11-13 14:12:20 +08:00
wang-bin 26d9b0e6fe seek forward support. not good enough
TODO: more accurate delay. seek backward. no crash when seeking
2012-11-13 13:29:37 +08:00
wang-bin 275cb7e225 Fix crash when argc==1. Update window title when open a video
TODO: how to detect player's window?
2012-11-12 23:02:29 +08:00
wang-bin 182f9f9207 Add open file dialog and shortcut "O" 2012-11-12 22:43:48 +08:00
wang-bin 4e863d5ebf README: add shortcut 2012-11-11 23:27:25 +08:00
wang-bin 2513ce2321 OpenGL test 2012-11-11 23:06:14 +08:00
wang-bin 9ac29485d7 illegal qmake syntax 2012-11-11 23:05:43 +08:00
wang-bin bc6fa240b0 Use my new D-Pointer technology. Add ffmpeg compatible api
New D-Pointer can avoid conflicting with Qt's d_ptr; This is powerful
and more easy to use.
Compatible api is just at beginning. Update the older api to the latest.
2012-11-11 23:04:42 +08:00
wang-bin c401908561 QGraphicsItem::update() may not cause a redraw 2012-11-11 00:58:46 +08:00
wang-bin 0718f66820 misc 2012-11-10 23:52:54 +08:00
wang-bin 64d3553e50 Pause support(space). Add the missing initialization for AVOutputPrivate 2012-11-10 23:52:00 +08:00