[FFmpeg-user] 422 to 444 Upsampling Testbed

Vincent Olivier vincent at up4.com
Sun Apr 28 22:55:58 CEST 2013


On 2013-04-28, at 4:48 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Vincent Olivier <vincent <at> up4.com> writes:
> 
>> - the composite YUV image (in RGB)
> 
> This sounds like a contradiction.



It only "sounds" so because I (reasonably) assumed that you would have known I meant the reference PNG RGB converted from the 422 source (what one would get with a "default" 422 to RGB PNG conversion command).


>> - the Y luma (grayscale)
>> - the U chroma (grayscale)
>> - the V chroma (grayscale)
>> 
>> I found the "Fancy Filtering Examples" in the wiki 
>> and I tried to adapt the example to my needs but: 
>> 
>> 1) couldn't get the separate files: "Could not get 
>> frame filename number 2 from pattern 'y.png'
> 
> Please always provide your failing command line 
> together with complete, uncut console output.


pc1:~ vincent$ ffmpeg -i /Volumes/BACKUPT110/CONTENT/20130316191556/XDROOT/Clip/Clip0042.MXF -filter_complex  "split=4[a][b][c][d];[a]pad=iw*4:ih[w];[b]lutyuv=u=128:v=128[x];[c]lutyuv=y=0:v=128[y];[d]lutyuv=y=0:u=128[z];[w][x]overlay=w:0[wx];[wx][y]overlay=w*2:0[wxy];[wxy][z]overlay=w*3:0" -vframes 1 yuv.png y.png u.png v.png
ffmpeg version 1.1.git-dd17843 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 10 2013 11:51:43 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfaac
  libavutil      52. 22.101 / 52. 22.101
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 48.105 /  3. 48.105
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[mxf @ 0x7f8bf083f800] could not resolve sub descriptor strong ref
[mxf @ 0x7f8bf083f800] source track 11: stream 9, no descriptor found
[mxf @ 0x7f8bf083f800] Stream #9: not enough frames to estimate rate; consider increasing probesize
[mxf @ 0x7f8bf083f800] decoding for stream 0 failed
Guessed Channel Layout for  Input Stream #0.1 : mono
Guessed Channel Layout for  Input Stream #0.2 : mono
Guessed Channel Layout for  Input Stream #0.3 : mono
Guessed Channel Layout for  Input Stream #0.4 : mono
Guessed Channel Layout for  Input Stream #0.5 : mono
Guessed Channel Layout for  Input Stream #0.6 : mono
Guessed Channel Layout for  Input Stream #0.7 : mono
Guessed Channel Layout for  Input Stream #0.8 : mono
Input #0, mxf, from '/Volumes/BACKUPT110/CONTENT/20130316191556/XDROOT/Clip/Clip0042.MXF':
  Metadata:
    timecode        : 00:21:51:20
  Duration: 00:00:02.34, start: 0.000000, bitrate: 244604 kb/s
    Stream #0:0: Video: h264 (High 4:2:2 Intra), yuv422p10le, 4096x2160 [SAR 1:1 DAR 256:135], 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc
    Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #0:5: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #0:6: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #0:7: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #0:8: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #0:9: Data: none
Output #0, image2, to 'yuv.png':
  Metadata:
    timecode        : 00:21:51:20
    encoder         : Lavf55.0.100
    Stream #0:0: Video: png, rgba, 16384x2160 [SAR 1:1 DAR 1024:135], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc
Output #1, image2, to 'y.png':
  Metadata:
    timecode        : 00:21:51:20
    encoder         : Lavf55.0.100
    Stream #1:0: Video: png, rgb48be, 4096x2160 [SAR 1:1 DAR 256:135], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc
Output #2, image2, to 'u.png':
  Metadata:
    timecode        : 00:21:51:20
    encoder         : Lavf55.0.100
    Stream #2:0: Video: png, rgb48be, 4096x2160 [SAR 1:1 DAR 256:135], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc
Output #3, image2, to 'v.png':
  Metadata:
    timecode        : 00:21:51:20
    encoder         : Lavf55.0.100
    Stream #3:0: Video: png, rgb48be, 4096x2160 [SAR 1:1 DAR 256:135], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc
Stream mapping:
  Stream #0:0 (h264) -> split (graph 0)
  overlay (graph 0) -> Stream #0:0 (png)
  Stream #0:0 -> #1:0 (h264 -> png)
  Stream #0:0 -> #2:0 (h264 -> png)
  Stream #0:0 -> #3:0 (h264 -> png)
Press [q] to stop, [?] for help
Could not get frame filename number 2 from pattern 'y.png' (either set updatefirst or use a pattern like %03d within the filename pattern)
av_interleaved_write_frame(): Invalid argument


More information about the ffmpeg-user mailing list