Wowza Community

Issue with "Record all incoming streams" option

I’m currently using the “Record all incoming streams” option that is avaible for our live application. It works pretty well by generating a mp4 file that’s got the name of the stream. I’ve got an issue with this mp4 file though… When I try to read it with vlc, the player reports the file length as 493h+ although it should only be a few minutes. When I ffmpeg -i this file, I’ve got:

Seems stream 0 codec frame rate differs from container frame rate: 60.00 (60/1) -> 1000.00 (1000/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'monarch.mp4':
  Metadata:
    major_brand     : f4v
    minor_version   : 0
    compatible_brands: isommp42m4v
    creation_time   : 2015-02-27 11:09:50
  Duration: 493:58:17.07, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: h264 (Main), yuv420p, 640x360 [PAR 1:1 DAR 16:9], -0.01 fps, 1k tbr, 90k tbn, 60 tbc
    Metadata:
      creation_time   : 2015-02-27 11:09:50
    Stream #0.1(eng): Audio: mp3, 22050 Hz, mono, s16, 0 kb/s
    Metadata:
      creation_time   : 2015-02-27 11:09:50
    Stream #0.2(eng): Data: amf0 / 0x30666D61
    Metadata:
      creation_time   : 2015-02-27 11:09:50
At least one output file must be specified

Any idea why this file is corrupted? Cheers!

mediainfo of the file:

General
Complete name                            : monarch.mp4
Format                                   : MPEG-4
Format profile                           : Adobe Flash
Codec ID                                 : f4v
File size                                : 118 KiB
Duration                                 : 493h 58mn
Overall bit rate mode                    : Constant
Overall bit rate                         : 0
Encoded date                             : UTC 2015-02-27 11:09:50
Tagged date                              : UTC 2015-02-27 11:09:50
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 3 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 484h 42mn
Bit rate mode                            : Constant
Bit rate                                 : 0
Nominal bit rate                         : 50.0 Kbps
Width                                    : 640 pixels
Height                                   : 360 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 0.000 fps
Original frame rate                      : 30.000 fps
Minimum frame rate                       : 0.000 fps
Maximum frame rate                       : 30.303 fps
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.007
Stream size                              : 55.4 KiB (47%)
Title                                    : WowzaStreamingEngine
Language                                 : English
Encoded date                             : UTC 2015-02-27 11:09:50
Tagged date                              : UTC 2015-02-27 11:09:50
Material_Duration                        : 26949560
Material_StreamSize                      : 56688
Material_FrameCount                      : 261
Audio
ID                                       : 2
Format                                   : MPEG Audio
Format version                           : Version 2
Format profile                           : Layer 3
Codec ID                                 : .mp3
Duration                                 : 493h 58mn
Bit rate mode                            : Constant
Bit rate                                 : 48.0 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 22.05 KHz
Compression mode                         : Lossy
Stream size                              : 53.3 KiB (45%)
Title                                    : WowzaStreamingEngine
Language                                 : English
Encoded date                             : UTC 2015-02-27 11:09:50
Tagged date                              : UTC 2015-02-27 11:09:50
Material_Duration                        : 12588310
Material_StreamSize                      : 54600

Hi,

It does look like this recording got corrupted.

I suspect that the MOOV atom was not written to the file correctly. As the MOOV atom is added at the end of the recording, it is possible that something happened to the recording process so it failed and the MOOV atom wasn’t properly written.

You can try using FFMPEG and re-encode the file to create the moov atom. Perhaps this might work:

ffmpeg -i input.mp4 -c:v copy -c:a copy output.mp4

Zoran