greenythebeast
03-29-2012, 03:54 PM
I'm not even sure this is the right website to ask this question but because it has something to do with rtmpdump I thought I'd ask anyway. When I use rtmpdump to download a live stream, I get a .flv file that is unseekable. From what I understand this is normal. So in order to make it seekable I use Handbrake to convert it into a .mp4. However, during this conversion something odd happens. The original .flv file is always 15 FPS. However, the converted .mp4 file is always less FPS. Sometimes it's only a few FPS but in some cases I've seen the FPS drop to 5. For example, with one file the original .flv had over 103k frames, however, the converted .mp4 file only had around 39k frames. Where are all of these frames disappering to? In Handbrake's log I get a lot of these lines:
sync: video time didn't advance - dropped 2 frames (delta 0 ms, current 617057820, next 617078880, dur 21060)
Is this something to do with how rtmpdump creates the .flv file? Thanks for any input.
svnpenn
03-29-2012, 11:21 PM
HandBrake cannot remux without reencoding.
You should be using FFmpeg.
ffmpeg -i input.flv -c copy output.mp4
greenythebeast
03-29-2012, 11:56 PM
HandBrake cannot remux without reencoding.
You should be using FFmpeg.
ffmpeg -i input.flv -c copy output.mp4
I get this error when trying that:
[mp4 @ 0x101554600] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 462 >= 462
av_interleaved_write_frame(): Invalid argument
Any ideas?
svnpenn
03-30-2012, 12:11 AM
Link the stream
or
Upload 10MB RtmpDump capture
so I can play with it.
greenythebeast
03-30-2012, 04:35 AM
I think I figured it out. Used a different compiled binary of FFmpeg and it seems to work even though I get a lot of:
[mp4 @ 0x10101cc00] st:0 error, non monotone timestamps 134217 >= 134217
Seems to work okay and the audio remains synced so I guess I won't complain. Although if someone knows what that error means please let me know.
svnpenn
03-30-2012, 09:27 AM
That error has existed for years. Sometimes FLV sends frames out of order and FFmpeg doesnt know how to deal with it.
greenythebeast
03-30-2012, 01:08 PM
That error has existed for years. Sometimes FLV sends frames out of order and FFmpeg doesnt know how to deal with it.
Alright, so it's nothing I should worry about?
Alright, so it's nothing I should worry about?
You can try to download with the ffmpeg without re-encoding.He also uses librtmp http://rtmpdump.mplayerhq.hu/librtmp.3.html
vBulletin® , Copyright ©2000-2025, Jelsoft Enterprises Ltd.