ashish-codeware / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

Video files with audio/video delay transcode incorrectly #232

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem:
1. Get a video file where mediainfo reports a video delay in the audio
section (I can't send the file I'm using due to legal issues)
2. Transcode it using the Converter class supplied with Xuggler

Here's some relevant information about my source file:

Audio
Format                           : MPEG Audio
Format version                   : Version 1
Format profile                   : Layer 2
Duration                         : 29s 962ms
Bit rate mode                    : Constant
Bit rate                         : 96.0 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 44.1 KHz
Resolution                       : 16 bits
Video delay                      : -80ms

Note the 'Video delay' line. This is the only file I can find (and I've
checked quite a lot) with a video delay so I lack testing data, but I'm
quite sure that's the problem.

When transcoded to FLV (using the Converter without parameters):
Audio
Format                           : MPEG Audio
Format version                   : Version 2
Format profile                   : Layer 3
Duration                         : 30s 14ms
Bit rate mode                    : Constant
Bit rate                         : 96.0 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 22.05 KHz
Resolution                       : 16 bits
Video delay                      : -596h 31mn
Writing library                  : LAME3.98

As you can see, the Video delay is wrong. This causes incorrect playback,
the exact behavior depends on the used media player.

When transcoded to WMV, the Video delay is gone. However, Media Player
Classic is unable to play the resulting file, while VLC doesn't have any
problems.

When transcoded to MPG (Yes, the source file is also MPG format) the video
delay is also wrong:
Audio
Format                           : MPEG Audio
Format version                   : Version 2
Format profile                   : Layer 2
Duration                         : 29s 884ms
Bit rate mode                    : Constant
Bit rate                         : 96.0 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 22.05 KHz
Resolution                       : 16 bits
Video delay                      : -26h 30mn

Xuggler isn't printing any non-standard output

I'm running Windows XP, Java V6 Update 16 with the latest Xuggler (3.3)

Original issue reported on code.google.com by renezwanenburg@gmail.com on 12 Jan 2010 at 12:39

GoogleCodeExporter commented 9 years ago
Cannot reproduce with sample files.  Sorry.

Original comment by art.cla...@gmail.com on 12 Jan 2010 at 2:58