Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Question regarding .flv output

(http://stream-recorder.com/forum/showthread.php?t=11339)

greenythebeast 03-29-2012 03:54 PM

Question regarding .flv output


 
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:
Code:

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

Re: Question regarding .flv output


 
HandBrake cannot remux without reencoding.

You should be using FFmpeg.

Code:

ffmpeg -i input.flv -c copy output.mp4

greenythebeast 03-29-2012 11:56 PM

Re: Question regarding .flv output


 
Quote:

Originally Posted by svnpenn (Post 42719)
HandBrake cannot remux without reencoding.

You should be using FFmpeg.

Code:

ffmpeg -i input.flv -c copy output.mp4

I get this error when trying that:
Code:

[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

Re: Question regarding .flv output


 
Link the stream

or

Upload 10MB RtmpDump capture

so I can play with it.

greenythebeast 03-30-2012 04:35 AM

Re: Question regarding .flv output


 
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:
Code:

[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

Re: Question regarding .flv output


 
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

Re: Question regarding .flv output


 
Quote:

Originally Posted by svnpenn (Post 42744)
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?

chap 03-30-2012 01:19 PM

Re: Question regarding .flv output


 
Quote:

Originally Posted by greenythebeast (Post 42752)
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


All times are GMT -6. The time now is 07:05 PM.