How to get live stream name
Dear all!
I use ffmepg to push a livestream to my flash media server. Then I want to catchup live stream to file.
/opt/ffmpeg-1.1.1/bin/ffmpeg -i udp://238.1.1.2:1234 -filter:v yadif -acodec libfaac -ac 2 -ar 44100 -b:a 96k -af volume=5 -b:v 1000k -c:v libx264 -preset fast -pix_fmt yuv420p -s 720x476 -r 25 -threads 0 -t 300 -f flv "rtmp://10.84.70.120/dvrcast_origin/vtv22"
After, I create an application that main.asc file is:
application.onConnect = function (){
name = Stream.name();
stream = Stream.get(name);
if(stream){
stream.record();
}
}
I can not catch live stream to file.
Can you show me how to get a live stream name?
Thanks!
