[FFmpeg-user] Working with .YUV files

fb fatemeh.bagherpour at gmail.com
Wed Aug 15 08:38:30 CEST 2012


thanks, my commands and their results:

-----------------------------------------------------------
root at administrator:~# ffmpeg -y -i Wildlife.wmv WildLife.yuv

ffmpeg version N-42200-gdf3a96c Copyright (c) 2000-2012 the FFmpeg
developers
  built on Jul 25 2012 11:13:13 with gcc 4.6.3
  configuration: --enable-gpl --enable-libx264 --enable-libmp3lame
--enable-nonfree --enable-libaacplus
  libavutil      51. 63.100 / 51. 63.100
  libavcodec     54. 32.100 / 54. 32.100
  libavformat    54. 14.100 / 54. 14.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     3.  0.101 /  3.  0.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[asf @ 0x96053c0] Stream #0: not enough frames to estimate rate; consider
increasing probesize
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, asf, from 'Wildlife.wmv':
  Metadata:
    SfOriginalFPS   : 299
    WMFSDKVersion   : 11.0.6001.7000
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    title           : Wildlife in HD
    copyright       : © 2008 Microsoft Corporation
    comment         : Footage: Small World Productions, Inc; Tourism New
Zealand | Producer: Gary F. Spradling | Music: Steve Ball
  Duration: 00:00:30.09, start: 0.000000, bitrate: 6977 kb/s
    Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo,
s16, 192 kb/s
    Stream #0:1(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p,
1280x720, 5942 kb/s, 29.97 tbr, 1k tbn, 1k tbc
[graph 0 input from stream 0:1 @ 0x960bee0] w:1280 h:720 pixfmt:yuv420p
tb:1/1000 fr:30000/1001 sar:0/1 sws_param:flags=2
[output stream 0:0 @ 0x9636a20] No opaque field provided
Output #0, rawvideo, to 'WildLife.yuv':
  Metadata:
    SfOriginalFPS   : 299
    WMFSDKVersion   : 11.0.6001.7000
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    title           : Wildlife in HD
    copyright       : © 2008 Microsoft Corporation
    comment         : Footage: Small World Productions, Inc; Tourism New
Zealand | Producer: Gary F. Spradling | Music: Steve Ball
    encoder         : Lavf54.14.100
    Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p,
1280x720, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (vc1 -> rawvideo)
Press [q] to stop, [?] for help
frame=   40 fps=0.0 q=0.0 size=   54000kB time=00:00:01.33
bitrate=331444.5kbitsframe=   83 fps= 56 q=0.0 size=  112050kB
time=00:00:02.76 bitrate=331444.6kbitsframe=  116 fps= 58 q=0.0 size= 
156600kB time=00:00:03.87 bitrate=331444.6kbitsframe=  137 fps= 50 q=0.0
size=  184950kB time=00:00:04.57 bitrate=331444.6kbitsframe=  170 fps= 52
q=0.0 size=  229500kB time=00:00:05.67 bitrate=331444.6kbitsframe=  199 fps=
53 q=0.0 size=  268650kB time=00:00:06.63 bitrate=331444.5kbitsframe=  230
fps= 54 q=0.0 size=  310500kB time=00:00:07.67 bitrate=331444.6kbitsframe= 
243 fps= 47 q=0.0 size=  328050kB time=00:00:08.10
bitrate=331444.6kbitsframe=  295 fps= 52 q=0.0 size=  398250kB
time=00:00:09.84 bitrate=331444.5kbitsframe=  325 fps= 52 q=0.0 size= 
438750kB time=00:00:10.84 bitrate=331444.5kbitsframe=  363 fps= 54 q=0.0
size=  490050kB time=00:00:12.11 bitrate=331444.6kbitsframe=  394 fps= 55
q=0.0 size=  531900kB time=00:00:13.14 bitrate=331444.5kbitsframe=  431 fps=
56 q=0.0 size=  581850kB time=00:00:14.38 bitrate=331444.6kbitsframe=  469
fps= 57 q=0.0 size=  633150kB time=00:00:15.64 bitrate=331444.5kbitsframe= 
503 fps= 58 q=0.0 size=  679050kB time=00:00:16.78
bitrate=331444.6kbitsframe=  540 fps= 58 q=0.0 size=  729000kB
time=00:00:18.01 bitrate=331444.6kbitsframe=  577 fps= 59 q=0.0 size= 
778950kB time=00:00:19.25 bitrate=331444.5kbitsframe=  610 fps= 59 q=0.0
size=  823500kB time=00:00:20.35 bitrate=331444.6kbitsframe=  631 fps= 58
q=0.0 size=  851850kB time=00:00:21.05 bitrate=331444.6kbitsframe=  666 fps=
58 q=0.0 size=  899100kB time=00:00:22.22 bitrate=331444.6kbitsframe=  695
fps= 58 q=0.0 size=  938250kB time=00:00:23.18 bitrate=331444.6kbitsframe= 
711 fps= 55 q=0.0 size=  959850kB time=00:00:23.72
bitrate=331444.6kbitsframe=  755 fps= 57 q=0.0 size= 1019250kB
time=00:00:25.19 bitrate=331444.6kbitsframe=  765 fps= 55 q=0.0 size=
1032750kB time=00:00:25.52 bitrate=331444.6kbitsframe=  793 fps= 54 q=0.0
size= 1070550kB time=00:00:26.45 bitrate=331444.6kbitsframe=  829 fps= 54
q=0.0 size= 1119150kB time=00:00:27.66 bitrate=331444.6kbitsframe=  875 fps=
55 q=0.0 size= 1181250kB time=00:00:29.19 bitrate=331444.6kbitsframe=  901
fps= 55 q=0.0 Lsize= 1216350kB time=00:00:30.06 bitrate=331444.6kbits/s    
video:1216350kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.000000%
-----------------------------------------------------------
root at administrator:~# ffmpeg -s 720*576 -i WildLife.yuv wildLife.flv
ffmpeg version N-42200-gdf3a96c Copyright (c) 2000-2012 the FFmpeg
developers
  built on Jul 25 2012 11:13:13 with gcc 4.6.3
  configuration: --enable-gpl --enable-libx264 --enable-libmp3lame
--enable-nonfree --enable-libaacplus
  libavutil      51. 63.100 / 51. 63.100
  libavcodec     54. 32.100 / 54. 32.100
  libavformat    54. 14.100 / 54. 14.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     3.  0.101 /  3.  0.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[rawvideo @ 0x9db7460] Estimating duration from bitrate, this may be
inaccurate
Input #0, rawvideo, from 'WildLife.yuv':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576, 25
tbr, 25 tbn, 25 tbc
[graph 0 input from stream 0:0 @ 0x9dbdd40] w:720 h:576 pixfmt:yuv420p
tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
[output stream 0:0 @ 0x9db6fa0] No opaque field provided
Output #0, flv, to 'wildLife.flv':
  Metadata:
    encoder         : Lavf54.14.100
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 720x576,
q=2-31, 200 kb/s, 1k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> flv)
Press [q] to stop, [?] for help
frame=   40 fps=0.0 q=24.8 size=    1595kB time=00:00:01.60
bitrate=8167.3kbits/frame=   88 fps= 87 q=24.8 size=    2775kB
time=00:00:03.52 bitrate=6458.9kbits/frame=  138 fps= 91 q=24.8 size=   
4012kB time=00:00:05.52 bitrate=5953.4kbits/frame=  187 fps= 92 q=24.8 size=   
5292kB time=00:00:07.48 bitrate=5795.6kbits/frame=  233 fps= 92 q=24.8 size=   
6525kB time=00:00:09.32 bitrate=5735.1kbits/frame=  278 fps= 91 q=24.8 size=   
7730kB time=00:00:11.12 bitrate=5695.0kbits/frame=  325 fps= 92 q=24.8 size=   
9181kB time=00:00:13.00 bitrate=5785.7kbits/frame=  371 fps= 91 q=24.8 size=  
10602kB time=00:00:14.84 bitrate=5852.7kbits/frame=  417 fps= 91 q=24.8
size=   11942kB time=00:00:16.68 bitrate=5865.0kbits/frame=  456 fps= 90
q=24.8 size=   13047kB time=00:00:18.24 bitrate=5859.9kbits/frame=  503 fps=
90 q=24.8 size=   14630kB time=00:00:20.12 bitrate=5956.8kbits/frame=  549
fps= 90 q=24.8 size=   16277kB time=00:00:21.96 bitrate=6072.2kbits/frame= 
594 fps= 90 q=24.8 size=   17898kB time=00:00:23.76
bitrate=6171.0kbits/frame=  643 fps= 91 q=24.8 size=   19521kB
time=00:00:25.72 bitrate=6217.6kbits/frame=  691 fps= 91 q=24.8 size=  
21005kB time=00:00:27.64 bitrate=6225.4kbits/frame=  739 fps= 91 q=24.8
size=   22501kB time=00:00:29.56 bitrate=6235.8kbits/frame=  788 fps= 92
q=24.8 size=   24114kB time=00:00:31.52 bitrate=6267.1kbits/frame=  833 fps=
91 q=24.8 size=   26549kB time=00:00:33.32 bitrate=6527.3kbits/frame=  876
fps= 91 q=24.8 size=   28888kB time=00:00:35.04 bitrate=6753.7kbits/frame= 
916 fps= 91 q=24.8 size=   31044kB time=00:00:36.64
bitrate=6940.8kbits/frame=  960 fps= 90 q=24.8 size=   33466kB
time=00:00:38.40 bitrate=7139.4kbits/frame= 1010 fps= 91 q=24.8 size=  
36194kB time=00:00:40.40 bitrate=7339.2kbits/frame= 1025 fps= 88 q=24.8
size=   36983kB time=00:00:41.00 bitrate=7389.4kbits/frame= 1090 fps= 90
q=24.8 size=   40451kB time=00:00:43.60 bitrate=7600.3kbits/frame= 1157 fps=
91 q=24.8 size=   43940kB time=00:00:46.28 bitrate=7777.8kbits/frame= 1226
fps= 93 q=24.8 size=   47228kB time=00:00:49.04 bitrate=7889.4kbits/frame=
1293 fps= 95 q=24.8 size=   50707kB time=00:00:51.72
bitrate=8031.5kbits/frame= 1349 fps= 95 q=24.8 size=   53594kB
time=00:00:53.96 bitrate=8136.4kbits/frame= 1393 fps= 95 q=24.8 size=  
55891kB time=00:00:55.72 bitrate=8217.1kbits/frame= 1431 fps= 94 q=24.8
size=   58068kB time=00:00:57.24 bitrate=8310.5kbits/frame= 1474 fps= 94
q=24.8 size=   60546kB time=00:00:58.96 bitrate=8412.4kbits/frame= 1517 fps=
94 q=31.0 size=   63005kB time=00:01:00.68 bitrate=8505.9kbits/frame= 1560
fps= 93 q=24.8 size=   65392kB time=00:01:02.40 bitrate=8584.8kbits/frame=
1602 fps= 93 q=24.8 size=   67761kB time=00:01:04.08
bitrate=8662.6kbits/frame= 1657 fps= 94 q=24.8 size=   70485kB
time=00:01:06.28 bitrate=8711.7kbits/frame= 1702 fps= 93 q=24.8 size=  
72133kB time=00:01:08.08 bitrate=8679.7kbits/frame= 1757 fps= 94 q=24.8
size=   74182kB time=00:01:10.28 bitrate=8646.8kbits/frame= 1781 fps= 93
q=24.8 size=   75064kB time=00:01:11.24 bitrate=8631.8kbits/frame= 1802 fps=
91 q=24.8 size=   75845kB time=00:01:12.08 bitrate=8619.9kbits/frame= 1839
fps= 91 q=24.8 size=   77239kB time=00:01:13.56 bitrate=8601.7kbits/frame=
1892 fps= 91 q=24.8 size=   79228kB time=00:01:15.68
bitrate=8576.0kbits/frame= 1940 fps= 91 q=24.8 size=   81034kB
time=00:01:17.60 bitrate=8554.5kbits/frame= 1985 fps= 91 q=24.8 size=  
82720kB time=00:01:19.40 bitrate=8534.6kbits/Truncating packet of size
622080 to 138241
[rawvideo @ 0x9dbd900] Invalid buffer size, packet size 138240 < expected
length 622080
Error while decoding stream #0:0: Invalid argument
Truncating packet of size 622080 to 1
frame= 2002 fps= 91 q=24.8 Lsize=   83361kB time=00:01:20.08
bitrate=8527.7kbits/s    
video:83330kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.037787%
root at administrator:~#
-----------------------------------------------------------
root at administrator:~# ffmpeg -y -s 720*576 -f rawvideo -i WildLife.yuv
-vcodec libx264 -ar 44100 wildLife.flv
ffmpeg version N-42200-gdf3a96c Copyright (c) 2000-2012 the FFmpeg
developers
  built on Jul 25 2012 11:13:13 with gcc 4.6.3
  configuration: --enable-gpl --enable-libx264 --enable-libmp3lame
--enable-nonfree --enable-libaacplus
  libavutil      51. 63.100 / 51. 63.100
  libavcodec     54. 32.100 / 54. 32.100
  libavformat    54. 14.100 / 54. 14.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     3.  0.101 /  3.  0.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[rawvideo @ 0xad194c0] Estimating duration from bitrate, this may be
inaccurate
Input #0, rawvideo, from 'WildLife.yuv':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576, 25
tbr, 25 tbn, 25 tbc
[graph 0 input from stream 0:0 @ 0xad18de0] w:720 h:576 pixfmt:yuv420p
tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
[output stream 0:0 @ 0xad18900] No opaque field provided
[libx264 @ 0xad14020] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0xad14020] profile High, level 3.0
[libx264 @ 0xad14020] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1
ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'wildLife.flv':
  Metadata:
    encoder         : Lavf54.14.100
    Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 720x576,
q=-1--1, 1k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> libx264)
Press [q] to stop, [?] for help
frame=   53 fps=0.0 q=28.0 size=      97kB time=00:00:00.16
bitrate=4981.8kbits/frame=   62 fps= 60 q=28.0 size=     310kB
time=00:00:00.52 bitrate=4885.0kbits/frame=   70 fps= 45 q=28.0 size=    
503kB time=00:00:00.84 bitrate=4904.0kbits/frame=   79 fps= 38 q=28.0 size=    
719kB time=00:00:01.20 bitrate=4907.5kbits/frame=   87 fps= 33 q=28.0 size=    
905kB time=00:00:01.52 bitrate=4875.9kbits/frame=   96 fps= 31 q=28.0 size=   
1122kB time=00:00:01.88 bitrate=4888.0kbits/frame=  104 fps= 29 q=28.0 size=   
1315kB time=00:00:02.20 bitrate=4896.8kbits/frame=  112 fps= 27 q=28.0 size=   
1494kB time=00:00:02.52 bitrate=4855.8kbits/frame=  120 fps= 26 q=28.0 size=   
1691kB time=00:00:02.84 bitrate=4877.3kbits/frame=  129 fps= 24 q=28.0 size=   
1905kB time=00:00:03.20 bitrate=4876.8kbits/frame=  138 fps= 24 q=28.0 size=   
2115kB time=00:00:03.56 bitrate=4866.5kbits/frame=  146 fps= 23 q=28.0 size=   
2309kB time=00:00:03.88 bitrate=4875.4kbits/frame=  154 fps= 22 q=28.0 size=   
2486kB time=00:00:04.20 bitrate=4847.9kbits/frame=  163 fps= 22 q=28.0 size=   
2696kB time=00:00:04.56 bitrate=4843.3kbits/frame=  172 fps= 21 q=28.0 size=   
2910kB time=00:00:04.92 bitrate=4845.4kbits/frame=  181 fps= 21 q=28.0 size=   
3120kB time=00:00:05.28 bitrate=4841.4kbits/frame=  189 fps= 21 q=28.0 size=   
3311kB time=00:00:05.60 bitrate=4843.7kbits/frame=  197 fps= 20 q=28.0 size=   
3507kB time=00:00:05.92 bitrate=4852.8kbits/frame=  205 fps= 20 q=28.0 size=   
3687kB time=00:00:06.24 bitrate=4840.2kbits/frame=  214 fps= 20 q=28.0 size=   
3903kB time=00:00:06.60 bitrate=4844.9kbits/frame=  223 fps= 20 q=28.0 size=   
4120kB time=00:00:06.96 bitrate=4849.2kbits/frame=  232 fps= 19 q=28.0 size=   
4339kB time=00:00:07.32 bitrate=4855.9kbits/frame=  240 fps= 19 q=28.0 size=   
4535kB time=00:00:07.64 bitrate=4863.1kbits/frame=  248 fps= 19 q=28.0 size=   
4726kB time=00:00:07.96 bitrate=4863.6kbits/frame=  257 fps= 19 q=28.0 size=   
4940kB time=00:00:08.32 bitrate=4864.2kbits/frame=  266 fps= 19 q=28.0 size=   
5152kB time=00:00:08.68 bitrate=4862.8kbits/frame=  275 fps= 19 q=28.0 size=   
5362kB time=00:00:09.04 bitrate=4858.9kbits/frame=  284 fps= 19 q=28.0 size=   
5562kB time=00:00:09.40 bitrate=4847.6kbits/frame=  291 fps= 18 q=28.0 size=   
5719kB time=00:00:09.68 bitrate=4839.8kbits/frame=  301 fps= 18 q=28.0 size=   
5960kB time=00:00:10.08 bitrate=4843.9kbits/frame=  310 fps= 18 q=28.0 size=   
6174kB time=00:00:10.44 bitrate=4844.4kbits/frame=  318 fps= 18 q=28.0 size=   
6364kB time=00:00:10.76 bitrate=4845.5kbits/frame=  326 fps= 18 q=28.0 size=   
6590kB time=00:00:11.08 bitrate=4872.4kbits/frame=  334 fps= 18 q=28.0 size=   
6940kB time=00:00:11.40 bitrate=4987.1kbits/frame=  342 fps= 18 q=28.0 size=   
7314kB time=00:00:11.72 bitrate=5112.4kbits/frame=  350 fps= 18 q=28.0 size=   
7659kB time=00:00:12.04 bitrate=5211.5kbits/frame=  358 fps= 18 q=28.0 size=   
8015kB time=00:00:12.36 bitrate=5312.4kbits/frame=  365 fps= 18 q=28.0 size=   
8324kB time=00:00:12.64 bitrate=5394.8kbits/frame=  373 fps= 18 q=28.0 size=   
8719kB time=00:00:12.96 bitrate=5511.3kbits/frame=  381 fps= 18 q=28.0 size=   
9033kB time=00:00:13.28 bitrate=5572.3kbits/frame=  388 fps= 17 q=28.0 size=   
9322kB time=00:00:13.56 bitrate=5631.6kbits/frame=  395 fps= 17 q=28.0 size=   
9660kB time=00:00:13.84 bitrate=5718.0kbits/frame=  403 fps= 17 q=28.0 size=   
9976kB time=00:00:14.16 bitrate=5771.4kbits/frame=  411 fps= 17 q=28.0 size=  
10345kB time=00:00:14.48 bitrate=5852.6kbits/frame=  419 fps= 17 q=28.0
size=   10647kB time=00:00:14.80 bitrate=5893.2kbits/frame=  426 fps= 17
q=28.0 size=   10962kB time=00:00:15.08 bitrate=5954.7kbits/frame=  434 fps=
17 q=28.0 size=   11286kB time=00:00:15.40 bitrate=6003.5kbits/frame=  442
fps= 17 q=28.0 size=   11643kB time=00:00:15.72 bitrate=6067.2kbits/frame= 
450 fps= 17 q=28.0 size=   11960kB time=00:00:16.04
bitrate=6108.1kbits/frame=  458 fps= 17 q=28.0 size=   12328kB
time=00:00:16.36 bitrate=6173.0kbits/frame=  465 fps= 17 q=28.0 size=  
12619kB time=00:00:16.64 bitrate=6212.3kbits/frame=  473 fps= 17 q=28.0
size=   12996kB time=00:00:16.96 bitrate=6277.5kbits/frame=  480 fps= 17
q=28.0 size=   13296kB time=00:00:17.24 bitrate=6317.8kbits/frame=  487 fps=
17 q=28.0 size=   13598kB time=00:00:17.52 bitrate=6358.2kbits/frame=  494
fps= 17 q=28.0 size=   13882kB time=00:00:17.80 bitrate=6388.9kbits/frame= 
501 fps= 17 q=28.0 size=   14171kB time=00:00:18.08
bitrate=6420.9kbits/frame=  508 fps= 17 q=28.0 size=   14492kB
time=00:00:18.36 bitrate=6466.1kbits/frame=  516 fps= 16 q=28.0 size=  
14847kB time=00:00:18.68 bitrate=6511.2kbits/frame=  525 fps= 16 q=28.0
size=   15107kB time=00:00:19.04 bitrate=6500.0kbits/frame=  534 fps= 16
q=28.0 size=   15251kB time=00:00:19.40 bitrate=6439.9kbits/frame=  543 fps=
17 q=28.0 size=   15397kB time=00:00:19.76 bitrate=6383.1kbits/frame=  553
fps= 17 q=28.0 size=   15569kB time=00:00:20.16 bitrate=6326.6kbits/frame= 
563 fps= 17 q=28.0 size=   15723kB time=00:00:20.56
bitrate=6264.8kbits/frame=  573 fps= 17 q=28.0 size=   15889kB
time=00:00:20.96 bitrate=6210.0kbits/frame=  583 fps= 17 q=28.0 size=  
16041kB time=00:00:21.36 bitrate=6152.1kbits/frame=  593 fps= 17 q=28.0
size=   16202kB time=00:00:21.76 bitrate=6099.4kbits/frame=  602 fps= 17
q=28.0 size=   16342kB time=00:00:22.12 bitrate=6052.0kbits/frame=  611 fps=
17 q=28.0 size=   16484kB time=00:00:22.48 bitrate=6006.8kbits/frame=  621
fps= 17 q=28.0 size=   16637kB time=00:00:22.88 bitrate=5956.8kbits/frame= 
630 fps= 17 q=28.0 size=   16779kB time=00:00:23.24
bitrate=5914.7kbits/frame=  639 fps= 17 q=28.0 size=   16921kB
time=00:00:23.60 bitrate=5873.6kbits/frame=  648 fps= 17 q=28.0 size=  
17064kB time=00:00:23.96 bitrate=5834.2kbits/frame=  658 fps= 17 q=28.0
size=   17217kB time=00:00:24.36 bitrate=5789.9kbits/frame=  668 fps= 17
q=28.0 size=   17375kB time=00:00:24.76 bitrate=5748.5kbits/frame=  678 fps=
17 q=28.0 size=   17519kB time=00:00:25.16 bitrate=5704.2kbits/frame=  688
fps= 17 q=28.0 size=   17671kB time=00:00:25.56 bitrate=5663.5kbits/frame= 
699 fps= 17 q=28.0 size=   17829kB time=00:00:26.00
bitrate=5617.4kbits/frame=  709 fps= 17 q=28.0 size=   17974kB
time=00:00:26.40 bitrate=5577.3kbits/frame=  718 fps= 17 q=28.0 size=  
18098kB time=00:00:26.76 bitrate=5540.4kbits/frame=  728 fps= 17 q=28.0
size=   18241kB time=00:00:27.16 bitrate=5501.9kbits/frame=  738 fps= 17
q=28.0 size=   18375kB time=00:00:27.56 bitrate=5461.9kbits/frame=  748 fps=
17 q=28.0 size=   18516kB time=00:00:27.96 bitrate=5425.1kbits/frame=  757
fps= 17 q=28.0 size=   18640kB time=00:00:28.32 bitrate=5392.0kbits/frame= 
767 fps= 17 q=28.0 size=   18777kB time=00:00:28.72
bitrate=5356.0kbits/frame=  777 fps= 17 q=28.0 size=   18920kB
time=00:00:29.12 bitrate=5322.5kbits/frame=  787 fps= 17 q=28.0 size=  
19057kB time=00:00:29.52 bitrate=5288.5kbits/frame=  798 fps= 17 q=28.0
size=   19219kB time=00:00:29.96 bitrate=5255.0kbits/frame=  808 fps= 17
q=28.0 size=   19363kB time=00:00:30.36 bitrate=5224.7kbits/frame=  817 fps=
17 q=28.0 size=   19489kB time=00:00:30.72 bitrate=5197.1kbits/frame=  827
fps= 17 q=28.0 size=   19626kB time=00:00:31.12 bitrate=5166.2kbits/frame= 
835 fps= 17 q=28.0 size=   19875kB time=00:00:31.44
bitrate=5178.5kbits/frame=  842 fps= 17 q=28.0 size=   20181kB
time=00:00:31.72 bitrate=5211.8kbits/frame=  850 fps= 17 q=28.0 size=  
20532kB time=00:00:32.04 bitrate=5249.6kbits/frame=  857 fps= 17 q=28.0
size=   20845kB time=00:00:32.32 bitrate=5283.5kbits/frame=  864 fps= 17
q=28.0 size=   21153kB time=00:00:32.60 bitrate=5315.6kbits/frame=  872 fps=
17 q=28.0 size=   21483kB time=00:00:32.92 bitrate=5346.0kbits/frame=  879
fps= 17 q=28.0 size=   21789kB time=00:00:33.20 bitrate=5376.5kbits/frame= 
887 fps= 17 q=28.0 size=   22125kB time=00:00:33.52
bitrate=5407.1kbits/frame=  894 fps= 17 q=28.0 size=   22427kB
time=00:00:33.80 bitrate=5435.5kbits/frame=  901 fps= 17 q=28.0 size=  
22723kB time=00:00:34.08 bitrate=5462.1kbits/frame=  909 fps= 17 q=28.0
size=   23071kB time=00:00:34.40 bitrate=5494.1kbits/frame=  917 fps= 17
q=28.0 size=   23417kB time=00:00:34.72 bitrate=5525.0kbits/frame=  925 fps=
17 q=28.0 size=   23751kB time=00:00:35.04 bitrate=5552.7kbits/frame=  932
fps= 17 q=28.0 size=   24053kB time=00:00:35.32 bitrate=5578.9kbits/frame= 
939 fps= 17 q=28.0 size=   24360kB time=00:00:35.60
bitrate=5605.5kbits/frame=  946 fps= 17 q=28.0 size=   24670kB
time=00:00:35.88 bitrate=5632.5kbits/frame=  953 fps= 16 q=28.0 size=  
24973kB time=00:00:36.16 bitrate=5657.5kbits/frame=  960 fps= 16 q=28.0
size=   25270kB time=00:00:36.44 bitrate=5681.0kbits/frame=  968 fps= 16
q=28.0 size=   25628kB time=00:00:36.76 bitrate=5711.1kbits/frame=  974 fps=
16 q=28.0 size=   25885kB time=00:00:37.00 bitrate=5731.0kbits/frame=  981
fps= 16 q=28.0 size=   26186kB time=00:00:37.28 bitrate=5754.3kbits/frame= 
989 fps= 16 q=28.0 size=   26538kB time=00:00:37.60
bitrate=5781.9kbits/frame=  996 fps= 16 q=28.0 size=   26840kB
time=00:00:37.88 bitrate=5804.4kbits/frame= 1004 fps= 16 q=28.0 size=  
27204kB time=00:00:38.20 bitrate=5834.0kbits/frame= 1011 fps= 16 q=28.0
size=   27498kB time=00:00:38.48 bitrate=5854.1kbits/frame= 1018 fps= 16
q=28.0 size=   27794kB time=00:00:38.76 bitrate=5874.2kbits/frame= 1025 fps=
16 q=28.0 size=   28098kB time=00:00:39.04 bitrate=5895.9kbits/frame= 1033
fps= 16 q=28.0 size=   28460kB time=00:00:39.36 bitrate=5923.3kbits/frame=
1040 fps= 16 q=28.0 size=   28752kB time=00:00:39.64
bitrate=5941.9kbits/frame= 1048 fps= 16 q=28.0 size=   29122kB
time=00:00:39.96 bitrate=5970.1kbits/frame= 1055 fps= 16 q=28.0 size=  
29427kB time=00:00:40.24 bitrate=5990.8kbits/frame= 1062 fps= 16 q=28.0
size=   29721kB time=00:00:40.52 bitrate=6008.6kbits/frame= 1070 fps= 16
q=28.0 size=   30051kB time=00:00:40.84 bitrate=6027.9kbits/frame= 1078 fps=
16 q=28.0 size=   30388kB time=00:00:41.16 bitrate=6048.2kbits/frame=
 1086 fps= 16 q=28.0 size=   30742kB time=00:00:41.48
bitrate=6071.3kbits/frame= 1093 fps= 16 q=28.0 size=   31044kB
time=00:00:41.76 bitrate=6089.9kbits/frame= 1101 fps= 16 q=28.0 size=  
31372kB time=00:00:42.08 bitrate=6107.4kbits/frame= 1108 fps= 16 q=28.0
size=   31681kB time=00:00:42.36 bitrate=6126.8kbits/frame= 1116 fps= 16
q=28.0 size=   32010kB time=00:00:42.68 bitrate=6144.0kbits/frame= 1123 fps=
16 q=28.0 size=   32311kB time=00:00:42.96 bitrate=6161.3kbits/frame= 1131
fps= 16 q=28.0 size=   32656kB time=00:00:43.28 bitrate=6181.0kbits/frame=
1138 fps= 16 q=28.0 size=   32949kB time=00:00:43.56
bitrate=6196.5kbits/frame= 1145 fps= 16 q=28.0 size=   33242kB
time=00:00:43.84 bitrate=6211.7kbits/frame= 1152 fps= 16 q=28.0 size=  
33546kB time=00:00:44.12 bitrate=6228.8kbits/frame= 1159 fps= 16 q=28.0
size=   33852kB time=00:00:44.40 bitrate=6245.8kbits/frame= 1167 fps= 16
q=28.0 size=   34186kB time=00:00:44.72 bitrate=6262.4kbits/frame= 1174 fps=
16 q=28.0 size=   34490kB time=00:00:45.00 bitrate=6278.8kbits/frame= 1182
fps= 16 q=28.0 size=   34838kB time=00:00:45.32 bitrate=6297.4kbits/frame=
1189 fps= 16 q=28.0 size=   35132kB time=00:00:45.60
bitrate=6311.5kbits/frame= 1196 fps= 16 q=28.0 size=   35429kB
time=00:00:45.88 bitrate=6326.0kbits/frame= 1203 fps= 16 q=28.0 size=  
35754kB time=00:00:46.16 bitrate=6345.3kbits/frame= 1210 fps= 16 q=28.0
size=   36087kB time=00:00:46.44 bitrate=6365.7kbits/frame= 1217 fps= 16
q=28.0 size=   36421kB time=00:00:46.72 bitrate=6386.1kbits/frame= 1225 fps=
16 q=28.0 size=   36780kB time=00:00:47.04 bitrate=6405.3kbits/frame= 1233
fps= 16 q=28.0 size=   37108kB time=00:00:47.36 bitrate=6418.6kbits/frame=
1241 fps= 16 q=28.0 size=   37411kB time=00:00:47.68
bitrate=6427.7kbits/frame= 1249 fps= 16 q=28.0 size=   37798kB
time=00:00:48.00 bitrate=6450.9kbits/frame= 1256 fps= 16 q=28.0 size=  
38149kB time=00:00:48.28 bitrate=6473.1kbits/frame= 1263 fps= 16 q=28.0
size=   38500kB time=00:00:48.56 bitrate=6494.9kbits/frame= 1270 fps= 16
q=28.0 size=   38877kB time=00:00:48.84 bitrate=6521.0kbits/frame= 1276 fps=
16 q=28.0 size=   39208kB time=00:00:49.08 bitrate=6544.2kbits/frame= 1282
fps= 16 q=28.0 size=   39563kB time=00:00:49.32 bitrate=6571.4kbits/frame=
1289 fps= 16 q=28.0 size=   39946kB time=00:00:49.60
bitrate=6597.5kbits/frame= 1297 fps= 16 q=28.0 size=   40427kB
time=00:00:49.92 bitrate=6634.2kbits/frame= 1303 fps= 16 q=28.0 size=  
40761kB time=00:00:50.16 bitrate=6657.0kbits/frame= 1310 fps= 15 q=28.0
size=   41138kB time=00:00:50.44 bitrate=6681.2kbits/frame= 1317 fps= 15
q=28.0 size=   41541kB time=00:00:50.72 bitrate=6709.4kbits/frame= 1323 fps=
15 q=28.0 size=   41864kB time=00:00:50.96 bitrate=6729.8kbits/frame= 1329
fps= 15 q=28.0 size=   42209kB time=00:00:51.20 bitrate=6753.5kbits/frame=
1336 fps= 15 q=28.0 size=   42582kB time=00:00:51.48
bitrate=6776.0kbits/frame= 1342 fps= 15 q=28.0 size=   42946kB
time=00:00:51.72 bitrate=6802.3kbits/frame= 1349 fps= 15 q=28.0 size=  
43324kB time=00:00:52.00 bitrate=6825.2kbits/frame= 1356 fps= 15 q=28.0
size=   43717kB time=00:00:52.28 bitrate=6850.3kbits/frame= 1363 fps= 15
q=28.0 size=   44120kB time=00:00:52.56 bitrate=6876.6kbits/frame= 1370 fps=
15 q=28.0 size=   44516kB time=00:00:52.84 bitrate=6901.5kbits/frame= 1374
fps= 15 q=28.0 size=   44743kB time=00:00:53.00 bitrate=6915.7kbits/frame=
1381 fps= 15 q=28.0 size=   45130kB time=00:00:53.28
bitrate=6939.0kbits/frame= 1388 fps= 15 q=28.0 size=   45529kB
time=00:00:53.56 bitrate=6963.6kbits/frame= 1395 fps= 15 q=28.0 size=  
45939kB time=00:00:53.84 bitrate=6989.9kbits/frame= 1401 fps= 15 q=28.0
size=   46254kB time=00:00:54.08 bitrate=7006.5kbits/frame= 1408 fps= 15
q=28.0 size=   46659kB time=00:00:54.36 bitrate=7031.4kbits/frame= 1415 fps=
15 q=28.0 size=   47058kB time=00:00:54.64 bitrate=7055.2kbits/frame= 1422
fps= 15 q=28.0 size=   47447kB time=00:00:54.92 bitrate=7077.2kbits/frame=
1429 fps= 15 q=28.0 size=   47812kB time=00:00:55.20
bitrate=7095.5kbits/frame= 1436 fps= 15 q=28.0 size=   48194kB
time=00:00:55.48 bitrate=7116.2kbits/frame= 1444 fps= 15 q=28.0 size=  
48696kB time=00:00:55.80 bitrate=7149.1kbits/frame= 1451 fps= 15 q=28.0
size=   49057kB time=00:00:56.08 bitrate=7166.2kbits/frame= 1458 fps= 15
q=28.0 size=   49438kB time=00:00:56.36 bitrate=7185.9kbits/frame= 1464 fps=
15 q=28.0 size=   49811kB time=00:00:56.60 bitrate=7209.3kbits/frame= 1471
fps= 15 q=28.0 size=   50204kB time=00:00:56.88 bitrate=7230.5kbits/frame=
1478 fps= 15 q=28.0 size=   50600kB time=00:00:57.16
bitrate=7251.9kbits/frame= 1485 fps= 15 q=28.0 size=   50994kB
time=00:00:57.44 bitrate=7272.7kbits/frame= 1492 fps= 15 q=28.0 size=  
51385kB time=00:00:57.72 bitrate=7292.9kbits/frame= 1500 fps= 15 q=28.0
size=   51825kB time=00:00:58.04 bitrate=7314.8kbits/frame= 1507 fps= 15
q=28.0 size=   52166kB time=00:00:58.32 bitrate=7327.5kbits/frame= 1514 fps=
15 q=28.0 size=   52457kB time=00:00:58.60 bitrate=7333.2kbits/frame= 1522
fps= 15 q=28.0 size=   52774kB time=00:00:58.92 bitrate=7337.4kbits/frame=
1529 fps= 15 q=28.0 size=   53046kB time=00:00:59.20
bitrate=7340.4kbits/frame= 1535 fps= 15 q=28.0 size=   53339kB
time=00:00:59.44 bitrate=7351.1kbits/frame= 1544 fps= 15 q=28.0 size=  
53742kB time=00:00:59.80 bitrate=7362.0kbits/frame= 1551 fps= 15 q=28.0
size=   54015kB time=00:01:00.08 bitrate=7365.1kbits/frame= 1558 fps= 15
q=28.0 size=   54271kB time=00:01:00.36 bitrate=7365.6kbits/frame= 1565 fps=
15 q=28.0 size=   54523kB time=00:01:00.64 bitrate=7365.7kbits/frame= 1572
fps= 15 q=28.0 size=   54858kB time=00:01:00.92 bitrate=7376.8kbits/frame=
1579 fps= 15 q=28.0 size=   55201kB time=00:01:01.20
bitrate=7389.0kbits/frame= 1587 fps= 15 q=28.0 size=   55528kB
time=00:01:01.52 bitrate=7394.1kbits/frame= 1594 fps= 15 q=28.0 size=  
55835kB time=00:01:01.80 bitrate=7401.3kbits/frame= 1601 fps= 15 q=28.0
size=   56170kB time=00:01:02.08 bitrate=7412.2kbits/frame= 1608 fps= 15
q=28.0 size=   56506kB time=00:01:02.36 bitrate=7423.0kbits/frame= 1615 fps=
15 q=28.0 size=   56838kB time=00:01:02.64 bitrate=7433.2kbits/frame= 1622
fps= 15 q=28.0 size=   57219kB time=00:01:02.92 bitrate=7449.7kbits/frame=
1629 fps= 15 q=28.0 size=   57621kB time=00:01:03.20
bitrate=7468.9kbits/frame= 1636 fps= 15 q=28.0 size=   58045kB
time=00:01:03.48 bitrate=7490.6kbits/frame= 1643 fps= 15 q=28.0 size=  
58419kB time=00:01:03.76 bitrate=7505.8kbits/frame= 1650 fps= 15 q=28.0
size=   58817kB time=00:01:04.04 bitrate=7523.9kbits/frame= 1657 fps= 15
q=28.0 size=   59242kB time=00:01:04.32 bitrate=7545.3kbits/frame= 1663 fps=
15 q=28.0 size=   59601kB time=00:01:04.56 bitrate=7562.7kbits/frame= 1670
fps= 15 q=28.0 size=   60056kB time=00:01:04.84 bitrate=7587.6kbits/frame=
1676 fps= 15 q=28.0 size=   60435kB time=00:01:05.08
bitrate=7607.3kbits/frame= 1683 fps= 15 q=28.0 size=   60919kB
time=00:01:05.36 bitrate=7635.3kbits/frame= 1690 fps= 15 q=28.0 size=  
61232kB time=00:01:05.64 bitrate=7641.8kbits/frame= 1698 fps= 15 q=28.0
size=   61538kB time=00:01:05.96 bitrate=7642.9kbits/frame= 1706 fps= 15
q=28.0 size=   61862kB time=00:01:06.28 bitrate=7646.0kbits/frame= 1714 fps=
15 q=28.0 size=   62160kB time=00:01:06.60 bitrate=7645.9kbits/frame= 1722
fps= 15 q=28.0 size=   62500kB time=00:01:06.92 bitrate=7651.0kbits/frame=
1730 fps= 15 q=28.0 size=   62775kB time=00:01:07.24
bitrate=7648.1kbits/frame= 1738 fps= 15 q=28.0 size=   63088kB
time=00:01:07.56 bitrate=7649.7kbits/frame= 1746 fps= 15 q=28.0 size=  
63415kB time=00:01:07.88 bitrate=7653.1kbits/frame= 1754 fps= 15 q=28.0
size=   63706kB time=00:01:08.20 bitrate=7652.1kbits/frame= 1761 fps= 15
q=28.0 size=   63982kB time=00:01:08.48 bitrate=7653.9kbits/frame= 1769 fps=
15 q=28.0 size=   64329kB time=00:01:08.80 bitrate=7659.7kbits/frame= 1777
fps= 15 q=28.0 size=   64647kB time=00:01:09.12 bitrate=7661.9kbits/frame=
1785 fps= 15 q=28.0 size=   64963kB time=00:01:09.44
bitrate=7663.8kbits/frame= 1794 fps= 15 q=28.0 size=   65339kB
time=00:01:09.80 bitrate=7668.5kbits/frame= 1801 fps= 15 q=28.0 size=  
65623kB time=00:01:10.08 bitrate=7671.0kbits/frame= 1809 fps= 15 q=28.0
size=   65962kB time=00:01:10.40 bitrate=7675.6kbits/frame= 1817 fps= 15
q=28.0 size=   66294kB time=00:01:10.72 bitrate=7679.3kbits/frame= 1824 fps=
15 q=28.0 size=   66573kB time=00:01:11.00 bitrate=7681.2kbits/frame= 1832
fps= 15 q=28.0 size=   66877kB time=00:01:11.32 bitrate=7681.6kbits/frame=
1839 fps= 15 q=28.0 size=   67169kB time=00:01:11.60
bitrate=7685.0kbits/frame= 1848 fps= 15 q=28.0 size=   67553kB
time=00:01:11.96 bitrate=7690.2kbits/frame= 1856 fps= 15 q=28.0 size=  
67866kB time=00:01:12.28 bitrate=7691.8kbits/frame= 1864 fps= 15 q=28.0
size=   68201kB time=00:01:12.60 bitrate=7695.7kbits/frame= 1872 fps= 15
q=28.0 size=   68505kB time=00:01:12.92 bitrate=7696.0kbits/frame= 1880 fps=
15 q=28.0 size=   68832kB time=00:01:13.24 bitrate=7699.0kbits/frame= 1887
fps= 15 q=28.0 size=   69107kB time=00:01:13.52 bitrate=7700.3kbits/frame=
1895 fps= 15 q=28.0 size=   69433kB time=00:01:13.84
bitrate=7703.0kbits/frame= 1903 fps= 15 q=28.0 size=   69747kB
time=00:01:14.16 bitrate=7704.6kbits/frame= 1911 fps= 15 q=28.0 size=  
70094kB time=00:01:14.48 bitrate=7709.6kbits/frame= 1919 fps= 15 q=28.0
size=   70394kB time=00:01:14.80 bitrate=7709.5kbits/frame= 1928 fps= 15
q=28.0 size=   70763kB time=00:01:15.16 bitrate=7712.7kbits/frame= 1936 fps=
15 q=28.0 size=   71076kB time=00:01:15.48 bitrate=7714.0kbits/frame= 1944
fps= 15 q=28.0 size=   71435kB time=00:01:15.80 bitrate=7720.2kbits/frame=
1952 fps= 15 q=28.0 size=   71738kB time=00:01:16.12
bitrate=7720.4kbits/frame= 1959 fps= 15 q=28.0 size=   72026kB
time=00:01:16.40 bitrate=7723.0kbits/frame= 1967 fps= 15 q=28.0 size=  
72372kB time=00:01:16.72 bitrate=7727.7kbits/frame= 1974 fps= 15 q=28.0
size=   72638kB time=00:01:17.00 bitrate=7727.9kbits/frame= 1982 fps= 15
q=28.0 size=   73009kB time=00:01:17.32 bitrate=7735.3kbits/frame=
 1990 fps= 15 q=28.0 size=   73305kB time=00:01:17.64
bitrate=7734.6kbits/frame= 1997 fps= 15 q=28.0 size=   73620kB
time=00:01:17.92 bitrate=7739.9kbits/Truncating packet of size 622080 to
138241
[rawvideo @ 0xad27a20] Invalid buffer size, packet size 138240 < expected
length 622080
Error while decoding stream #0:0: Invalid argument
Truncating packet of size 622080 to 1
frame= 2002 fps= 14 q=-1.0 Lsize=   75832kB time=00:01:20.00
bitrate=7765.2kbits/s    
video:75793kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.051920%
[libx264 @ 0xad14020] frame I:9     Avg QP:27.97  size: 56424
[libx264 @ 0xad14020] frame P:1993  Avg QP:31.28  size: 38687
[libx264 @ 0xad14020] mb I  I16..4: 16.1% 18.1% 65.9%
[libx264 @ 0xad14020] mb P  I16..4: 15.0% 25.0% 56.9%  P16..4:  2.3%  0.4% 
0.4%  0.0%  0.0%    skip: 0.0%
[libx264 @ 0xad14020] 8x8 transform intra:25.8% inter:65.9%
[libx264 @ 0xad14020] coded y,uvDC,uvAC intra: 73.4% 92.7% 86.5% inter:
55.8% 99.6% 81.3%
[libx264 @ 0xad14020] i16 v,h,dc,p:  8% 88%  2%  1%
[libx264 @ 0xad14020] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  3% 76% 12%  1%  1%  0% 
2%  0%  5%
[libx264 @ 0xad14020] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  1% 91%  2%  0%  0%  0% 
1%  0%  3%
[libx264 @ 0xad14020] i8c dc,h,v,p: 10% 89%  1%  1%
[libx264 @ 0xad14020] Weighted P-Frames: Y:20.1% UV:15.8%
[libx264 @ 0xad14020] ref P L0:  1.1%  0.4% 70.2% 28.1%  0.2%
[libx264 @ 0xad14020] kb/s:7753.37
---------------------------------------------------------

My main problem is that ffmpeg doesnt support HWAcceleration Encoding, so I
want to decode a video using ffmpeg and then pass the output to my CUDA
based code to encode it using GPU. So I think I should do the Transcoding in
two steps as I described in last post.

When .YUV only contains video (pixels), I should have an audio output from
decoding step too, Right?



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Working-with-YUV-files-tp4652537p4652567.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list