Results 1 to 4 of 4

Thread: Out of sync VOD when streaming with wowza

  1. #1
    Join Date
    Mar 2016
    Posts
    6

    Default Out of sync VOD when streaming with wowza

    Hi,

    I recorded a stream using wowza, playback works fine when streaming and using HLS.
    This is the detail of the file.

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'streamrecorded_160p.mp4':
      Metadata:
        major_brand     : f4v 
        minor_version   : 0
        compatible_brands: isommp42m4v 
        creation_time   : 2016-03-26 11:23:54
      Duration: 01:05:49.20, start: 0.000000, bitrate: 254 kb/s
        Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 284x160 [SAR 1:1 DAR 71:40], 158 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
        Metadata:
          creation_time   : 2016-03-26 11:23:54
          handler_name    : WowzaStreamingEngine
          encoder         : WowzaStreamingEngine
        Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
        Metadata:
          creation_time   : 2016-03-26 11:23:54
          handler_name    : WowzaStreamingEngine
    Then I wanted to cut 22s out of this file, so I ran the following command:
    ffmpeg -i streamrecorded_160p.mp4 -ss 00:00:22.0 -c copy tmp.mp4
    Now the detail of tmp.mp4:

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tmp.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        encoder         : Lavf57.28.102
      Duration: 01:05:27.15, start: 0.016000, bitrate: 256 kb/s
        Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 284x160 [SAR 1:1 DAR 71:40], 158 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
        Metadata:
          handler_name    : VideoHandler
        Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
        Metadata:
          handler_name    : SoundHandler
    This is working fine most of the time, however when I play this file using wowza, the audio is out of sync.
    The file tmp.mp4 is playing correctly when using a standard player.

    I suspect the problem is not with wowza but with the encoding of the file.
    What could be wrong ?

  2. #2

    Default

    I have a similar problem and I am interested if it is related to yours.

    Do you have the `ffprobe` utility? If so, can you provide the "show_streams" output for both streamrecorded_160p.mp4 and tmp.mp4?

    ffprobe -show_streams file.mp4
    I am specifically interested in your audio and video streams duration and start_time values.

  3. #3
    Join Date
    Mar 2016
    Posts
    6

    Default

    Output using 'ffprobe':

    streamrecorded_160p.mp4
    ffprobe version N-53555-g6b7ce0e-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2007-2016 the FFmpeg developers
      built with gcc 5.3.1 (Debian 5.3.1-11) 20160307
      configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx --cc=gcc
      libavutil      55. 19.100 / 55. 19.100
      libavcodec     57. 28.103 / 57. 28.103
      libavformat    57. 28.102 / 57. 28.102
      libavdevice    57.  0.101 / 57.  0.101
      libavfilter     6. 39.102 /  6. 39.102
      libswscale      4.  0.100 /  4.  0.100
      libswresample   2.  0.101 /  2.  0.101
      libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'streamrecorded_160p.mp4':
      Metadata:
        major_brand     : f4v 
        minor_version   : 0
        compatible_brands: isommp42m4v 
        creation_time   : 2016-03-26 11:23:54
      Duration: 01:05:49.20, start: 0.000000, bitrate: 254 kb/s
        Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 284x160 [SAR 1:1 DAR 71:40], 158 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
        Metadata:
          creation_time   : 2016-03-26 11:23:54
          handler_name    : WowzaStreamingEngine
          encoder         : WowzaStreamingEngine
        Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
        Metadata:
          creation_time   : 2016-03-26 11:23:54
          handler_name    : WowzaStreamingEngine
    [STREAM]
    index=0
    codec_name=h264
    codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    profile=Baseline
    codec_type=video
    codec_time_base=1/50
    codec_tag_string=avc1
    codec_tag=0x31637661
    width=284
    height=160
    coded_width=288
    coded_height=160
    has_b_frames=0
    sample_aspect_ratio=1:1
    display_aspect_ratio=71:40
    pix_fmt=yuv420p
    level=21
    color_range=tv
    color_space=unknown
    color_transfer=unknown
    color_primaries=unknown
    chroma_location=left
    timecode=N/A
    refs=3
    is_avc=true
    nal_length_size=4
    id=N/A
    r_frame_rate=25/1
    avg_frame_rate=25/1
    time_base=1/90000
    start_pts=0
    start_time=0.000000
    duration_ts=355428000
    duration=3949.200000
    bit_rate=158668
    max_bit_rate=N/A
    bits_per_raw_sample=8
    nb_frames=98730
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=1
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    TAG:creation_time=2016-03-26 11:23:54
    TAG:language=eng
    TAG:handler_name=WowzaStreamingEngine
    TAG:encoder=WowzaStreamingEngine
    [/STREAM]
    [STREAM]
    index=1
    codec_name=aac
    codec_long_name=AAC (Advanced Audio Coding)
    profile=LC
    codec_type=audio
    codec_time_base=1/48000
    codec_tag_string=mp4a
    codec_tag=0x6134706d
    sample_fmt=fltp
    sample_rate=48000
    channels=2
    channel_layout=stereo
    bits_per_sample=0
    id=N/A
    r_frame_rate=0/0
    avg_frame_rate=0/0
    time_base=1/90000
    start_pts=0
    start_time=0.000000
    duration_ts=355424640
    duration=3949.162667
    bit_rate=93468
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=185117
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=1
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    TAG:creation_time=2016-03-26 11:23:54
    TAG:language=eng
    TAG:handler_name=WowzaStreamingEngine
    [/STREAM]
    tmp.mp4
    ffprobe version N-53555-g6b7ce0e-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2007-2016 the FFmpeg developers
      built with gcc 5.3.1 (Debian 5.3.1-11) 20160307
      configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx --cc=gcc
      libavutil      55. 19.100 / 55. 19.100
      libavcodec     57. 28.103 / 57. 28.103
      libavformat    57. 28.102 / 57. 28.102
      libavdevice    57.  0.101 / 57.  0.101
      libavfilter     6. 39.102 /  6. 39.102
      libswscale      4.  0.100 /  4.  0.100
      libswresample   2.  0.101 /  2.  0.101
      libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tmp.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        encoder         : Lavf57.28.102
      Duration: 01:05:27.15, start: 0.016000, bitrate: 256 kb/s
        Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 284x160 [SAR 1:1 DAR 71:40], 158 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
        Metadata:
          handler_name    : VideoHandler
        Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
        Metadata:
          handler_name    : SoundHandler
    [STREAM]
    index=0
    codec_name=h264
    codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    profile=Baseline
    codec_type=video
    codec_time_base=1/50
    codec_tag_string=avc1
    codec_tag=0x31637661
    width=284
    height=160
    coded_width=288
    coded_height=160
    has_b_frames=0
    sample_aspect_ratio=1:1
    display_aspect_ratio=71:40
    pix_fmt=yuv420p
    level=21
    color_range=tv
    color_space=unknown
    color_transfer=unknown
    color_primaries=unknown
    chroma_location=left
    timecode=N/A
    refs=3
    is_avc=true
    nal_length_size=4
    id=N/A
    r_frame_rate=25/1
    avg_frame_rate=25/1
    time_base=1/90000
    start_pts=72000
    start_time=0.800000
    duration_ts=353376000
    duration=3926.400000
    bit_rate=158638
    max_bit_rate=N/A
    bits_per_raw_sample=8
    nb_frames=98160
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=1
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    TAG:language=eng
    TAG:handler_name=VideoHandler
    [/STREAM]
    [STREAM]
    index=1
    codec_name=aac
    codec_long_name=AAC (Advanced Audio Coding)
    profile=LC
    codec_type=audio
    codec_time_base=1/48000
    codec_tag_string=mp4a
    codec_tag=0x6134706d
    sample_fmt=fltp
    sample_rate=48000
    channels=2
    channel_layout=stereo
    bits_per_sample=0
    id=N/A
    r_frame_rate=0/0
    avg_frame_rate=0/0
    time_base=1/48000
    start_pts=768
    start_time=0.016000
    duration_ts=188503040
    duration=3927.146667
    bit_rate=93468
    max_bit_rate=93468
    bits_per_raw_sample=N/A
    nb_frames=184085
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=1
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    TAG:language=eng
    TAG:handler_name=SoundHandler
    [/STREAM]

  4. #4

    Default

    Hi patrice,

    Unfortunately from a Wowza Support perspective we can't offer direct support for ffmpeg and how it modifies files created by Wowza Streaming Engine. You may want to ask on an ffmpeg forum in this case.


    Paul

Similar Threads

  1. Audio out of sync in live recordings after upgarding to Wowza Streaming Engine
    By grumpyale in forum Live Streaming and Encoders
    Replies: 3
    Last Post: 04-15-2014, 11:27 AM
  2. Wowza Streaming out of sync.. VLC in sync
    By WebDev4Life in forum Media Players and Devices Discussion
    Replies: 4
    Last Post: 07-25-2013, 06:40 PM

Posting Permissions

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