Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 03-29-2012, 04:54 PM
greenythebeast greenythebeast is offline
Senior Member
 
Join Date: Dec 2011
Posts: 105
greenythebeast is on a distinguished road
Default

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.
Reply With Quote
  #2  
Old 03-30-2012, 12:21 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: Question regarding .flv output


HandBrake cannot remux without reencoding.

You should be using FFmpeg.

Code:
ffmpeg -i input.flv -c copy output.mp4
Reply With Quote
  #3  
Old 03-30-2012, 12:56 AM
greenythebeast greenythebeast is offline
Senior Member
 
Join Date: Dec 2011
Posts: 105
greenythebeast is on a distinguished road
Default

Re: Question regarding .flv output


Quote:
Originally Posted by svnpenn View Post
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?
Reply With Quote
  #4  
Old 03-30-2012, 01:11 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: Question regarding .flv output


Link the stream

or

Upload 10MB RtmpDump capture

so I can play with it.
Reply With Quote
  #5  
Old 03-30-2012, 05:35 AM
greenythebeast greenythebeast is offline
Senior Member
 
Join Date: Dec 2011
Posts: 105
greenythebeast is on a distinguished road
Default

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.
Reply With Quote
  #6  
Old 03-30-2012, 10:27 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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.
Reply With Quote
  #7  
Old 03-30-2012, 02:08 PM
greenythebeast greenythebeast is offline
Senior Member
 
Join Date: Dec 2011
Posts: 105
greenythebeast is on a distinguished road
Default

Re: Question regarding .flv output


Quote:
Originally Posted by svnpenn View Post
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?
Reply With Quote
  #8  
Old 03-30-2012, 02:19 PM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: Question regarding .flv output


Quote:
Originally Posted by greenythebeast View Post
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
Reply With Quote
Reply Post New Thread
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:01 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons