No sound for mpeg video

Asked by Jonathan Chan

Hi,

I'm using Windows 7, Windows Media Player version 12 and Xibo Client 1.0.7, there is no sound for Xibo Client playing mpeg video, only picture can be shown. However, it works fine if playing the mpeg video in Windows Media Player directly. Do you have any idea?

Thanks a lot!

Regards,
Jonathan.

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Alex Harrington (alexharrington) said :
#1

What sound mixer settings do you have for the xibo client?

Is it just on one video?

Are you playing the video in windows media player on the client machine itself or have you done that test on another computer?

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Jonathan Chan (chanchiwah) said :
#2

Hi Alex,

I just tried on one video, and it is tested on the same machine with Xibo client. And I also run the server on the same machine too. Any sound mixer setting do i need to set?

Thanks in advance!

Regards,
Jonathan.

Revision history for this message
Alex Harrington (alexharrington) said :
#3

Windows 7 has individual sound mixer settings for each running application.

Make sure you don't have the volume turned down there.

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Jonathan Chan (chanchiwah) said :
#4

Hi Alex,

I've checked the sound mixer setting, the volume of Xibo Client is set to max already. Btw, the mpg video is around 2G, since it's too large to upload, so I've created a dummy video file and upload to the server, then I replaced the dummy video file with the real one manually in the server. After the client started, the video file is download to client directory, I've tried to play this downloaded version in Windows Media Player, it works fine also. Really no idea why only have picture without sound. Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Alex Harrington (alexharrington) said :
#5

There's at least part of the problem.

You can't just go changing files on the server library. We cache checksums of the file you upload so I'm amazed that the client is even playing the layout at all unless you've been in the database and manually made the adjustments needed.

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Jonathan Chan (chanchiwah) said :
#6

Hi Alex,

It seems can't upload around 2G video file using PHP, do you have any idea how can I handle such large file?

Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Alex Harrington (alexharrington) said :
#7

You could do what your doing now but you'll need to clear the md5 data for
the new media item in the database before you use it.

The webservice should then calculate the checksum on the fly.

In the longer term, we've got someone working on a desktop application for
uploading large files.

With regards to sound, can you upload a short video as we intend the
system to work and see if the audio works then.

Alex

Jonathan Chan <email address hidden> wrote:

Question #106975 on Xibo changed:
https://answers.launchpad.net/xibo/+question/106975

Jonathan Chan posted a new comment:
Hi Alex,

It seems can't upload around 2G video file using PHP, do you have any
idea how can I handle such large file?

Thanks a lot!

Regards,
Jonathan.

--
You received this question notification because you are a member of Xibo
Developers, which is an answer contact for Xibo.

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Alex Harrington (alexharrington) said :
#8

You also didn't say what server version you're using?

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Jonathan Chan (chanchiwah) said :
#9

Hi Alex,

I'm using 1.0.6 for server. For the md5, I just need to set the md5 value to null in database? That md5 value will affect the client that can't perform the sound correctly? And I will try the small video and tell u the result later. Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Alex Harrington (alexharrington) said :
#10

Yes, set it to null.

Next time the client connects it will see the changed checksum and that will force it to download that file again.

Depending on what else you have scheduled the client may drop back to the splash screen while that happens and the downloaded files check sum is calculated.

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Alex Harrington (alexharrington) said :
#11

In fact it would be worth stopping the client and deleting the contents of the client library folder to ensure fresh copies of everything are downloaded.

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Jonathan Chan (chanchiwah) said :
#12

Hi Alex,

I've tried your suggestion, set the md5 to null and let the webservice to calculate the value, but the client is still no sound while play that video, but the picture is shown correctly.

And I've tried the smaller video, everything works fine on the client, both sound and picture are shown correctly.

Any limitation on the video?

Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Jonathan Chan (chanchiwah) said :
#13

Hi Alex,

I've tried to use the small video to do same procedures as 2G video, set the md5 to null and let the webservice to calculate the value. Both picture and sound can be shown correctly in Xibo client. So, I guess it may be due to the properties of the video. Below is the details of the two videos:

2G:
Length - 00:48:04
Frame width - 720
Frame height - 576
Data rate - 9100kbps
Total bitrate - 9356kbps
Frame rate - 25 frames/second
Bit rate - 256kbps
Channels - 2(stereo)
Audio sample rate - 48 kHz
Size - 1.90 GB

Small video:
Length - 00:03:49
Frame width - 352
Frame height - 240
Data rate - 1150kbps
Total bitrate - 1374kbps
Frame rate - 29 frames/second
Bit rate - 224kbps
Channels - 2(stereo)
Audio sample rate - 44 kHz
Size - 38.1 MB

Do you have any idea on the limitation of the video supported by Xibo? Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Alex Harrington (alexharrington) said :
#14

We just embed windows media player so it should play anything windows
media player can.

You're sure your testing in windows media player not media player classic?

Alex

Jonathan Chan <email address hidden> wrote:

Question #106975 on Xibo changed:
https://answers.launchpad.net/xibo/+question/106975

Jonathan Chan posted a new comment:
Hi Alex,

I've tried to use the small video to do same procedures as 2G video, set
the md5 to null and let the webservice to calculate the value. Both
picture and sound can be shown correctly in Xibo client. So, I guess it
may be due to the properties of the video. Below is the details of the
two videos:

2G:
Length - 00:48:04
Frame width - 720
Frame height - 576
Data rate - 9100kbps
Total bitrate - 9356kbps
Frame rate - 25 frames/second
Bit rate - 256kbps
Channels - 2(stereo)
Audio sample rate - 48 kHz
Size - 1.90 GB

Small video:
Length - 00:03:49
Frame width - 352
Frame height - 240
Data rate - 1150kbps
Total bitrate - 1374kbps
Frame rate - 29 frames/second
Bit rate - 224kbps
Channels - 2(stereo)
Audio sample rate - 44 kHz
Size - 38.1 MB

Do you have any idea on the limitation of the video supported by Xibo?
Thanks a lot!

Regards,
Jonathan.

--
You received this question notification because you are a member of Xibo
Developers, which is an answer contact for Xibo.

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Jonathan Chan (chanchiwah) said :
#15

Hi Alex,

I'm sure it's running on Windows Media Player, since I haven't installed Media Player Classic.

Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Alex Harrington (alexharrington) said :
#16

I'm not aware of any limitations then.

Can you upload the video somewhere so we can try it on a box here?

Alex

Jonathan Chan <email address hidden> wrote:

Question #106975 on Xibo changed:
https://answers.launchpad.net/xibo/+question/106975

Jonathan Chan posted a new comment:
Hi Alex,

I'm sure it's running on Windows Media Player, since I haven't installed
Media Player Classic.

Thanks a lot!

Regards,
Jonathan.

--
You received this question notification because you are a member of Xibo
Developers, which is an answer contact for Xibo.

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Jonathan Chan (chanchiwah) said :
#17

Hi Alex,

I suspect it's because of the value of "Bit rate" & "Audio sample rate", since I've tried to convert the small video to 256kbps Bit rate & 48kHz sample rate, the Xibo player doesn't play any sound. But, I'm not sure is it the root cause since I'm afraid I did anything wrong during the conversion, would you help to verify? Thanks a lot!

Not OK:
Bit rate - 256kbps
Audio sample rate - 48 kHz

OK::
Bit rate - 224kbps
Audio sample rate - 44 kHz

BTW, I found the Xibo player can't download the whole piece of the video, it just can download around 2MB, actually the player can download 2GB before, I don't know what I did make it can't perform correctly. Do you have any idea?

Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Alex Harrington (alexharrington) said :
#18

Its because you've not replaced the right file in the server library and
then reset the checksum correctly.

The server is still seeing a 2mb file for that media item.

I don't understand why your video is so large if it's only 40 minutes
long.

I'm afraid I can't confirm what you ask as I don't have the video your
working with.

Alex

Jonathan Chan <email address hidden> wrote:

Question #106975 on Xibo changed:
https://answers.launchpad.net/xibo/+question/106975

Jonathan Chan posted a new comment:
Hi Alex,

I suspect it's because of the value of "Bit rate" & "Audio sample rate",
since I've tried to convert the small video to 256kbps Bit rate & 48kHz
sample rate, the Xibo player doesn't play any sound. But, I'm not sure
is it the root cause since I'm afraid I did anything wrong during the
conversion, would you help to verify? Thanks a lot!

Not OK:
Bit rate - 256kbps
Audio sample rate - 48 kHz

OK::
Bit rate - 224kbps
Audio sample rate - 44 kHz

BTW, I found the Xibo player can't download the whole piece of the
video, it just can download around 2MB, actually the player can download
2GB before, I don't know what I did make it can't perform correctly. Do
you have any idea?

Thanks a lot!

Regards,
Jonathan.

--
You received this question notification because you are a member of Xibo
Developers, which is an answer contact for Xibo.

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Jonathan Chan (chanchiwah) said :
#19

Hi Alex,

The scenario should be the player download a certain amount mb of the video, it will stop automatically, the size of the download portion is random, no specific amount.

Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Jonathan Chan (chanchiwah) said :
#20

Hi Alex,

I found the size of the media in database is updated correctly. How do I know the checksum is correctly or not? Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Alex Harrington (alexharrington) said :
#21

The client downloads files in 512k chunks. It will take it some time to download 2gb.

If your prodding around the file there's the possibility that windows will lock it to thumbnail it or get its properties and prevent writing to the file.

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Alex Harrington (alexharrington) said :
#22

You need an application that can generate an md5 checksum of the file.

On Linux that would be md5sum. I don't know what the Linux equivalent would be.

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Jonathan Chan (chanchiwah) said :
#23

Hi Alex,

The problem is solved, but the sound volume of the video is too low. As you said, Xibo Client just embedded Windows Media Player, how can I adjust the volume of the video? Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Jonathan Chan (chanchiwah) said :
#24

Hi Alex,

The problem is solved, but the sound volume of the video is too low. As you said, Xibo Client just embedded Windows Media Player, how can I adjust the volume of the video? Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Alex Harrington (alexharrington) said :
#25

We don't provide any mechanism for controlling audio.

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Jonathan Chan (chanchiwah) said :
#26

Hi Alex,

Thanks for your time and advices.

Regards,
Jonathan.

Revision history for this message
Jonathan Chan (chanchiwah) said :
#27

Hi Alex,

After I've installed AC3 Filter on my machine, sound can be performed well. But I don't understand why I can play the video with sound in Windows Media Player directly, but Xibo needs extra codec installed in order to perform sound? Do you have any idea?

Thanks a lot!

Regards,
Jonathan.

Revision history for this message
Alex Harrington (alexharrington) said :
#28

Jonathan

As I said before Xibo doesn't play videos. Windows Media Player does. We have nothing to do with it.

Perhaps Windows Media Player run as a standard application can download a missing codec on the fly where as Windows Media Player embedded via the .net Framework can't.

The fact remains you need to have the appropriate codecs installed for the videos to play. As you're saying the sound plays with the AC3 codec installed then it seems likely your video uses that codec to encode sound so it follows it won't play back the sound without that codec available.

Alex

Can you help with this problem?

Provide an answer of your own, or ask Jonathan Chan for more information if necessary.

To post a message you must log in.