View Full Version : How do you encode to .flv?
dbzman1995
12th March 2008, 19:39
Hey,
I was wondering how would one go about encoding a lossless .avi/mpeg video into a high quality .flv for streaming purposes on a website.
Thanks.
Ranguvar
13th March 2008, 12:37
mencoder will do what you want, and I think ffmpeg too.
LoRd_MuldeR
18th March 2008, 15:22
A recent version of Avidemux will do it too :)
http://mulder.dummwiedeutsch.de/home/?page=projects#avidemux
Set Video to "FLV1 (lavc)", Audio to "MP3 (LAME)" and Format to "FLV".
Also make sure you check the "Disable reservoir" option in the LAME configuration dialog.
BTW: Starting with Flash Player 9, there is support for H.264 video in MP4 container now.
You will get much better quality with H.264 at the same bitrates, using a good H.264 encoder (e.g. x264).
So I think FLV is a dieing species anyway ;)
smok3
18th March 2008, 20:55
high quality flv would be using vp6, check:
http://sh0dan.blogspot.com/2006/09/command-line-flash-8-flv-encoding.html
edit: streaming can be achived via different methods;
a. php streaming (only server running php is enough)
b. using lighttpd flv streaming mod
c. using adobe streaming server
d. most be more...
(you don't need all that if you only want to offer progressive downloads)
Chainmax
18th March 2008, 22:43
Do you guys know how must a file be encoded with x264 in order for YouTube not to reencode it?
Ranguvar
18th March 2008, 23:30
Never mind, I was stupid and didn't fully read the post :p
ricardo.santos
18th March 2008, 23:56
I use Automen for converting to flv.
BTW: Starting with Flash Player 9, there is support for H.264 video in MP4 container now.
You will get much better quality with H.264 at the same bitrates, using a good H.264 encoder (e.g. x264).
So I think FLV is a dieing species anyway ;)
well i've been trying for the last few weeks to encode h264 in mp4 and whatever tool i use(megui,automkv,staxrip) the video always stutters.
LoRd_MuldeR
19th March 2008, 00:53
well i've been trying for the last few weeks to encode h264 in mp4 and whatever tool i use(megui,automkv,staxrip) the video always stutters.
Try this H.264/MP4 file, which I have encoded in Avidemux. Apparently it works fine with Flash Player:
http://mplayer.somestuff.org/misc/flv_test/
(don't mind the quality, original was captured with my cheap digicam ^^)
ricardo.santos
19th March 2008, 10:46
LoRd_MuldeR can you post your encoding settings with avidemux or post the x264 configuration screenshots?
Thanks
LoRd_MuldeR
19th March 2008, 15:31
Here you go:
[ About file ]
Name: jonner.mp4
Date: 4/12/2007 20:59:33
Size: 3,267,410 bytes (3.116 MB)
[ Generic infos ]
Play duration: 00:00:55 (54.771 s)
Container type: MP4/MOV
Major brand: ISO Base Media version 512
Creation time: 1/01/1970 00:00:00 UTC
Modification time: 1/01/1970 00:00:00 UTC
Number of streams: 2
Type of stream nr. 1: video (avc1) {VideoHandler}
Type of stream nr. 2: audio (AAC Low complexity) {SoundHandler}
Audio streams: 1
[ Relevant data ]
Resolution: MEDIUM (512 x 384)
Width: multiple of 32 (GOOD)
Height: multiple of 32 (GOOD)
Average DRF quality: LOW (28.123188)
Standard deviation quality: HIGH (1.136055)
Std. dev. weighted mean: HIGH (0.397905)
[ Video track ]
Codec: avc1
Resolution: 512 x 384
Frame aspect ratio: 4:3 = 1.333333
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 4:3 = 1.333333
Framerate: 12.598 fps
Number of frames: 690
Bitrate: 345.186952 kbps
[ Audio track ]
Codec: AAC Low complexity
Bitrate: 127.375584 kbps
Channels: 2
Sample rate: 48000 Hz
[ About H.264 encoding ]
User data: x264
User data: core 57 svn-708
User data: H.264/MPEG-4 AVC codec
User data: Copyleft 2005
User data: http://www.videolan.org/x264.html
User data: cabac=1
User data: ref=8
User data: deblock=1:0:0
User data: analyse=0x3:0x133
User data: me=umh
User data: subme=7
User data: brdo=1
User data: mixed_ref=1
User data: me_range=16
User data: chroma_me=1
User data: trellis=0
User data: 8x8dct=1
User data: cqm=0
User data: deadzone=21,11
User data: chroma_qp_offset=0
User data: threads=6
User data: nr=0
User data: decimate=1
User data: mbaff=0
User data: bframes=15
User data: b_pyramid=0
User data: b_adapt=1
User data: b_bias=0
User data: direct=2
User data: wpredb=1
User data: bime=1
User data: keyint=250
User data: keyint_min=25
User data: scenecut=40(pre)
User data: rc=crf
User data: crf=24,0
User data: rceq='blurCplx^(1-qComp)'
User data: qcomp=0,60
User data: qpmin=10
User data: qpmax=51
User data: qpstep=4
User data: ip_ratio=1,40
User data: pb_ratio=1,30
SPS id: 0
Profile: High@L5.1
Num ref frames: 9
Aspect ratio: Square pixels
Chroma format idc: YUV 4:2:0
PPS id: 0 (SPS: 0)
Entropy coding type: CABAC
Weighted prediction: No
Weighted bipred idc: B slices - implicit weighted prediction
8x8dct: Yes
Number of frames: 690
Drop/delay frames: 0
Corrupted frames: 0
P-slices: 346 ( 50.145 %) #############
B-slices: 341 ( 49.420 %) ############
I-slices: 3 ( 0.435 %)
SP-slices: 0 ( 0.000 %)
SI-slices: 0 ( 0.000 %)
[ DRF analysis ]
Average DRF: 28.123188
Standard deviation: 1.136055
Max DRF: 30
DRF<21: 0 ( 0.000 %)
DRF=21: 1 ( 0.145 %)
DRF=22: 0 ( 0.000 %)
DRF=23: 0 ( 0.000 %)
DRF=24: 0 ( 0.000 %)
DRF=25: 3 ( 0.435 %)
DRF=26: 3 ( 0.435 %)
DRF=27: 293 ( 42.464 %) ###########
DRF=28: 50 ( 7.246 %) ##
DRF=29: 280 ( 40.580 %) ##########
DRF=30: 60 ( 8.696 %) ##
DRF>30: 0 ( 0.000 %)
P-slices average DRF: 27.130057
P-slices std. deviation: 0.384479
P-slices max DRF: 28
B-slices average DRF: 29.170087
B-slices std. deviation: 0.398438
B-slices max DRF: 30
I-slices average DRF: 23.666666
I-slices std. deviation: 1.885618
I-slices max DRF: 25
[ Profile compliancy ]
Profile to check: MTK PAL 6000
Resolution: Ok
Framerate: 12.598 <> 25
Min buffer fill: 81%
This report was created by AVInaptic (http://fsinapsi.altervista.org) (18-11-2007) on 19 mar 2008, h 15:30:44
Chainmax
19th March 2008, 20:04
That won't work on YouTube without reencoding, right?
LoRd_MuldeR
19th March 2008, 22:46
That won't work on YouTube without reencoding, right?
Is there a way to upload H.264 video at YouTube without re-encoding at all? :confused:
Chainmax
19th March 2008, 23:04
Since there is a way to create FLVs so that YouTube doesn't re-encode upon uploading, I assumed the same thing would be true of H.264...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.