Advertisement
intracube

ffmpeg .jp2 images to video

Mar 20th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. - Directory contains set of .jp2 files from 01_2a_0000155.jp2 to 01_2a_0000542.jp2
  2.  
  3. - Images are from Blender Foundation's 'Tears of Steel' Open Movie DVD
  4.  
  5. - mediainfo details for files:
  6. General
  7. Complete name : 01_2a_000155.jp2
  8. Format : JPEG 2000
  9. Format profile : MPEG-4
  10. Codec ID : jp2
  11. File size : 223 KiB
  12.  
  13. Image
  14. Format : JPEG 2000
  15. Width : 1 920 pixels
  16. Height : 1 012 pixels
  17. Color space : RGB
  18. Chroma subsampling : 4:4:4:4
  19. Bit depth : 8 bits
  20. Compression mode : Lossless
  21.  
  22. First test parameters:
  23. ffmpeg -f image2 -r 24 -start_number 155 -i 01_2a_00%04d.jp2 -c:v libx264 -vf scale=854:480 -pix_fmt yuv420p /home/paul/test.mp4
  24.  
  25. - which gave this error:
  26. [image2 @ 0x2082520] Could not find codec parameters for stream 0 (Video: jpeg2000): unspecified size
  27. Consider increasing the value for the 'analyzeduration' and 'probesize' options
  28. 01_2a_00%04d.jp2: could not find codec parameters
  29.  
  30. - Fixed by adding -s 1920x1012. Next error was:
  31. Unable to parse option value "-1" as pixel format
  32. Error opening filters!
  33.  
  34. Not sure what to try next. Adding -pix_fmt rgba doesn't help although 'rgba' might not be the correct value to use.
  35.  
  36. Most recent ffmpeg params:
  37. ffmpeg -f image2 -r 24 -s 1920x1012 -pix_fmt rgba -start_number 155 -i 01_2a_00%04d.jp2 -c:v libx264 -vf scale=854:480 -pix_fmt yuv420p /home/paul/test.mp4
  38.  
  39. and the subsequent error:
  40. ffmpeg version 1.0.5 Copyright (c) 2000-2012 the FFmpeg developers
  41. built on Mar 8 2013 22:07:43 with gcc 4.7 (SUSE Linux)
  42. configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc
  43. libavutil 51. 73.101 / 51. 73.101
  44. libavcodec 54. 59.100 / 54. 59.100
  45. libavformat 54. 29.104 / 54. 29.104
  46. libavdevice 54. 2.101 / 54. 2.101
  47. libavfilter 3. 17.100 / 3. 17.100
  48. libswscale 2. 1.101 / 2. 1.101
  49. libswresample 0. 15.100 / 0. 15.100
  50. libpostproc 52. 0.100 / 52. 0.100
  51. [NULL @ 0x1b1a880] Codec is experimental but experimental codecs are not enabled, try -strict -2
  52. Input #0, image2, from '01_2a_00%04d.jp2':
  53. Duration: 00:00:16.16, start: 0.000000, bitrate: N/A
  54. Stream #0:0: Video: jpeg2000, rgba, 1920x1012, 24 fps, 24 tbr, 24 tbn, 24 tbc
  55. [libx264 @ 0x1b152a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
  56. [libx264 @ 0x1b152a0] profile High, level 3.0
  57. [libx264 @ 0x1b152a0] 264 - core 129 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - 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=12 lookahead_threads=2 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=24 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
  58. [NULL @ 0x1b1a880] Codec is experimental but experimental codecs are not enabled, try -strict -2
  59. Output #0, mp4, to '/home/paul/test.mp4':
  60. Stream #0:0: Video: h264, yuv420p, 854x480, q=-1--1, 90k tbn, 24 tbc
  61. Stream mapping:
  62. Stream #0:0 -> #0:0 (j2k -> libx264)
  63. Error while opening decoder for input stream #0:0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement