I was experimenting during last week with the JMF and end up using Fobs4JMF. But I was stuck with a problem: I was trying to play some music video and I end up with no sound. I've got a warning in console saying that sound can't be played:
BTW it's not an exception, just a note Fobs4JMF writes to console. Sound works fine using jffmpeg-1.1.0 thou, so I understand that there's no problem with file itself. Thast was drive me crazy. Fobs4JMF gives you a much more fast and quality support for video, but with no sound - that sucks. My second step was trying to play this music video using Fobs4JMF Studio and… miracle! It works fine having sound!!! After some more time I've got the reason why it's happening. The main trick is that Fobs4JMF Studio somehow force to play all the video using FFMpeg library. If you look up in the Media Properties while video is playing you'll find that it's content type determined as video.ffmpeg and it plays using ffmpeg_video encoding for video stream and FFMPEG_AUDIO encoding for audio stream. If I play it with my application it is written that content type is video.x_msvideo and encodings are:
XVID for video
mpeglayer3 for audio
Then I've look into the content types list and found out that the content type of video.ffmpeg is mapped to .ffv extension. I've just rename my file using this extension and my application plays this video perfectly having sound! While playing it is used ffmpeg_video and FFMPEG_AUDIO libraries as expected. So that's what I've found so far.
Does anybody knows how to force application to use this libraries or to make it "believe" that it works with vide.ffmpeg content type media?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I was experimenting during last week with the JMF and end up using Fobs4JMF. But I was stuck with a problem: I was trying to play some music video and I end up with no sound. I've got a warning in console saying that sound can't be played:
Unable to handle format: mpeglayer3, 44100.0 Hz, 0-bit, Stereo, Unsigned, 40000.0 frame rate, FrameSize=8 bits
BTW it's not an exception, just a note Fobs4JMF writes to console. Sound works fine using jffmpeg-1.1.0 thou, so I understand that there's no problem with file itself. Thast was drive me crazy. Fobs4JMF gives you a much more fast and quality support for video, but with no sound - that sucks. My second step was trying to play this music video using Fobs4JMF Studio and… miracle! It works fine having sound!!! After some more time I've got the reason why it's happening. The main trick is that Fobs4JMF Studio somehow force to play all the video using FFMpeg library. If you look up in the Media Properties while video is playing you'll find that it's content type determined as video.ffmpeg and it plays using ffmpeg_video encoding for video stream and FFMPEG_AUDIO encoding for audio stream. If I play it with my application it is written that content type is video.x_msvideo and encodings are:
XVID for video
mpeglayer3 for audio
Then I've look into the content types list and found out that the content type of video.ffmpeg is mapped to .ffv extension. I've just rename my file using this extension and my application plays this video perfectly having sound! While playing it is used ffmpeg_video and FFMPEG_AUDIO libraries as expected. So that's what I've found so far.
Does anybody knows how to force application to use this libraries or to make it "believe" that it works with vide.ffmpeg content type media?
Thanks!