Take the 2-minute tour ×

How can I stop my ffmpeg re-stream from crashing? I'm running the following command in a .BAT file:

ffmpeg -i "RTMP://IPADDRESS:1935/LIVE/STREAMNAME.STREAM pageUrl=http://URL.COM swfurl=http://domain.com/licensed/player-licensed.swf live=1" -isync  -vcodec copy -b:v 400k -acodec copy -b:a 128000 -ar 32000 -f flv "rtmp://IP:1935/LIVE/CHANNELNAME"
goto loop

Is there anything wrong with this line of code other than than the links I put for demonstration purposes?

It keeps crashing – something about DTS codec. Maybe I should use something other than "copy" for audio codecs?

share|improve this question
It does not make sense to try to copy a stream and setting its sample and bit rate. Can you leave out the -acodec copy? What is the full error log? Please always include this. –  slhck Jul 12 '13 at 13:34
Hi If I leave out acodec copy it throws an error. –  James Barnes Jul 12 '13 at 18:36
What error would that be? Again, please show the error log – we cannot guess what the problem is without seeing ffmpeg's full, uncut console log. –  slhck Jul 12 '13 at 18:39
Can we text chat on skype or something? Thanks –  James Barnes Jul 12 '13 at 18:51
I don't have persistent Internet connection at the moment, sorry. Also, for the benefit of future visitors it'd be better to try and solve the issue here – there are some other FFmpeg experts who might have an idea what's going on! –  slhck Jul 12 '13 at 19:20

Your Answer



Browse other questions tagged or ask your own question.