PDA

View Full Version : FLV video freezes while playing


NeonFlash
12-13-2012, 04:49 AM
I have used Stream Transport (http://all-streaming-media.com/record-video-stream/StreamTransport-Download-HTTP-RTMP-RTMPE-streams.htm) to capture FLV videos from a site.

Now, the problem is, some of these videos (especially the High Definition Ones), do not play properly. I am using VLC Media Player for playing these FLV videos. They play properly for the first 9 to 10 seconds. After that the video plays very slowly. I mean, the frames appear one by one, almost like a slideshow.

I have a high end graphics card (ATI Radeon HD 5870), so it should not be related to the hardware acceleration issue. Also, I am able to play other High Definition videos on my machine without any issues.

The playback behavior of FLV videos I have downloaded from the site are of 3 types:

1. Videos which play properly without any issues at all.
2. Videos which play properly for 10 seconds or so, then freeze, then skips 10 seconds and starts playing properly again, then freezes and plays normally again.
3. Videos which play properly for first 10 to 20 seconds, after which they will play very slowly, the frames move slowly, one by one.

How can I fix this?

I can provide the details for the FLV videos for each of the above categories (stream encoding info, bitrate) using the output generated by ffmpeg.

I even tried converting the FLV videos to AVI using ffmpeg with the following command line, however, same issue:

ffmpeg -i flash.flv video.avi

I would be really glad if someone can help me solve this issue.

Thanks.

NeonFlash
12-13-2012, 05:36 AM
I have added the details provided by ffmpeg for the videos.

1. These are the details for the FLV video which plays properly:

[flv @ 004fe9a0] Invalid keyframes object, skipping.
[flv @ 004fe9a0] Keyframe index parsing failed
Input #0, flv, from 'proper.flv':
Metadata:
audiosize : 1898489
canSeekToEnd : true
datasize : 7779396
hasAudio : true
hasKeyframes : true
hasMetadata : true
hasVideo : true
lastkeyframelocation: 7780226
lastkeyframetimestamp: 110
lasttimestamp : 110
metadatacreator : Yet Another Metadata Injector for FLV - Version 1.4
videosize : 5850839
Duration: 00:01:50.36, start: 0.000000, bitrate: 563 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 960x540, 421 kb/s, 25 tbr, 1k tbn,
50 tbc
Stream #0:1: Audio: aac, 44100 Hz, stereo, s16, 133 kb/s

2. These are the details for the FLV video which does not play properly:

[flv @ 0051e9a0] Invalid keyframes object, skipping.
[flv @ 0051e9a0] Keyframe index parsing failed
Input #0, flv, from 'tofix.flv':
Metadata:
audiodelay : 0
audiosize : 6607344
canSeekToEnd : false
datasize : 271773993
hasAudio : true
hasCuePoints : false
hasKeyframes : true
hasMetadata : true
hasVideo : true
lastkeyframetimestamp: 424
lasttimestamp : 425
metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/fl
vtool2
videosize : 265143027
Duration: 00:07:04.62, start: 0.000000, bitrate: 1903 kb/s
Stream #0:0: Video: flv1, yuv420p, 960x540, 5112 kb/s, 29.97 tbr, 1k tbn, 1k
tbc
Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16, 112 kb/s
At least one output file must be specified

From the output, I can see the following:

1. The video which plays properly is in h264 format with a bit rate of 421 kbps and a resolution of 960x540.
2. The video which does not play properly is in flv1 format with a bit rate of 5112 kbps and a resolution of 960x540.

The difference is in the format (h264/flv1) and the bit rate.

Since I have already captured the videos from the flash media server, will I be able to fix the video by converting them to a lower bit rate?

Thanks.

NeonFlash
12-14-2012, 10:04 AM
No one a solution to this?

svnpenn2
12-14-2012, 04:39 PM
If you truly want definitive answers quickly and without
delay, please include link(s) to the web-page(s) with video(s)

stream-recorder.com/forum/announcement.php?f=4 (stream-recorder.com/forum/announcement.php?f=4)

NeonFlash
12-15-2012, 11:12 PM
@svnpenn2: I have captured the video already using Stream Transport. And my question here is not how to capture. It is about the video format. Some videos that I have captured from the server are not playing smoothly.

This is why I have given the output of ffmpeg.

Maybe there is another section on the board to discuss about fixing video files.

I will repost there and moderators can close this Topic since I don't think anyone is going to reply here.