NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 69 70 71 72 73 … 93 Next »
MPEG2 question

 
  • 0 Vote(s) - 0 Average
MPEG2 question
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#1
2005-08-15, 06:08 PM
Hi,

I have extended comskip with sound processing.
To do this I hacked the mpeg2 audio decoder from libavcodec into the ps demux of libmpeg2. And yes, it may have been easier to use libavcodec also for the video part but libavcodec is only compilable with gcc and I am using vc++ and I could not find a libavcodec.lib readily build.

Now I have a strange "problem"
I use a test stream with interlaced video of 25fps and stereo sound with 48khz samplerate
When I do the math then I should use samplerate*2(stereo)/fps samples per "audio frame" to match the timing of a video frame
However this gives me an audio "framerate" that is exactly 2/3 of the video frame rate.
When I multiply the calculated samples per frame with 2/3 then audio and video match exactly. (comskip is now indeed able to discard the black frames that have sound)

Where do I make a mistake in my calculations????????

Is there anyone that can upload a short (200 MByte) NTSC recording to my ftp server so I can test the NTSC framerate?
Preferrably with show with logo, then commercials, and then again show with logo
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#2
2005-08-15, 07:13 PM
PM me the info, I'll upload one.
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Web API only_new Question Gazavant 6 2,649 2021-04-04, 06:54 PM
Last Post: sub
  Another Artwork question scJohn 15 8,122 2019-09-10, 05:33 PM
Last Post: nonob
  WEB API GuidService/Listing question(s) scJohn 6 4,257 2017-08-09, 02:18 PM
Last Post: scJohn
  skin question pBS 2 3,336 2016-06-18, 07:03 PM
Last Post: pBS
  Another SQL question bgowland 15 7,180 2014-05-21, 08:09 AM
Last Post: bgowland
  Timing.Info question mvallevand 2 2,064 2013-04-19, 03:54 AM
Last Post: mvallevand
  N-PVR db3 EPG_EVENT time format question bgowland 3 2,076 2011-03-12, 05:26 AM
Last Post: bgowland
  Ping UncleJohnsBand (question about npvr soap) ioan 2 2,035 2011-02-18, 01:12 AM
Last Post: UncleJohnsBand
  Skin question - how to centre a list UiList control on screen? McBainUK 2 1,837 2011-02-17, 08:46 AM
Last Post: McBainUK
  Skin question for "Visible" 7ore 14 5,302 2010-09-22, 09:04 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode