incorrect mime subtypes. ffmpeg problem?

Help
Oscar1
2011-03-08
2013-05-30
  • Oscar1
    Oscar1
    2011-03-08

    When I try to play a movie on my upnp device, the mime type show as "video/mp4;rate=44100;channels=1

    Mono sound is not supported on the device, but the video actually has stereo sound. Running mediatomb in debug and adding the media gives this log:

    2011-03-08 22:43:37   DEBUG: [../src/metadata/ffmpeg_handler.cc:163] addFfmpegResourceFields(): Added duration: 01:51:09.0
    2011-03-08 22:43:37   DEBUG: [../src/metadata/ffmpeg_handler.cc:171] addFfmpegResourceFields(): Added overall bitrate: 1760 kb/s
    2011-03-08 22:43:37   DEBUG: [../src/metadata/ffmpeg_handler.cc:193] addFfmpegResourceFields(): FourCC: 44495658 = XVID
    2011-03-08 22:43:37   DEBUG: [../src/metadata/ffmpeg_handler.cc:205] addFfmpegResourceFields(): Added resolution: 720x306 pixel
    2011-03-08 22:43:37   DEBUG: [../src/metadata/ffmpeg_handler.cc:222] addFfmpegResourceFields(): Added sample frequency: 44100 Hz
    2011-03-08 22:43:37   DEBUG: [../src/metadata/ffmpeg_handler.cc:232] addFfmpegResourceFields(): Added number of audio channels: 1
    

    It seems like ffmpeg thinks the file is mono???

    The file is actually a avi that I transcode to mp4. (transcoding never starts because device doesnt accept mime type)
    There seem to be two issues:
    - Why is ffmpeg reporting mono audio when the avi is stereo?
    - Why does mediatomb add rate=44100;channels=1 to the transcoded mime type? It is not sure that the transcoded video will have same audio format as the original video.

    I use this mime type in the transcoding, and nothing else:
    <mimetype>video/mp4</mimetype>

     
  • Oscar1
    Oscar1
    2011-03-08

    System details:
    I'm using MediaTomb version 0.12.1 on Ubuntu 10.10 64-bit.

     
  • Oscar1
    Oscar1
    2011-03-09

    I have now registred these issues as bug ID 3204443 and 3204472.