Hi,
I have installed libav from source with libx264 encoder.
I installed it in below way-
./configure --enable-gpl --enable-libx264
make
make install
Then I have tried to generate the m3u8 file by below command-
$avconv -i /home/mangospring/Downloads/original/sample.m4v -strict
experimental -acodec aac -c:v libx264 -hls_time 10 -hls_list_size 32767
/home/mangospring/Downloads/original/sample.m3u8
Which generates the m3u8 files with ts files. but the ts file generated is
of mpe2 video codec and mpeg4 audio codec. where generated video file codec
must be of H264 which was not.
PFA the output of the above command as well as orginal and converted file.
Could you please let me know if i missed any parameter or did i missing
anything while installation?
mangospring@ubuntu:~/x264$ avconv -i
/home/mangospring/Downloads/original/sample.m4v -strict experimental -acodec
aac -c:v libx264 -hls_time 10 -hls_list_size 32767
/home/mangospring/Downloads/original/sample.m3u8
avconv version v9-1431-ge816aaa, Copyright (c) 2000-2013 the Libav developers
built on Jun 5 2013 14:34:33 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/home/mangospring/Downloads/original/sample.m4v':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: mp41
creation_time : 2013-04-29 13:28:12
Duration: 00:00:23.01, start: 0.000000, bitrate: 558 kb/s
Stream #0.0(eng): Video: h264 (Constrained Baseline), yuv420p, 360x268 [PAR
1:1 DAR 90:67], 424 kb/s, 29.97 fps, 30k tbn, 58 tbc
Metadata:
creation_time : 1947-04-29 13:28:12
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, fltp, 128 kb/s
Metadata:
creation_time : 1947-04-29 13:28:12
[libx264 @ 0x99c07a0] using SAR=1/1
[libx264 @ 0x99c07a0] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x99c07a0] profile High, level 1.3
Output #0, hls, to '/home/mangospring/Downloads/original/sample.m3u8':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: mp41
creation_time : 2013-04-29 13:28:12
encoder : Lavf55.1.0
Stream #0.0(eng): Video: libx264, yuv420p, 360x268 [PAR 1:1 DAR 90:67],
q=-1--1, 90k tbn, 29.97 tbc
Metadata:
creation_time : 1947-04-29 13:28:12
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, fltp, 200 kb/s
Metadata:
creation_time : 1947-04-29 13:28:12
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (aac -> aac)
Press ctrl-c to stop encoding
frame= 689 fps= 67 q=-1.0 Lsize= 0kB time=22.92 bitrate= 0.0kbits/s
video:571kB audio:565kB global headers:0kB muxing overhead -100.000000%
[libx264 @ 0x99c07a0] frame I:3 Avg QP:21.23 size: 10864
[libx264 @ 0x99c07a0] frame P:288 Avg QP:24.04 size: 1763
[libx264 @ 0x99c07a0] frame B:398 Avg QP:30.45 size: 194
[libx264 @ 0x99c07a0] consecutive B-frames: 12.9% 12.8% 52.2% 22.1%
[libx264 @ 0x99c07a0] mb I I16..4: 12.6% 26.9% 60.5%
[libx264 @ 0x99c07a0] mb P I16..4: 1.3% 0.8% 0.5% P16..4: 44.0% 12.4%
6.9% 0.0% 0.0% skip:34.0%
[libx264 @ 0x99c07a0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 36.2% 0.8%
0.1% direct: 0.2% skip:62.6% L0:45.6% L1:51.6% BI: 2.9%
[libx264 @ 0x99c07a0] 8x8 transform intra:30.6% inter:51.8%
[libx264 @ 0x99c07a0] coded y,uvDC,uvAC intra: 45.9% 62.4% 24.1% inter: 10.0%
9.6% 0.5%
[libx264 @ 0x99c07a0] i16 v,h,dc,p: 34% 39% 8% 20%
[libx264 @ 0x99c07a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 26% 27% 3% 4% 3%
5% 4% 4%
[libx264 @ 0x99c07a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 32% 18% 4% 6% 5%
6% 5% 5%
[libx264 @ 0x99c07a0] i8c dc,h,v,p: 47% 34% 14% 4%
[libx264 @ 0x99c07a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x99c07a0] ref P L0: 70.5% 12.3% 12.6% 4.6%
[libx264 @ 0x99c07a0] ref B L0: 89.9% 8.8% 1.3%
[libx264 @ 0x99c07a0] ref B L1: 93.1% 6.9%
[libx264 @ 0x99c07a0] kb/s:214.88
mangospring@ubuntu:~/x264$
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api