PDA

View Full Version : choppy sound on video clips


Nikod
March 7th, 2011, 01:55 PM
Hi all

When i try to play small video clips (avi) recorded with a digital camera, the sounds keeps switching on and off. The strange thing is that this happens with movie clips recorded with two different cameras. When i play the files with another play all is fine and when i play a movie (like the holywood kind) all is fine.

Very odd...

Any ideas?

Regards
Nikolaj

TXAG96
March 21st, 2011, 03:11 PM
It's only on .avi files from a digital point and shoot camera. I don't know what to suggest, but I'm interested if you get an answer to this.

greenpoise
March 21st, 2011, 06:32 PM
+1 here ..I get the same. My files are AVI

Prospero424
March 22nd, 2011, 05:26 AM
We need more information about these video files. Please scan one of your own with MediaInfo Lite and post the output here.

Also, please tell us how you have Boxee set up as far as sound. Are you going over HDMI? SPDIF?

BTW, this is pertaining to the Boxee Box, not the Boxee desktop software, correct?

greenpoise
March 22nd, 2011, 01:54 PM
We need more information about these video files. Please scan one of your own with MediaInfo Lite and post the output here.

Also, please tell us how you have Boxee set up as far as sound. Are you going over HDMI? SPDIF?

BTW, this is pertaining to the Boxee Box, not the Boxee desktop software, correct?



Ok, I have HDMI. And these are the properties of my video files which come from a fuji digital point and shoot camera:

General
File
DSCF0352.AVI
Size
3023 KB (2 MB)
Length
00:00:19
Demuxer
avi

Video
Resolution
320 x 240
Aspect ratio
1.33333
Format
MJPG
Bitrate
1231 kbps
Frames per second
10.000
Selected codec
ffmjpeg

Initial Audio Stream
Format
1
Bitrate
64 kbps
Rate
8000 Hz
Channels
1
Selected codec

I hope this helps

Thanks!!!

greenpoise
March 22nd, 2011, 01:57 PM
Here is another one that lags.

File
MVI_0122.MOV
Size
17863 KB (17 MB)
Length
00:00:13
Demuxer
lavfpref

Video
Resolution
640 x 480
Aspect ratio
1.33333
Format
H264
Bitrate
9819 kbps
Frames per second
30.000
Selected codec
ffh264

Initial Audio Stream
Format
1
Bitrate
0 kbps
Rate
44100 Hz
Channels
1
Selected codec

Audio Streams
#
Language
Name
ID
0
eng
<empty>
0



We need more information about these video files. Please scan one of your own with MediaInfo Lite and post the output here.

Also, please tell us how you have Boxee set up as far as sound. Are you going over HDMI? SPDIF?

BTW, this is pertaining to the Boxee Box, not the Boxee desktop software, correct?

Prospero424
March 22nd, 2011, 11:20 PM
That the first one lags isn't surprising because it uses the archaic Motion JPEG format, which cannot be accelerated in hardware. That's the format the original Playstation used in 1994, heh.

The second one uses the modern h.264 codec, so it should be fine. But what's odd is that I don't see what audio codec it uses. That part of the MediaInfo output seems to have been cut off somehow.

See if you can figure out why that's the case, if you would.

greenpoise
March 23rd, 2011, 12:19 PM
That the first one lags isn't surprising because it uses the archaic Motion JPEG format, which cannot be accelerated in hardware. That's the format the original Playstation used in 1994, heh.


wow, thats a surprise, the cameras are basically new..for them using an old codec kinda makes you wonder...let me check the second one to see what codec it uses..thanks

greenpoise
March 23rd, 2011, 12:23 PM
The second one uses the modern h.264 codec, so it should be fine. But what's odd is that I don't see what audio codec it uses. That part of the MediaInfo output seems to have been cut off somehow.

See if you can figure out why that's the case, if you would.


It says audio codec to be pcm which I did not know them.

here: Selected codec pcm

Prospero424
March 23rd, 2011, 08:09 PM
Ah, that's what I suspected. PCM is uncompressed audio, kinda like a wav file. It should work fine with the Boxee Box.

The strange thing is that these two files are so very different. Are they both doing the EXACT same thing when you try to play them or are there differences in how the problem manifests?

Your camera may give you several options in what format to record to during shooting.

greenpoise
March 23rd, 2011, 09:34 PM
Ah, that's what I suspected. PCM is uncompressed audio, kinda like a wav file. It should work fine with the Boxee Box.

The strange thing is that these two files are so very different. Are they both doing the EXACT same thing when you try to play them or are there differences in how the problem manifests?

Your camera may give you several options in what format to record to during shooting.

You know what, I went through my hd again. Forget about the MOV, those play well..it was only the AVI's and it just cuts the sound. So, I can hear part of the audio then chops, audio back on and chops again. Thanks anyways

Prospero424
March 23rd, 2011, 11:52 PM
Ah, that explains it. The Boxee Box also may have had some trouble syncing the audio with a 10fps frame rate on the video in those .avi files. But that's just a wild guess. Suffice to say: I'd stay away from Motion JPEG whenever possible.

TXAG96
April 11th, 2011, 11:57 PM
I'm having the same problem on AVI files from a Canon Powershot. Here are the specs on one file that is affected:

General
Complete name : J:\Pictures\Family\Baby\2011\04\Allison and Madeline 2011-04-05\Allison and Madeline 001.AVI
Format : AVI
Format/Info : Audio Video Interleave
File size : 150 MiB
Duration : 1mn 24s
Overall bit rate : 14.9 Mbps
Mastered date : TUE APR 05 08:16:15 2011
Writing application : CanonMVI02

Video
ID : 0
Format : JPEG
Codec ID : MJPG
Duration : 1mn 24s
Bit rate : 14.8 Mbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 30.000 fps
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 1.609
Stream size : 149 MiB (99%)

Audio
ID : 1
Format : PCM
Format settings, Sign : Unsigned
Codec ID : 1
Codec ID/Hint : Microsoft
Duration : 1mn 24s
Bit rate mode : Constant
Bit rate : 88.2 Kbps
Channel(s) : 1 channel
Sampling rate : 11.024 KHz
Bit depth : 8 bits
Stream size : 906 KiB (1%)
Interleave, duration : 990 ms (29.69 video frames)
Interleave, preload duration : 1000 ms


If all of the files from this camera are going to be problematic, is there any software that can convert it into a playable format? I'm assuming this is the same MJEP codec you noted previously, but please correct me if that's not the case. If that's the problem, then are all of my video clips going to be laggy on the BB regardless of what I do? That would be disappointing.

I'm playing this AVI file through a Boxee box via HDMI to a Samsung DLP. The file sits on a NAS. The NAS and the router are on a lan to the router about 1 foot away from each other. I just upgraded the router tonight, so the NAS is benefiting from a gigabyte ethernet connection. I don't think the Boxee box has that connection capability, but at least it's hardwired to the network. So the wireless connection isn't a factor in playback on this. Thoughts? Suggestions?

darcilicious
April 12th, 2011, 12:01 AM
Your problem is this:

Format : JPEG
Codec ID : MJPG

Boxee's hardware decoder won't process motion jpg video and the cpu doesn't have the oomph to do it via software.

Not sure what would be a good format to convert to but I should think you would want to convert it to something...

Prospero424
April 12th, 2011, 12:26 AM
Encoding guide in my signature. With only a minute and a half of movie (like this file), it should only take you a few minutes even using the highest quality encode possible.

Just use my "Progressive Source SD Encode" Handbrake preset and you should be good to go.

TXAG96
April 12th, 2011, 11:36 AM
Thanks for the fast response. I appreciate the help and will check out the handbrake encoder and those presets. This should keep my wife from killing me for still having laggy audio on AVI clips of our twin daughters after investing another $150 in a new router.

Update 5/16 The encoding was the problem. I bought a new camera and HD video clips run perfectly. I still need to try the handbrake. I've downloaded it but haven't tried running it yet. Thanks for all the help.