Commit Graph

1479 Commits

Author SHA1 Message Date
reimar 171de9cf5f reinit vo when pix_fmt changes.
Avoids broken image or even crash with mf://*.jpg and JPGs with different chroma sampling.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17974 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-27 10:32:52 +00:00
diego 41bfa3e8e0 Change some printf calls to fprintf.
based on a patch by Attila Ötvös, oattila,,@,,chello,,.,,hu


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17972 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-27 07:49:14 +00:00
diego 7416ded30b Change 'if(verbose)' to the more appropriate mp_msg_test.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17970 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-27 07:22:48 +00:00
lorenm f9ed90fb61 use shifts instead of division. 15% faster hqdn3d
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17966 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-26 21:32:52 +00:00
diego eebf08b978 Convert all if(verbose>X) to mp_msg_test calls.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17933 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-24 08:12:03 +00:00
michael 87323740ed feed something (hopefully correct timestamps) into the video filter chain
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17911 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-21 23:09:52 +00:00
michael a812e6fc3c lavc doesnt pass AVFrame.opaque around :/
so lets use AVFrame.pts and hope lavcs pedantic timestamp checks like what mencoder generates ...


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17910 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-21 23:06:09 +00:00
michael 565af71e4f 10l (null pointer dereference)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17908 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-21 22:12:48 +00:00
michael 02b199e5e9 passing pts through the filter layer (lets see if pts or cola comes out at the end)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17907 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-21 21:26:42 +00:00
lorenm 5283b5beef sync to x264 r476 (subq=7)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17903 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-20 23:13:37 +00:00
corey fac2fee9fe Support libavcodec vrc_strategy=1 (XviD ratecontrol).
As a side effect, this also makes -lavcopts vcodec=xvid work.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17887 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-17 23:47:10 +00:00
nicodvb 81472a14a7 compile in the filters that depend on libavcodec/dsputil.h only when mplayer is configured to use the imported libavcodec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17883 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-16 21:56:24 +00:00
rtognimp 0ba7f250d7 Remove twos workaround, this bug was fixed in mov demuxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17869 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-14 22:15:24 +00:00
rathann 68f49b8512 in24/in32/fl32 little/big-endian QuickTime PCM audio support
approved by rxt


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17859 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-13 23:32:36 +00:00
michael 4f3dfe9738 do not randomly chop up packets, this isnt allowed in almost no container
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17856 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-13 17:15:51 +00:00
michael 3d19a5474d -lavcopts aglobal
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17843 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-13 02:40:09 +00:00
rfelker 7519cfa528 10l found by Oded: case 2 on a boolean value...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17833 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-12 18:31:50 +00:00
rathann 7875c2e150 QuickTime in24 and in32 PCM audio support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17814 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-11 22:43:28 +00:00
reimar e358534d3a add default case to encoder switch-case (maybe an error message would be good as well).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17782 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 15:49:46 +00:00
reimar d851f8c22e free tmp earlier, it is not needed below and might leak on errors otherwise
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17769 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 10:50:16 +00:00
lorenm 66419046a2 sync to x264 r457 (direct_pred=3)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17732 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-05 07:23:12 +00:00
diego 434c3d0218 Reduce Real DLL/so loading verbosity, OKed by Roberto.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17722 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-03 22:38:46 +00:00
gpoirier bc6540bae9 XviD multi-threaded encoding support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17704 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-01 09:18:56 +00:00
michael 593dda77e9 10l (dont limit dimension components independantly if noup)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17675 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-24 15:22:59 +00:00
corey 960b978a03 Fix video delay when encoding with B-frames.
Encoding delay is adjusted for on-the-fly during encoding.

Decoding delay is compensated for by setting an appropriate dwStart on
the audio stream (only in muxer_avi at this point).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17660 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-21 09:39:22 +00:00
michael 8f51734daf no upscale flag so automatic downscaling is possible in mencoder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17647 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-18 21:12:56 +00:00
aurel 808ce9a03a memalign segfaults when used without declaration on amd64 (default function return type is int so the pointer was trunctated to 32bits)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17636 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-16 22:43:42 +00:00
iive 2431c2a2cb include config.h before includes that need it
based on patch by Alan Curry <pacman at theworld com>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17631 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-16 10:08:03 +00:00
diego 52c917e583 Align memory at 16 byte boundaries.
This fixes crashes related to AltiVec as reported at
http://mplayerhq.hu/pipermail/mplayer-advusers/2006-January/001381.html
patch by Luca Barbato, lu_zero #at# gentoo #dot# org


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17626 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-14 09:55:14 +00:00
lorenm 394940b23c lavc exposes the reconstructed picture, so no need to decode it again
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17615 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-13 07:00:37 +00:00
reimar 67569814d9 Make sure maxlen is respected, instead of just failing the assert later on.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17582 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-10 18:21:52 +00:00
rathann e7db4ccf1a Patch by Stefan Huehner / stefan % huehner ! org \
patch replaces '()' for the correct '(void)' in function
declarations/prototypes which have no parameters. The '()' syntax tell
thats there is a variable list of arguments, so that the compiler cannot
check this. The extra CFLAG '-Wstrict-declarations' shows those cases.

Comments about a similar patch applied to ffmpeg:

That in C++ these mean the same, but in ANSI C the semantics are
different; function() is an (obsolete) K&R C style forward declaration,
it basically means that the function can have any number and any types
of parameters, effectively completely preventing the compiler from doing
any sort of type checking. -- Erik Slagter

Defining functions with unspecified arguments is allowed but bad.
With arguments unspecified the compiler can't report an error/warning
if the function is called with incorrect arguments. -- Måns Rullgård


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 14:08:03 +00:00
iive 1f34ddefd2 include config.h as img_format.h needs endian definitions, noticed by Alan Curry <pacman at theworld com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17566 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 10:23:51 +00:00
rtognimp ae8e77ca8d Add support for grayscale [m]jpeg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17562 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-08 23:22:29 +00:00
ods15 5d1bccd70c Fix mpng to work correctly with 16 bit png's. don't have any files to test
this on, but mpng still works correctly for files that worked fine before.
patch by derf < tterribe BANG xiph POIT org >


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17553 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-07 18:17:12 +00:00
diego aa18e3de57 Only compile libmpencoders if MEncoder has been enabled.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17525 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-31 23:45:46 +00:00
diego 872a28cc57 Move conditional compilation out of the code and into the build system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17524 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-31 23:36:12 +00:00
diego 89d549f984 Make clean/distclean behave uniformly in all directories.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17489 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-27 00:06:42 +00:00
michael e6338c5858 change muxer_write_chunk() so that pts/dts _could_ be passed from encoder to muxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17488 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-26 19:32:07 +00:00
michael 590e8e7153 pass vbv_size & max_rate from encoder to muxer over muxer_stream_t (if this is wrong/silly/10000000l then dont hesitate to flame / reverse)
make a few things like mux_rate, mux_max_delay, ... user settable
fixed buffer underflow errors when muxing to mpeg-ps


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17481 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-25 01:17:57 +00:00
michael 1cba4675fa vglobal so the user can tell the encoder that she wants global headers ... one step closer to correct mov/mp4 muxing
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17479 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-24 23:50:41 +00:00
diego 4e63801751 Using INT_MAX without including limits.h breaks compilation on MinGW.
patch by Gianluigi Tiesi,  mplayer $$@$$ netfarm $$.$$ it


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17470 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-23 13:53:40 +00:00
corey 9e0acc3d2e support libavcodec's new sc_factor parameter
Original idea from Michael; patch by me.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17465 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-22 21:02:14 +00:00
diego 65f186f4d0 proper support for shared libpostproc
patch by Nico Sabbi, fixes and consistency cleanups by me


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17464 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-22 18:11:35 +00:00
reimar 0ded97cff2 Use free instead of speex_free - since speex_free does not appear in the
headers it probably is for internal use only.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17430 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-19 20:26:34 +00:00
diego 53f42d7ecd Push "Building audio filter chain" up to verbose level.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17428 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-19 00:08:09 +00:00
lorenm 7bf3599898 sync to x264 r398.
patch by Guillaume Poirier.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17403 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-16 01:37:32 +00:00
nicodvb 7737fb018d ad_hwmpa: pass-through fake audio codec for hardware mpeg decoders
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17398 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-15 10:25:14 +00:00
diego 285eb0f1ca Consistent variable names for shared libavcodec.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17388 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-14 16:26:42 +00:00
diego 988281c471 Update licensing information: The FSF changed postal address.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17368 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-13 00:23:32 +00:00