ashish-codeware / xuggle

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

converting multi-audio track movie into FLV distorts audio #234

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install the latest xuggle-ffmpeg
2. Get/create a .mov video that has two audio tracks. These can be created
easily with SnapzPro on Mac OS X.
3. Try to convert the movie into a FLV so that it keeps both audio streams:
     ffmpeg -i sample_movie.mov -sameq sample_movie.merged-audio.flv -newaudio
4. Play the new sample_movie.flv in a video player (such as VLC)
5. Notice that while the two audio tracks seem to have been merged
together, they are highly distorted.

What is the expected output? What do you see instead?

The audio tracks should be merged together in the FLV, but not distorted. 
Note that converting the movie so that it doesn't merge the audio results
in non-distorted audio. e.g.:
     ffmpeg -i sample_movie.mov -sameq sample_movie.flv
will only convert one of the audio tracks (as expected) and that audio
track won't be distorted.  Apparently something is wrong with the audio
track merging.

What operating system and JVM version are you using.

Mac OS X 10.5.8. No JVM as I'm just using command-line ffmpeg.

Attach relevant log/output files.

I'm attaching ffmpeg.log, the stdout output of ffmpeg during the merged
audio conversion.

Original issue reported on code.google.com by paleozogt on 22 Jan 2010 at 10:06

Attachments:

GoogleCodeExporter commented 9 years ago
Attaching sample_movie.mov, a quicktime movie with two audio tracks.

Original comment by paleozogt on 22 Jan 2010 at 10:08

Attachments:

GoogleCodeExporter commented 9 years ago
Attaching sample_movie.merged-audio.flv, the result of the conversion that 
produces
merged but distorted audio.

Original comment by paleozogt on 22 Jan 2010 at 10:10

Attachments:

GoogleCodeExporter commented 9 years ago
btw, this crashes in ffmpeg trunk. I'm guessing the fact that this works at all 
is
because of the xuggle-ffmpeg branch.

Original comment by paleozogt on 22 Jan 2010 at 10:31

GoogleCodeExporter commented 9 years ago
Curiously, the Perian codec plugin for QuickTime (http://perian.org/) will play
sample_movie.merged-audio.flv flawlessly.  But VLC, Adobe Media Player, and 
Flash
will all play it with distorted audio.  Perhaps the timestamps of the merged 
audio
are subtly messed up?

Original comment by paleozogt on 22 Jan 2010 at 10:35

GoogleCodeExporter commented 9 years ago
Hi, we don't even begin to consider supporting command line FFmpeg.

Original comment by art.cla...@gmail.com on 22 Jan 2010 at 11:48

GoogleCodeExporter commented 9 years ago
I suspect this probably also indicates a problem with Xuggler, since the issue 
is 
likely in libavcodec.  Anyway, I'll code up something to repro the problem in 
Xuggler 
and re-submit.

Original comment by paleozogt on 22 Jan 2010 at 11:58

GoogleCodeExporter commented 9 years ago
There you go :)

Original comment by art.cla...@gmail.com on 22 Jan 2010 at 11:59