NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 342 343 344 345 346 … 1231 Next »
Mencoder - telecine and audio sync

 
  • 0 Vote(s) - 0 Average
Mencoder - telecine and audio sync
Questor
Offline

Junior Member

Posts: 28
Threads: 8
Joined: Mar 2008
#1
2008-03-31, 06:58 PM
Hi all,

I'm looking for any suggestions.

I've been trying various mencoder options with comskip commercial cutting and was recently trying the telecine option (-mpegopts tsaf:telecine ).

The output file is about 17% smaller than with just cutting, and after viewing several spots within the output mpeg file it is acceptable quality (to me) but the audio isn't synced at all. Note by non-synced I mean it progressively gets worse so that by the end of the video it is playing audio from much earlier in the file.

I've even tried a two step process with -mpegopts tsaf in the first commercial-cutting pass and -mpegopts tsaf:telecine in the 2nd copy-only pass (no edl cutting). The audio IS synced after cutting only but is lost after 2nd telecine pass.

1st pass
mencoder original.mpg -edl original.edl -oac copy -ovc copy -of mpeg -mpegopts tsaf -o cut_video.mpg

2nd pass
mencoder cut_video.mpg -oac copy -ovc copy -of mpeg -mpegopts tsaf:telecine -o telecine.mpg


I'm no expert on mpeg 3 audio, but I'm certain the video has time stamps periodically in the GOPs, so if there were any audio timestamps the player could syncronize them.

Here is the original file information (from mencoder):
VIDEO: MPEG2 480x480 (aspect 2) 29.970 fps 3500.0 kbps (437.5 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:480x480 fps:29.97 ftime:=0.0334
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
PACKET SIZE: 2048 bytes, deltascr: 245760
videocodec: framecopy (480x480 24bpp fourcc=10000002)
audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 B/s=24000 sample-1)
Limiting audio preload to 0.4s.
Increasing audio density to 4.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#2
2008-03-31, 10:12 PM
ahh, you're cutting and changing framerate without giving it a chance to adjust... [-ovc copy]
assuming incoming framerate is 29.97, and telecining changes it to 24fps, but there's no recompression so mencoder can't adjust the frames to match...
[watch the messages as it encodes, the telecine part at beginning]

doesn't it complain that the framerate hasn't been changed?
[it should]

basically, incoming video is 29.97, telecining makes that into 24fps and adds 'telecine' flag and keeps 'reported' framerate as 29.97 even tho it's now 24fps..
it does this so players know to 'reverse' the process in player, adding frames for the 24fps to play on a 29.97 hardware...[confusing huh? Smile]
[hardware is 29.97 only, can't play 24fps without fixups]

but i bet if you leave out the telecine, it's in sync...

to use telecine, you have to use filter on input video, and specify input and output fps...[at least output as 24fps] as adding that flag will tell players it's a 24fps film that should be played at 29.97..

the reason it's so much smaller is the change in framerate...29.97->24fps
[1/5th less]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Audio buzzing second time recording launched. dennit 2 4,536 2012-12-09, 11:28 PM
Last Post: dennit
  Help wih AAC audio Pob 14 9,427 2012-07-03, 04:23 AM
Last Post: SLR_65
  HVR-1950 Audio Distortion Paul D. Bellamy 0 1,763 2011-09-06, 02:36 PM
Last Post: Paul D. Bellamy
  GB-PVR + LAVF Audio decoder (DVD) hoborg 0 1,860 2011-04-06, 04:15 PM
Last Post: hoborg
  mkv embedded subtitles and audio tracks jam_zhou 10 4,287 2010-11-23, 05:05 PM
Last Post: hoborg
  Descriptive Audio Service Question mikeh49 3 3,121 2010-10-21, 10:49 PM
Last Post: sub
  Skip forward during playback freezes video then audio smiffypr 3 2,831 2010-10-19, 12:46 AM
Last Post: smiffypr
  Audio bit rate. brianj 2 1,794 2010-09-03, 11:38 AM
Last Post: brianj
  Digital TV Audio - Is AC3 better? NICAM - How do I get Track1 to Track2 ? jksmurf 9 3,173 2010-08-27, 04:17 PM
Last Post: sub
  Problem with audio on livetv play, but not in recording? hexibot43 3 2,109 2010-07-10, 03:24 PM
Last Post: hexibot43

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

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

Linear Mode
Threaded Mode