def create_wav_wrapped_mpeg(mpeg_path, result_path, options={})
      options.to_options!

      start_at = get_datetime_for_option(options[:start_at])
      end_at = get_datetime_for_option(options[:end_at])

      wav_wrapped_mpeg = NuWav::WaveFile.from_mpeg(mpeg_path)
      cart = wav_wrapped_mpeg.chunks[:cart]
      cart.title = options[:title] || File.basename(mpeg_path)
      cart.artist = options[:artist]
      cart.cut_id = options[:cut_id]
      cart.producer_app_id = options[:producer_app_id] if options[:producer_app_id]
      cart.start_date = start_at.strftime(PRSS_DATE_FORMAT)
      cart.start_time = start_at.strftime(AES46_2002_TIME_FORMAT)
      cart.end_date = end_at.strftime(PRSS_DATE_FORMAT)
      cart.end_time = end_at.strftime(AES46_2002_TIME_FORMAT)

      # pass in the options used by NuWav -
      # :no_pad_byte - when true, will not add the pad byte to the data chunk
      nu_wav_options = options.slice(:no_pad_byte)
      wav_wrapped_mpeg.to_file(result_path, nu_wav_options)

      check_local_file(result_path)

      return true
    end
def create_wav_wrapped_mpeg(mpeg_path, result_path, options={})
      options.to_options!

      start_at = get_datetime_for_option(options[:start_at])
      end_at = get_datetime_for_option(options[:end_at])

      wav_wrapped_mpeg = NuWav::WaveFile.from_mpeg(mpeg_path)
      cart = wav_wrapped_mpeg.chunks[:cart]
      cart.title = options[:title] || File.basename(mpeg_path)
      cart.artist = options[:artist]
      cart.cut_id = options[:cut_id]
      cart.producer_app_id = options[:producer_app_id] if options[:producer_app_id]
      cart.start_date = start_at.strftime(PRSS_DATE_FORMAT)
      cart.start_time = start_at.strftime(AES46_2002_TIME_FORMAT)
      cart.end_date = end_at.strftime(PRSS_DATE_FORMAT)
      cart.end_time = end_at.strftime(AES46_2002_TIME_FORMAT)

      # pass in the options used by NuWav -
      # :no_pad_byte - when true, will not add the pad byte to the data chunk
      nu_wav_options = options.slice(:no_pad_byte)
      wav_wrapped_mpeg.to_file(result_path, nu_wav_options)

      check_local_file(result_path)

      return true
    end
need start_at, ends_on