Don't use this patch, use Keven Smyth's patch that supports VBR.
Lonnie Hutchinson wrote:
This patch sets the source bitrate.
Isaac Richards wrote:
On Tuesday 01 February 2005 11:27 am, Kevin Smyth wrote:
I've updated the patch to mirror the audio output changes in flacdecoder.cpp. I've run it with cvs from a few days ago with no problems. This may fix your compile problem (although I have no idea what the error was; if it was from compiling globalsettings.cpp, you likely have to `make install` mythtv from current cvs).
In any case, I think the patch should be updated.
I don't know what needs to be changed with respect to the UTF updates, though.
I'd like very much to see this in CVS.
It's in now - can you get the current bitrate of the stream easily? That should be added if possible..
Isaac _______________________________________________ mythtv-dev mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
------------------------------------------------------------------------
Index: mythmusic/aacdecoder.cpp =================================================================== RCS file: /var/lib/mythcvs/mythmusic/mythmusic/aacdecoder.cpp,v retrieving revision 1.1 diff -u -d -w -r1.1 aacdecoder.cpp --- mythmusic/aacdecoder.cpp 2 Feb 2005 08:48:13 -0000 1.1 +++ mythmusic/aacdecoder.cpp 4 Feb 2005 05:42:45 -0000 @@ -364,6 +364,8 @@ if (output()) { output()->Reconfigure(16, channels, sample_rate); + bitrate = mp4ff_get_avg_bitrate(mp4_input_file, aac_track_number) / 1000; + output()->SetSourceBitrate(bitrate); }
inited = TRUE;
@@ -524,6 +526,8 @@
buffer, buffer_size
);
+ bitrate = mp4ff_get_avg_bitrate(mp4_input_file, aac_track_number) / 1000;
+ output()->SetSourceBitrate(bitrate);
sample_count = frame_info.samples;
------------------------------------------------------------------------
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
_______________________________________________ mythtv-dev mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
