読者です 読者をやめる 読者になる 読者になる

Hack the World!

プログラミングや,ネットワークに関する話題を取り扱っています.知識をつけて,優雅にお仕事するのを目指しています.

How do I setup VOD , and how to set erlyvideo.conf

Maybe cause Encoding

======================================


debug 2010-10-29 03:40:19.441203 [media] mp4:354 {esds,aac,21,undefined,0,0,0,<<18,144,0>>}
debug 2010-10-29 03:40:19.447870 [media] mp4:662 {max_dts,119936.0,3749}
debug 2010-10-29 03:40:19.448188 [media] mp4:243 {hdlr,video,<<"vide">>}
debug 2010-10-29 03:40:19.448442 [media] mp4:288 {vmhd,1,0,0,0,0}
debug 2010-10-29 03:40:19.451332 [media] mp4:662 {max_dts,119986.65331998665,1799}
debug 2010-10-29 03:40:19.451729 [media] mp4:270 {hdlr,<<"sdsm">>,<<"sdsm">>}
debug 2010-10-29 03:40:19.451966 [media] mp4:161 {"Unknown atom",nmhd}
debug 2010-10-29 03:40:19.452154 [media] mp4:161 {"Unknown atom",mp4s}
debug 2010-10-29 03:40:19.452340 [media] mp4:161 {"Unknown atom",tref}
debug 2010-10-29 03:40:19.452525 [media] mp4:662 {max_dts,0.0,1}
debug 2010-10-29 03:40:19.452703 [media] mp4:565 {"Unknown format",undefined}
debug 2010-10-29 03:40:19.452892 [media] mp4:270 {hdlr,<<"odsm">>,<<"odsm">>}
debug 2010-10-29 03:40:19.453083 [media] mp4:161 {"Unknown atom",nmhd}
debug 2010-10-29 03:40:19.453277 [media] mp4:161 {"Unknown atom",mp4s}
debug 2010-10-29 03:40:19.453461 [media] mp4:161 {"Unknown atom",tref}
debug 2010-10-29 03:40:19.453649 [media] mp4:662 {max_dts,0.0,1}
debug 2010-10-29 03:40:19.453829 [media] mp4:565 {"Unknown format",undefined}
debug 2010-10-29 03:40:19.454055 [media] mp4_reader:241 {"Opened mp4 file with following video tracks:",
[undefined],
"and audio tracks",
["`bd"],
"seconds",119986.65331998665}
debug 2010-10-29 03:40:19.461972 [media] mp4_reader:232 {"Time to parse moov and build index",17,8,
119986.65331998665}
debug 2010-10-29 03:40:19.462234 [main] ems_media:351 {"Started",file_media,
[{host,default},
{name,<<"video.mp4">>},
{stream_id,1},
{type,file},
{url,"/var/lib/erlyvideo/movies/video.mp4"}]}
debug 2010-10-29 03:40:19.462547 [main] media_provider:260 {"Registering",<<"video.mp4">>,<0.161.0>}
debug 2010-10-29 03:40:19.462745 [main] ems_event:283 {ems_event,
{erlyvideo_event,stream_created,default,undefined,
undefined,undefined,<0.161.0>,<<"video.mp4">>,
[{host,default},
{name,<<"video.mp4">>},
{stream_id,1},
{type,file},
{url,"/var/lib/erlyvideo/movies/video.mp4"}],
undefined}}
info 2010-10-29 03:40:19.463774 PLAY 192.168.1.52 5 1288291216412113 video.mp4 1
debug 2010-10-29 03:40:19.464035 [main] ems_event:283 {ems_event,
{erlyvideo_event,user_play,default,<0.156.0>,
undefined,undefined,<0.161.0>,"video.mp4",
[{host,default},{name,"video.mp4"},{stream_id,1}],
undefined}}
info 2010-10-29 03:40:19.468003 DISCONNECT 192.168.1.52 default 5 1288291216412113 0 9
debug 2010-10-29 03:40:19.468360 [main] ems_event:283 {ems_event,
{erlyvideo_event,user_disconnected,default,
<0.156.0>,5,1288291216412113,undefined,undefined,
undefined,
[{host,default},
{recv_oct,0},
{sent_oct,9},
{addr,"192.168.1.52"},
{user_id,5},
{session_id,1288291216412113}]}}
error 2010-10-29 03:40:19.468635 ** State machine <0.156.0> terminating

Last message in was {video_frame,video,0.0,0.0,1,mpeg4,keyframe,

{undefined,undefined,undefined},
<<0,0,1,182,16,0,24,132,97,101,183,241,182,
223,198,219,127,27,109,252,109,183,241,
182,223,198,219,127,27,109,252,109,183,
241,182,223,198,219,127,27,109,252,109,
183,241,182,223,198,219,127,27,109,252,
109,183,241,182,223,198,219,127,27,109,
252,109,183,241,182,223,198,219,127,27,
109,252,109,183,241,182,223,198,219,127,
27,109,252,109,183,241,182,223,198,219,
127,27,109,252,109,183,241,182,223,198,
219,127,27,109,252,109,183,241,182,223,
198,219,127,27,109,252,109,183,241,182,
223,198,219,127,27,109,252,109,183,241,
182,223,198,219,127,27,109,252,109,183,
241,182,223,198,219,127,27,109,252,109,
183,241,182,223,198,219,127,27,109,252,
109,183,241,182,223,198,219,127,27,109,
252,109,183,241,182,223,198,219,127,27,
109,252,109,183,241,182,223,198,219,127,
27,109,252,109,183,241,182,223,198,219,
127,27,109,252,109,183,241,182,223,198,
219,127,27,109,252,109,183,241,182,223,
198,219,127,27,109,252,109,183,241,182,
223,198,219,127,27,109,252,109,183,241,
182,223,198,219,127,27,109,252,109,183,
241,182,223,198,219,127,27,109,252,109,
183,241,182,223,198,219,127,27,109,252,
109,183,241,182,223,198,219,127,27,109,
252,109,183,241,182,223,198,219,127,27,
109,252,109,183,241,182,223,198,219,127,
27,109,252,109,183,241,182,223,198,219,
127,27,109,252,109,183,241,182,223,198,
219,127,27,109,252,109,183,241,182,223,
198,219,127,27,109,252,109,183,241,182,
223,198,219,127,27,109,252,109,183,241,
182,223,198,219,127,27,109,252,109,183,
241,182,223,198,219,127,27,109,252,109,
183,241,182,223,198,219,127,27,109,252,
109,183,241,182,223,198,219,127,27,109,
252,109,183,241,182,223,198,219,127,27,
109,252,109,183,241,182,223,198,219,127,
27,109,252,109,183,241,182,223,198,219,
127,27,109,252,109,183,241,182,223,198,
219,127,27,109,252,109,183,241,182,223,
198,219,127,27,109,252,109,183,241,182,
223,198,219,127,27,109,252,109,183,241,
182,223,198,219,127,27,109,252,109,183,
241,182,223,198,219,127,27,109,252,109,
183,241,182,223,198,219,127,27,109,252,
109,183,241,182,223,198,219,127,27,109,
252,109,183,241,182,223,198,219,127,27,
109,252,109,183,241,182,223,198,219,127,
27,109,252,109,183,241,182,223,198,219,
127,27,109,252,109,183,241,182,223,198,
219,127,27,109,252,109,183,241,182,223,
198,219,127,27,109,252,109,183,241,182,
223,198,219,127,27,109,252,109,183,241,
182,223,198,219,127,27,109,252,109,183,
241,182,223,198,219,127,27,109,252,109,
183,241,182,223,198,219,127,27,109,252,
109,183,241,182,223,198,219,127,27,109,
252,109,183,241,182,223,198,219,127,27,
109,252,109,183,241,182,223,198,219,127,
27,109,252,109,183,241,182,223,198,219,
127,27,109,252,109,183,241,182,223,198,
219,127,27,109,252,109,183,241,182,223,
198,219,127,27,109,252,109,183,241,182,
223,198,219,127,27,109,252,109,183,241,
182,223,198,219,127,27,109,252,109,183,
241,182,223,198,219,127,27,109,252,109,
183,241,182,223,198,219,127,27,109,252,
109,183,241,182,223,198,219,127,27,109,
252,109,183,241,182,223,198,219,127,27,
109,252,109,183,241,182,223,198,219,127,
27,109,252,109,183,241,182,223,198,219,
127,27,109,252,109,183,241,182,223,198,
219,127,27,109,252,109,183,241,182,223,
198,219,127,27,109,252,109,183,241,182,
223,198,219,127,27,109,252,109,183,241,
182,223,198,219,127,27,109,252,109,183,
241,182,223,198,219,127,27,109,252,109,
183,241,182,223,198,219,127,27,109,252,
109,183,241,182,223,198,219,127,27,109,
251>>,
2}

When State == 'WAIT_FOR_DATA'

Data == {rtmp_session,default,<<"rtmp">>,<0.155.0>,"192.168.1.52",

57125,1288291216412113,3,undefined,5,
[{app,<<"rtmp">>},
{flashVer,<<"WIN 10,1,85,3">>},
{swfUrl,
<<"http://192.168.1.51:8082/player/bin-release/ErlyvideoPlayer.swf">>},
{tcUrl,<<"rtmp://192.168.1.51:1935/rtmp">>},
{fpad,false},
{capabilities,239.0},
{audioCodecs,3191.0},
{videoCodecs,252.0},
{videoFunction,1.0},
{pageUrl,
<<"http://192.168.1.51:8082/?file=video.mp4&autostart=true#">>},
{objectEncoding,3.0}],
[{rtmp_stream,<0.161.0>,1,0,true,false}],
0,9,,}

Reason for termination =

{function_clause,[{flv,video_codec,[mpeg4]},

{flv,encode_video_tag,1},
{rtmp_session,handle_frame,2},
{rtmp_session,handle_info,3},
{gen_fsm,handle_msg,7},
{proc_lib,init_p_do_apply,3}]}

debug 2010-10-29 03:40:19.471650 [main] ems_media:909 {"No clients, sending delayed graceful",600000,<0.161.0>,
<<"video.mp4">>}
debug 2010-10-29 03:40:19.472623 [main] ems_event:283 {ems_event,
{erlyvideo_event,user_stop,default,<0.156.0>,
undefined,undefined,<0.161.0>,undefined,
[{bytes_sent,50726}],
undefined}}
error 2010-10-29 03:40:19.473229 <0.156.0> {crash_report,[[{initial_call,{rtmp_session,init,['Argument__1']}},{pid,<0.156.0>},{registered_name,""},{error_info,{exit,{function_clause,[{flv,video_codec,[mpeg4]},{flv,encode_video_tag,1},{rtmp_session,handle_frame,2},{rtmp_session,handle_info,3},{gen_fsm,handle_msg,7},{proc_lib,init_p_do_apply,3}]},[{gen_fsm,terminate,7},{proc_lib,init_p_do_apply,3}]}},{ancestors,[rtmp_session_sup,ems_user_sessions_sup,ems_sup,<0.87.0>]},{messages,[{video_frame,audio,32.0,32.0,1,aac,frame,{stereo,bit16,rate44},<<33,28,19,229,193,10,43,1,8,128,130,96,17,171,174,156,107,189,109,51,223,0,0,
0,46,68,26,150,129,226,42,206,129,9,51,50,171,201,199,49,8,218,50,28,139,170,
16,240,239,84,35,27,151,19,235,61,96,159,56,227,68,251,247,84,39,200,183,196,
246,57,169,251,62,67,152,195,39,201,249,81,12,247,162,8,123,159,209,228,55,
55,200,90,158,79,3,205,9,246,238,190,79,138,128,134,255,155,16,219,227,136,
137,164,216,242,118,242,228,243,21,228,226,91,237,187,140,66,19,234,25,228,
244,92,52,159,23,216,18,60,185,150,70,63,113,2,17,199,154,90,135,208,100,78,
6,87,150,218,137,47,75,108,212,149,215,47,194,169,63,98,72,153,184,70,249,
229,16,176,40,26,0,0,32,0,146,128,56,0,1,253,41,155,104,128,78,95,16,83,55,
248,143,248,141,32,1,48,124,184,1,4,33,177,165,113,172,147,117,215,61,210,
228,65,169,104,30,34,153,193,235,22,14,171,238,194,8,130,66,164,122,213,228,
230,75,39,22,1,52,151,247,248,252,85,208,40,85,19,107,103,199,16,136,190,204,
238,9,76,100,212,137,108,25,48,191,41,37,186,249,159,176,211,61,166,204,24,
105,49,44,155,7,145,35,87,219,161,120,166,4,162,251>>,3},{video_frame,audio,64.0,64.0,1,aac,frame,{stereo,bit16,rate44},<<33,28,20,69,188,230,161,19,176,68,96,32,0,3,206,183,123,171,201,81,106,203,
206,124,185,47,145,114,17,28,23,79,221,163,32,17,91,176,137,154,9,56,247,56,
224,101,88,68,164,162,135,196,209,171,95,216,233,239,4,193,71,245,123,28,190,
57,9,220,146,52,133,115,198,143,17,219,28,77,89,147,165,109,149,227,195,90,
140,28,164,37,113,146,74,116,108,252,81,211,252,30,125,29,103,21,74,77,139,
246,163,161,14,162,162,118,140,118,152,181,66,219,156,158,81,87,65,82,124,
102,146,214,16,234,231,151,62,43,240,71,21,239,99,104,132,54,114,79,44,154,
221,148,61,125,75,204,106,74,70,147,167,215,217,75,70,224,69,195,171,20,40,
198,0,165,64,3,88,2,58,16,11,9,7,25,214,216,32,225,223,224,38,1,96,136,178,
177,140,96,65,40,28,68,16,0,3,171,201,87,75,144,136,224,158,221,45,18,44,15,
117,185,41,12,197,206,80,153,211,47,116,117,105,43,217,162,21,173,159,122,
216,186,115,90,245,74,92,10,250,171,78,212,173,128,211,95>>,4},{video_frame,video,66.7334000667334,66.7334000667334,1,mpeg4,frame,{undefined,undefined,undefined},<<0,0,1,182,80,250,88,64,255,255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,251>>,5},{video_frame,audio,96.0,96.0,1,aac,frame,{stereo,bit16,rate44},<<33,28,20,77,184,206,136,34,154,192,96,0,11,243,87,49,48,89,149,49,103,38,194,
178,4,35,240,100,156,42,30,20,233,128,34,104,114,186,201,68,194,203,242,125,
91,127,80,162,174,129,64,131,143,115,206,84,135,189,33,174,158,82,86,197,227,
85,209,6,252,220,137,21,34,218,98,190,181,110,59,132,98,207,181,120,244,246,
167,227,40,168,13,226,234,178,195,182,168,245,209,121,115,211,9,51,25,97,183,
162,33,238,201,171,71,145,149,110,188,41,245,176,86,20,35,28,254,206,1,220,
173,132,214,23,230,83,100,117,17,137,96,135,37,158,109,74,124,0,196,248,166,
73,63,21,242,61,160,210,222,105,120,144,150,124,138,166,173,26,11,161,56,217,
93,74,235,211,134,245,116,222,193,196,162,55,2,252,169,46,77,230,54,236,159,
137,214,68,53,186,152,46,211,4,76,20,82,4,34,10,130,0,0,125,86,117,201,72,88,
41,201,93,74,156,142,13,119,75,237,131,118,11,98,2,108,139,225,222,90,8,15,
24,155,221,91,242,8,77,118,114,242,40,5,26,116,160,1,66,34,79,95,41,17,155,
47,176,73,233>>,6},{video_frame,audio,128.0,128.0,1,aac,frame,{stereo,bit16,rate44},<<33,28,20,93,184,70,72,67,27,192,64,0,14,58,188,84,77,218,230,55,42,210,179,
119,224,29,99,231,179,232,200,70,61,13,52,129,226,17,105,137,57,100,159,67,
138,254,239,232,252,169,207,25,253,82,66,38,8,53,234,37,141,78,142,193,91,45,
18,173,90,5,217,71,7,107,235,41,129,6,2,245,96,252,223,227,28,230,234,134,
177,1,184,81,228,195,160,252,225,254,145,187,34,20,6,130,71,192,0,229,148,
178,200,245,41,55,91,85,71,220,121,92,222,70,241,25,139,200,99,124,201,98,
105,29,176,236,214,53,240,250,186,57,36,132,103,138,246,175,149,214,217,132,
217,179,232,198,215,135,214,89,41,231,174,142,95,65,169,173,195,160,24,171,
208,239,130,136,237,214,80,231,167,96,153,95,127,121,174,33,249,92,141,205,
247,31,244,184,44,18,203,1,178,1,80,139,101,9,0,130,128,24,140,10,34,4,128,1,
241,108,18,74,168,17,79,103,227,231,234,147,190,99,80,5,49,241,16,1,194,71,
225,57,71,45,136,68,18,176,4,12,60,214,217,25,160,236,223,130,60,231,194,237,
176,217,114,123,2,105,55,239,74,153,250>>,7},{video_frame,video,133.4668001334668,133.4668001334668,1,mpeg4,keyframe,{undefined,undefined,undefined},<<0,0,1,182,17,244,152,12,16,35,249,254,247,241,182,223,198,219,127,27,109,252,
109,191,240,219,123,127,31,109,252,109,183,241,182,223,194,113,217,255,141,
182,254,35,121,207,227,109,191,141,183,254,27,239,111,227,109,191,141,182,
254,27,125,123,127,35,11,113,247,254,35,110,63,124,109,183,241,182,223,198,
219,127,27,237,252,109,183,241,182,223,198,219,127,27,109,252,109,183,241,
182,223,198,219,127,31,109,252,109,183,241,182,223,198,219,127,59,231,91,127,
195,108,251,127,163,62,235,155,248,243,251,241,182,231,254,54,219,248,219,
111,241,190,70,223,198,219,127,27,109,252,109,183,240,126,185,238,255,141,
182,254,54,219,248,153,248,253,241,182,223,198,219,127,27,109,252,109,183,
243,183,72,155,127,199,219,127,27,109,252,109,183,243,190,230,225,31,195,206,
17,183,241,182,223,198,219,127,4,219,253,123,248,219,111,227,109,191,141,182,
255,55,155,248,251,111,227,109,191,134,252,123,127,23,62,250,255,205,182,255,
54,219,252,219,111,225,191,94,223,198,219,127,27,109,252,109,183,240,219,115,
127,27,109,252,109,183,241,182,223,198,219,127,27,109,252,109,183,241,182,
223,198,219,127,27,109,252,109,183,241,182,223,198,219,127,27,109,252,109,
183,241,182,223,198,219,127,27,109,252,109,183,241,182,223,198,219,127,27,
109,252,109,183,241,91,109,255,27,109,252,109,183,241,182,223,198,219,127,59,
116,137,243,63,27,109,252,109,183,241,182,223,198,219,127,27,109,252,109,183,
241,182,223,198,219,127,27,109,252,109,183,241,182,223,198,219,127,27,109,
252,109,183,242,186,255,222,254,54,219,248,219,111,227,109,191,141,182,254,
27,116,141,191,141,182,254,54,219,254,91,117,119,115,255,27,109,252,143,174,
225,107,127,163,115,62,223,200,194,220,125,255,141,188,254,54,219,248,219,
111,227,109,191,141,182,254,54,219,248,173,190,127,227,109,191,141,182,254,
54,219,248,219,111,227,109,191,215,145,182,247,241,182,223,197,109,247,252,
125,183,241,182,223,198,219,127,27,109,252,86,222,142,248,77,205,191,141,182,
254,54,219,248,219,111,227,109,191,141,182,254,35,124,251,248,219,111,241,55,
254,254,19,63,159,248,141,233,79,191,141,182,255,19,115,111,227,109,191,205,
230,254,62,219,248,219,111,226,55,143,63,196,221,155,248,219,111,227,109,191,
141,182,254,54,219,248,219,111,227,109,191,141,182,254,54,219,248,219,111,
227,109,191,141,182,254,31,97,107,127,38,235,189,127,127,27,109,252,109,183,
241,182,223,195,204,243,127,9,158,109,252,109,183,241,182,223,198,219,127,27,
109,252,109,183,241,182,223,198,219,127,27,109,252,109,183,241,182,223,198,
219,127,27,109,252,109,183,241,182,223,198,219,127,27,109,252,109,183,241,
182,223,198,219,127,27,109,252,109,183,241,182,223,198,219,127,27,109,252,
109,183,241,182,223,198,219,127,27,109,252,109,183,241,182,223,198,219,127,
27,109,252,109,183,241,182,223,198,219,127,27,109,252,109,183,241,182,223,
198,219,127,27,109,252,109,183,241,182,223,198,219,127,27,109,252,109,183,
241,182,223,198,219,127,27,109,252,127,55,241,27,116,141,252,109,183,250,183,
188,69,254,54,219,248,219,111,227,109,191,141,182,254,54,219,248,219,111,227,
109,191,141,182,254,54,219,248,219,111,227,109,191,138,219,103,254,35,124,
251,252,78,185,183,241,27,103,119,198,219,127,17,183,8,223,226,103,158,255,
27,109,252,111,55,241,182,223,198,219,127,27,109,252,86,223,167,254,23,88,19,
155,127,27,109,252,109,183,241,182,223,198,219,127,27,109,252,109,183,241,
182,223,199,155,127,27,109,252,109,183,241,182,223,202,220,220,123,248,109,
215,61,244,182,207,115,223,17,182,121,252,109,183,241,182,223,198,219,127,27,
205,252,109,183,241,182,223,198,219,127,11,189,231,241,182,223,198,219,127,
21,183,248,80,21,252,70,217,231,241,182,223,198,219,127,21,182,248,255,200,
219,61,190,71,28,220,247,191>>,8},{video_frame,audio,160.0,160.0,1,aac,frame,{stereo,bit16,rate44},<<33,28,20,101,185,94,136,18,168,68,64,48,0,7,158,181,220,186,201,42,36,202,82,
181,93,214,188,80,201,82,21,27,51,62,130,138,77,0,168,93,89,71,149,165,121,
231,228,56,179,128,204,126,28,219,203,20,1,165,226,31,137,230,225,239,131,7,
97,99,90,58,134,73,53,155,78,179,246,0,12,139,19,173,85,124,47,93,138,164,
144,155,148,19,81,54,196,93,73,211,121,89,122,212,162,172,111,70,45,213,137,
98,211,92,123,175,53,106,2,121,85,76,235,66,117,217,166,105,75,168,225,200,
49,157,234,78,248,155,83,24,53,238,61,235,25,29,98,175,7,26,8,119,174,182,47,
236,242,3,207,224,1,59,223,130,220,248,241,138,142,174,214,220,240,117,179,
225,221,15,194,235,26,107,78,27,49,122,165,45,223,190,154,219,108,230,224,3,
106,130,72,87,211,104,34,245,151,77,36,47,248,134,48,70,66,142,0,49,24,24,68,
8,0,0,62,247,81,77,221,93,80,49,144,204,243,56,28,142,103,65,182,211,124,4,
153,57,220,78,208,206,36,240,32,0,189,55,178,132,101,126,75,61,183,211,226,
188,105,198,176,38,10,172,0,29,239,74,185,18,46,90,100,150,92,224>>,9},{video_frame,audio,192.0,192.0,1,aac,frame,{stereo,bit16,rate44},<<"..very big..">>,10},{video_frame,video,200.20020020020021,200.20020020020021,1,mpeg4,...},...]},...],...]}
error 2010-10-29 03:40:19.475506 <0.106.0> {supervisor_report,[{supervisor,{local,rtmp_session_sup}},{errorContext,child_terminated},{reason,{function_clause,[{flv,video_codec,[mpeg4]},{flv,encode_video_tag,1},{rtmp_session,handle_frame,2},{rtmp_session,handle_info,3},{gen_fsm,handle_msg,7},{proc_lib,init_p_do_apply,3}]}},{offender,[{pid,<0.156.0>},{name,undefined},{mfargs,{rtmp_session,start_link,""}},{restart_type,temporary},{shutdown,2000},{child_type,worker}]}]}
error 2010-10-29 03:40:19.476672 <0.80.0> {supervisor_report,[{supervisor,{local,rtmp_socket_sup}},{errorContext,child_terminated},{reason,{function_clause,[{flv,video_codec,[mpeg4]},{flv,encode_video_tag,1},{rtmp_session,handle_frame,2},{rtmp_session,handle_info,3},{gen_fsm,handle_msg,7},{proc_lib,init_p_do_apply,3}]}},{offender,[{pid,<0.155.0>},{name,undefined},{mfargs,{rtmp_socket,start_link,[accept]}},{restart_type,temporary},{shutdown,2000},{child_type,worker}]}]}