×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    May 2003
    Location
    Nice, France
    Posts
    123

    Mixing Audio and Video

    Hi all.

    I just tried to mix Audio and Video (to make them play together at the same time), and noticed that it was not possible.

    Using CVideoPlayerUtility and CMdaAudioPlayerUtility leads to CMdaAudioPlayerUtility stopping as soon as the video starts with a KErrDied error - even if both completed their initialization without error.

    Well, nothing really surprising there, even if the Video is NOT containing any Audio data - but is there a way to achieve that using standard Symbian? Or do I have to "manually" insert the Audio in the Video and play only the Video?

    Video is a mp4 file, and audio a .wav one. All that on Series60 2nd Edition phone.

    Thanks for your attention,
    Daniel

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Mixing Audio and Video

    have you tried to start playing video first, and then construting the audio player with higher priority and trying to play the sound. Was wondering if it would kill the video's audio player, thou it could also make the whole video playing to stop. Anyway, just one idea to try on.

    yucca

  3. #3
    Regular Contributor
    Join Date
    May 2003
    Location
    Nice, France
    Posts
    123

    Re: Mixing Audio and Video

    Quote Originally Posted by symbianyucca
    have you tried to start playing video first, and then construting the audio player with higher priority and trying to play the sound. Was wondering if it would kill the video's audio player, thou it could also make the whole video playing to stop. Anyway, just one idea to try on.

    yucca
    The whole Video stops, with a KErrSessionClosed error...

    So, if both have the same priority, the order of start has no importance: the Audio is not played, only the Video.
    And if the Audio has an higher priority, the Video is not played

    It was worth trying... Thanks.

    Daniel

  4. #4
    Registered User
    Join Date
    Aug 2004
    Location
    Hyderabad,India
    Posts
    808

    Re: Mixing Audio and Video

    Hi,

    Today I faced the same problem. when I try to play video after audio play started i got the error KErrSessionClosed. Actually my video file doesn't contain any audio and I need to play video only after audio is started

    the problem i am facing is with NOKIA 6630.

    the same concept working well with NOKIA 6600.

    Any clues why this is happening with NOKIA 6630 only.

    Regards,
    SSS

  5. #5
    Regular Contributor
    Join Date
    May 2003
    Location
    Nice, France
    Posts
    123

    Re: Mixing Audio and Video

    Well...

    In fact I was using a video file which HAD a sound track - an empty one, but it was present. That was the reason of my problems!

    Now I am able to play both Video and Audio files simultaneously - even if I am faced to synchronization problems...

    Daniel

  6. #6
    Registered User
    Join Date
    Aug 2004
    Location
    Hyderabad,India
    Posts
    808

    Re: Mixing Audio and Video

    Hi Daniel,

    Thanx for your reply.
    Can you share how you are doing it.

    Regards,
    Sudhakar

  7. #7
    Regular Contributor
    Join Date
    May 2003
    Location
    Nice, France
    Posts
    123

    Re: Mixing Audio and Video

    The principle is relatively simple:

    - Create CVideoPlayerUtility and CMdaAudioPlayerUtility objects
    - Call CVideoPlayerUtility::OpenFileL and CMdaAudioPlayerUtility::NewFilePlayerL
    - On CVideoPlayerUtility::MvpuoOpenComplete, call CVideoPlayerUtility::Prepare
    - On CVideoPlayerUtility::MvpuoPrepareComplete, WAIT FOR AUDIO TO BE COMPLETED TOO
    - On CMdaAudioPlayerUtility::MapcInitComplete, WAIT FOR VIDEO TO BE COMPLETED TOO

    When both are completed, I call CMdaAudioPlayerUtility::Play and CVideoPlayerUtility::Play, and I start a CHeartbeat to achieve synchronization

    On CHeartbeat::Beat, I do the synchronization, using CVideoPlayerUtility::PositionL/SetPositionL and CMdaAudioPlayerUtility::GetPosition/SetPosition

    All that seems well, except that I'm not satisfied by the synchronization...

    Note that if the video contains an audio track, this will not work...

    Daniel

  8. #8
    Registered User
    Join Date
    Aug 2004
    Location
    Hyderabad,India
    Posts
    808

    Re: Mixing Audio and Video

    Thank you very much.

    Sudhakar

Similar Threads

  1. Video and Audio not in synch on 6820
    By larry_ger in forum Streaming and Video
    Replies: 3
    Last Post: 2004-08-09, 07:58
  2. The big frustration on Nokia 6230 about audio and video!!!
    By spawn6578 in forum General Development Questions
    Replies: 0
    Last Post: 2004-07-11, 13:09
  3. The big frustration on Nokia 6230 about audio and video!!!
    By spawn6578 in forum Streaming and Video
    Replies: 0
    Last Post: 2004-07-11, 13:08
  4. Audio & Video media in MMS
    By ajju747 in forum General Messaging
    Replies: 3
    Last Post: 2003-10-14, 10:51
  5. Audio in VIDEO PLAYING in midlet
    By rossottom in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-05-13, 17:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •