[FFmpeg-user] help

undefined 670292548 at qq.com
Wed Jul 24 12:20:32 CEST 2013


Hi,
We would like to build a web site of live streaming. We push high-quality stream in the format of h264 & aac to AMS5, and intend to output 4 streams with different size but the same format to AMS5 using FFMpeg. But get an error: muxer does not support non seekable output. And then "Could not write header for output file #0 (incorrect codec parameters ?): Error number -1 occurred".


I use windows 7. cmd:
ffmpeg -re -y -i "rtmp://localhost/testFFMpeg/W3FHRHHT live=1" -acodec libvo_aacenc -vcodec libx264 -s 640*360 -f mp4 "rtmp://localhost/testFFMpeg/W3FHRHHT_360"


This cmd goes well:
ffmpeg -re -y -i "rtmp://localhost/testFFMpeg/W3FHRHHT live=1" -acodec libvo_aacenc -vcodec libx264 -f mp4 null.mp4
Here's the metadata:
{
data.duration : 50.60907029478458
data.avcprofile : 100
data.moovposition : 1310780
data.tags : 
data.audiosamplerate : 44100
data.width : 640
data.seekpoints : [object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
data.audiocodecid : mp4a
data.trackinfo : [object Object],[object Object]
data.videoframerate : 25
data.audiochannels : 2
data.videocodecid : avc1
data.aacaot : 2
data.height : 360
data.avclevel : 30

}


And this file can be output in the format of flv:
ffmpeg -re -y -i null.mp4 -f flv "rtmp://localhost/testFFMpeg/W3FHRHHT_360"


How can I output it in the format of mp4 or f4v?


Please help!




Best Regards,
Lane


More information about the ffmpeg-user mailing list