View Single Post
  #6  
Old 11-24-2016, 08:22 AM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: Problem in downloading RTMP video


Hi,

so it seems that the connection gets canceled after downloading round about 70 MB = 1.06 mintues.So your FullHD video is very large & long and rtmpdump dosent continue the download so it will canceled after each 70 MB.Must be a server issue or wanted but its possible to download the full video so if you have enough time and patience then I tell you what you can do.

- Download the video partial with rtmpdump but you have to adjust the commands for this so you can also start the download from second xy of this video.Example: First download from the start...
Code:
rtmpdump -r "rtmp://128.97.46.13/DFT2016/13598.mp4" -e -o "C:\Record_001.mp4"
....now you got the first part.Open it in VLC player and you see the video does show a lenght of 50 + minutes = original lenght of video.Now you need to fix this first part so this you can do with ffmpeg tool with this command....
Code:
ffmpeg -i Record_001.mp4 -vcodec copy -acodec copy Record_001b.mp4
...now its fixed and VLC will show you the lenght of this first video part so in my case it was 1:06 minutes long = 66 seconds.Now download the next video part....
Code:
rtmpdump -r "rtmp://128.97.46.13/DFT2016/13598.mp4" -A 66 -e -o "C:\Record_002.mp4"
....so you can see I added a new paramter -A and 66 seconds value to the command what means the next download will start from 66 seconds of this video.Now download go on and you get another 70 MB.If you now try to play this 002 video in VLC then it will not work so there is no working header anymore in that file.Now to fix this you need to use again ffmpeg and join both files together (first file + second broken file)....
Code:
ffmpeg -i "concat:Record_001.mp4|Record_002.mp4" -c copy -bsf:a aac_adtstoasc output_001.mp4
Now you have to video parts together in one file.Do this go on with the entire video to download all parts.So thats the only way I can see so far to get the whole video and of course its a very bad method.

On the other hand you could also download the file with ffmpeg so it seems to work but the video dosent run liquid for 100 % so on some parts it stops a little but the sound is running 1A so if you can live with that then try this...
Code:
ffmpeg -i rtmp://128.97.46.13:1935/DFT2016/13598.mp4 -c copy output_video.ts
greetz
Reply With Quote