FLV from RED5 convert to mp4 - av out of sync

Any other question that don't fit into the other support categorizes.
Post Reply
dawe
Posts: 1
Joined: Tue Sep 03, 2013 1:51 pm

FLV from RED5 convert to mp4 - av out of sync

Post by dawe »

I have problem with recorded video in Red5 v1.0.2. When I record flv I want to convert it to some mp4. But I have problem with settings, because every time there is some issue with quality/audio sync. Can u please help me how to convert with ffmpeg.

My flash client record settings from webcam is (Flash Player 10):
video:
resolution = 640x360
fps = 30
keyframeinterval = 15
video quality = 90
bandwidth = 0

audio:
microphone codec = SPEEX
encodeQuality = 9
silencelevel = 0

bufferTime = 15

recorded video parameters in VLC (translated from czech to english):
video
Codec: Flash Video (FLV1)
Resolution: 640x360
format: Planar 4:2:0 YUV

audio
codec: Speex Audio (spx )
frequency: 16000Hz
bits per sample: 16
data flow: 16 kb/s

FFMEPG info about video:
Metadata:
server : Red5 Server 1.0.2 Rev: 4616
creationdate : Mon Sep 02 23:17:08 CEST 2013
canSeekToEnd : true
Duration: 00:00:33.24, start: 0.000000, bitrate: 645 kb/s
Stream #0:0: Video: flv1, yuv420p, 640x360, 625 kb/s, 1k tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: speex, 16000 Hz, mono, s16, 16 kb/s

bsplayer showing 25fps - but I recorded 30fps, I dont understand this so much.

what I tried with ffmpeg (I'm ffmpeg newbie).
- First I recorded 33sec long video
- when I convert audio with command: ffmpeg -i test.flv -ar 44100 -ab 160k -ac 1 output.mp3 , then the audio have only 30sec

I tried this commands, but no one with good solution

Code: Select all

ffmpeg -i test.flv -vcodec mpeg4 -acodec libvo_aacenc output.mp4
ffmpeg -i test.flv -acodec libvo_aacenc -aq 200 outputsss.mp4
ffmpeg -i test.flv -c:v libvpx -c:a libvorbis output.webm // here is sound synced good - but sound have repeating silence lags (every 1-2s)
really thank you for your help, I'm fighting with conversion many days :(

Post Reply