Log in

View Full Version : No audio with WMP for this file.


Staryon
20th March 2008, 20:40
Hi all,

Could anybody help me with this?

I can play this H.264 file with Videolan or The KMPlayer just by using their internal decoders.

However, in order to play it with Windows Media Player I installed ffdshow and I can play the file, but with no sound. I even tried installing the K-Lite Codec Pack but still no sound.

I also checked what audio codec is using and apparently is MPEG-2 Audio Layer 2, so I don't know why I cannot hear anything.

Here is the file:
http://luisespinosa.com/temp/a.264


Thanks


:helpful:

setarip_old
20th March 2008, 21:26
Hi!

I played your sample under VLC ("Videolan") - and, although an audiotrack appears to have been created, it seems to be silent.

Are you saying that when you play it under VLC, you hear audio?

nm
20th March 2008, 22:02
I hear audio with VLC and MPlayer, but the volume level is quite low. MPlayer also seems to require changing the extension to something else than .264 and specifying a framerate, like -fps 30.

The file seems to be MPEG-TS, so maybe changing the extension to .ts would help. ".264" is commonly used for H.264 elementary streams and they don't contain audio.

Staryon
20th March 2008, 23:02
Hi!

I played your sample under VLC ("Videolan") - and, although an audiotrack appears to have been created, it seems to be silent.

Are you saying that when you play it under VLC, you hear audio?

Yes, with Videolan I can hear audio.

This file has been generated with a Hikvision capture board and the files are created with that .264 extension. I don't know why.

Still no luck with Windows Media Player...

setarip_old
21st March 2008, 01:37
In VLC:

1) From "File" dropdown menu, select "Open File" - and browse to your file

2) Put a checkmark next to "Stream/Save"

3) Click on the "Settings" radiobutton

4) Select "MPEG-1 for "Encapsulation method"

5) Put a checkmarknext to "Video codec" and select "mp1v"
(DO NOT put a checkmark next to "Audio")

6) Put a checkmark next to "File" and enter a new filename

7) Click on "OK", click on "OK"

You will now have an MPEG-1 file with audio, playable in all players - extremely low though the volume is ;>}

Staryon
21st March 2008, 10:53
Thanks a lot, setarip_old!

That really worked.

However let me ask you something. Why do you think that happened? Are they doing something wrong when they create that file?

:thanks:

bond
21st March 2008, 11:44
.264 is the extension for raw h.264 streams not being inside a container (and therefore they also cant contain any audio stream)

your file is not such a stream, therefore the extension is wrong. instead the file you have is a mpeg-2 transport stream and its correct extension is .ts

try simply changing the extension and i assume it will play fine everywhere (that handles ts, mp2 and h264)

and tell those Hikvision guys that their stuff should output files with correct extensions

Staryon
21st March 2008, 15:20
bond, thanks for your reply. Unfortunately changing the extension doesn't resolve the problem and I cannot play it with WMP unless I convert it following setarip_old's steps.

setarip_old
21st March 2008, 18:26
Thanks a lot, setarip_old!
That really worked.As always, my pleasure ;>}