Re: [Redbutton-devel] Small changes to rb for Fedora 9
Brought to you by:
skilvington
|
From: Simon K. <s.k...@er...> - 2008-06-16 09:04:40
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andrea wrote: > Simon Kilvington wrote: >> this should tell us what tags map to what PIDS - here's what I got: >> >> srk@earwig ~ $ nc 127.0.0.1 10101 >> assoc >> 200 OK >> Tag PID Type >> === === ==== >> (audio) 0 0 >> (video) 0 0 >> 1 202 6 >> 101 301 11 >> 102 302 11 >> 103 303 11 >> 104 304 11 >> 105 305 11 >> 110 312 11 >> 115 313 13 >> 2 403 3 >> 51 404 6 >> 52 405 6 >> 53 406 6 >> . > > I get the same. > > I've tried to debug open_stream in MHEGBackend.c and I've noticed the following: > > Usually audio & video go together and open_stream is called to open the dvr for audio and video. > In the news multiscreen page, first the dvr is opened for video (no audio) and afterwards it is > opened for audio. > > This is *not* possible. For some reason the dvr can be opened only once. > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5e85bd057f0cb29881e3d55d29f48bb55bd2f450 > > The problem is that I cannot figure out how you it can work for you. I've noticed that the code > follows a different path if it runs on the same machine as the server. Are you running over the network? > err, I just tried it again and it doesn't work for me either now! I can assure you it used to work for me :-) - either BBC have changed the way their app works, or one of the kernel/lib/redbutton/etc updates I have done has broken it at some point in the past - anyway, your singleton solution sounds like the simplest - I will make MHEGStreamPlayer a singleton - the UK MHEG spec says you only need to support a single video/audio decoder - at the moment each separate MHEG Video and Audio object gets its own stream player, and they all open the dvr device - which works fine when there is only one, but not when the audio is a separate object to the video object another issue I need to resolve is since I upgraded ffmpeg and started using avcodec_decode_audio2 - my sound is stuttering and I get errors about "incorrect frame size" on the console - this comes from inside the avcodec_decode_audio2 call, so I need to sort that out too > There are 2 possibilities in my opinion: > > 1) treat dvr as a singleton and share it > 2) use the new feature DMX_OUT_TSDEMUX_TAP > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b01cd937895ad4114a07114cfb6b8b5d2be52241 > > where the demux outputs TS data (the same as DVR) and not PES (as it used to do). > > Andrea > thanks for your help and comments - -- Simon Kilvington -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIViyZmt9ZifioJSwRAiuzAJ9K2x1WtYJoHC9xWl3Vgre2CUnHSQCeOxPB XNHEKVrp3RHD0GnRpF5mHYE= =9TE/ -----END PGP SIGNATURE----- |