[FFmpeg-user] Generating v210 uncompressed AVIs from v210 individual files in 720p and 1080i formats

FrancoisMace mace.francois at gmail.com
Fri Sep 2 13:40:02 CEST 2011


Hello everybody,

I am currently trying to generate uncompressed AVIs from individual files
containing fields (for 1080i) or frames (for 720p) formatted in v210.
I have already found some references on how to use FFMPEG to achieve
generating an uncompressed AVI with v210 formats, but I have ran into two
problems and I am hoping somebody might help me.

1. First of, for the generation on the uncompressed AVI in 1080i25, the
issue I have is to know how I can actually generate the AVI with an aspect
ratio of 1920x1080, knowing that my individual v210 files represent fields
and how I can specify the actual field number of the first inserted field. I
have used the following command:

ffmpeg -s 1920x540 -vcodec v210 -f image2 -pix_fmt yuv422ple -i
./Decoded_5/NewMobCal_YUV10_1080i25//50000000/NM_1080i_%05d.v210 -vcodec
v210 -r 25 -s 1920x540 -vframes 20 -y ./NewMobCal_YUV10_1080i25_50000.avi

However, this generates a (working) AVI but with aspect ratio 1920x540 and
where the image bounces a little bit up and downard (one frame over two)
because fields are used as frames.

2. Secondly, when I try to generate a 720p AVI, I ran into an error. My
original files are actually v210 with aspect ratio 1284x720 and I would like
to be able to use the -cropright 4 option to come back to the actual 720p
aspect ratio but I figured I should first manage to have the AVI generation
working.

My command line is the following:

ffmpeg -s 1284x720 -vcodec v210 -f image2 -pix_fmt yuv422ple -i
./Decoded_5/NewMobCal_YUV10_720p50/50000000/NM_720p_%05d.v210 -vcodec v210
-r 50 -s 1284x720 -vframes 20 -y ./NewMobCal_YUV10_720p50_50000.avi

And the error messages I got are:

FFmpeg version SVN-r19283, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --disable-static --enable-shared
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.32. 0 / 52.32. 0
  libavformat   52.36. 0 / 52.36. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Mar 23 2011 11:04:29, gcc: 4.4.3
Input #0, image2, from
'./Decoded_5/NewMobCal_YUV10_720p50/50000000/NM_720p_%05d.v210':
  Duration: 00:00:20.16, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: v210, yuv422ple, 1284x720, 25 tbr, 25 tbn, 25 tbc
[v210 @ 0x21d1030]bits per raw sample: 0 != 10-bit
Output #0, avi, to './NewMobCal_YUV10_720p50_50000.avi':
    Stream #0.0: Video: v210, yuv422ple, 1284x720, q=2-31, 200 kb/s, 50 tbn,
50 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
[v210 @ 0x21cf9e0]packet too small
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
...
Error while decoding stream #0.0
Error while decoding stream #0.0
    Last message repeated 503 times
[image2 @ 0x21ce390]Could not open file :
./Decoded_5/NewMobCal_YUV10_720p50/50000000/NM_720p_00504.v210
frame=    0 fps=  0 q=0.0 Lsize=       6kB time=10000000000.00 bitrate=  
0.0kbits/s    
video:0kB audio:0kB global headers:0kB muxing overhead inf%

My sequence has files starting with NM_720p_00000.v210 and ending at
NM_720p_00503.v210. Each of this file is generatied with the same
methodology as the one used for my 1080i fields (so I am pretty confident
the files are ok) and the file size is 2465280 bytes (corresponding to the
expected size of a v210 1284x720 image 1284x720/6*16).

Thank you in advance for your help and suggestions.

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Generating-v210-uncompressed-AVIs-from-v210-individual-files-in-720p-and-1080i-formats-tp3785848p3785848.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list