anchor.diff:  
   setup_() ->
     lager:start(),
  +  media:start(),
     file:make_dir(?PATH("tmp")).
   
   cleanup_(_) ->
  
positive.code:   ?setup(
      [
        {timeout, ?TIMEOUT, [av_rec_to_hls_t_()]},
        {timeout, ?TIMEOUT, [screen_rec_to_hls_t_()]}
      ]
    ).
  
  
negative.code:     ?assertEqual(1, length(Stat#job_stats.result_path))
    end.
  
  av_rec_to_hls2_t_() ->
    fun() ->
      Res = recording_to_hls2:run(#file{tmp_path = ?PATH("stream_1.flv"), name = "stream_1", dir = ?PATH("")}),
      ?assertMatch({ok,#job_stats{}}, Res),
      {_, Stat} = Res,
      ?assertEqual(1, length(Stat#job_stats.result_path))
    end.
  
  screen_rec_to_hls_t_() ->
    fun() ->
      Res = recording_to_hls:run(#file{tmp_path = ?PATH("stream_2.flv"), name = "stream_1", dir = ?PATH("")},[{stream_type,<<"share">>}]),
  