Revert a Digital Cinema Package back to a ProRes file, to (kind of) verify if the DCP creation wen't well

ffmpeg -i VIDEODCP.mxf -i AUDIODCP.mxf -vcodec h264 -acodec aac reverse-prores.mov
Revert a Digital Cinema Package back to a ProRes file, to (kind of) verify if the DCP creation wen't well
Sample Output
ffmpeg -i RIO_MUMBAI.mxf -i RIO_MUMBAI_AUDIO.mxf -vcodec h264 -acodec aac reverse-prores.mov
ffmpeg version 3.1.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.3.0 (clang-703.0.31)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.1.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --disable-lzma --enable-vda
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
[mxf @ 0x7f88e2002600] "OPAtom" with 2 ECs - assuming OP1a
Input #0, mxf, from 'RIO_MUMBAI.mxf':
  Metadata:
    uid             : 5f9bf17f-fff7-4ad7-9305-315ec564afdd
    generation_uid  : 8a8c0049-fe43-4068-9b49-c15254a869b9
    company_name    : OpenDCP
    product_name    : OpenDCP
    product_version : 0.30.0
    product_uid     : 43059a1d-0432-4101-b83f-736815acf31d
    modification_date: 2017-06-16 14:42:03
    application_platform: osx
    material_package_umid: 0x060A2B340101010501010F201300000020A5FB1C2E4743B5B67BA547DF516FF5
    material_package_name: AS-DCP Material Package
    timecode        : 00:00:00:00
  Duration: 01:26:46.80, start: 0.000000, bitrate: 116475 kb/s
    Stream #0:0: Video: jpeg2000 (JPEG 2000 digital cinema 2K), xyz12le, 2048x858, SAR 1:1 DAR 1024:429, 25 tbr, 25 tbn, 25 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010F201300000032832EDDB40F4A109B08D5E097BDDAC5
      file_package_name: File Package: SMPTE 429-4 frame wrapping of JPEG 2000 codestreams
[mxf @ 0x7f88e4801400] "OPAtom" with 2 ECs - assuming OP1a
Guessed Channel Layout for Input Stream #1.0 : 5.1
Input #1, mxf, from 'RIO_MUMBAI_AUDIO.mxf':
  Metadata:
    uid             : 2d8531f1-ef72-4f58-84f4-fd5079ec4712
    generation_uid  : 1d109b53-e6fe-41e6-bef9-e43794659ce7
    company_name    : OpenDCP
    product_name    : OpenDCP
    product_version : 0.30.0
    product_uid     : 43059a1d-0432-4101-b83f-736815acf31d
    modification_date: 2017-06-16 12:42:20
    application_platform: osx
    material_package_umid: 0x060A2B340101010501010F2013000000C207204B7C0348819130E58F83F76AFB
    material_package_name: AS-DCP Material Package
    timecode        : 00:00:00:00
  Duration: 01:26:46.80, start: 0.000000, bitrate: 6916 kb/s
    Stream #1:0: Audio: pcm_s24le, 48000 Hz, 6 channels, s32 (24 bit), 6912 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010F201300000010E7B42BFD9D48758B5D63380CE1A6A9
      file_package_name: File Package: SMPTE 382M frame wrapping of wave audio
No pixel format specified, yuv444p10le for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x7f88e4802600] using SAR=1/1
[libx264 @ 0x7f88e4802600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x7f88e4802600] profile High 4:4:4 Predictive, level 4.0, 4:4:4 10-bit
[libx264 @ 0x7f88e4802600] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - 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=4 threads=27 lookahead_threads=4 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=81 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mov @ 0x7f88e481be00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, mov, to 'reverse-prores.mov':
  Metadata:
    uid             : 5f9bf17f-fff7-4ad7-9305-315ec564afdd
    generation_uid  : 8a8c0049-fe43-4068-9b49-c15254a869b9
    company_name    : OpenDCP
    product_name    : OpenDCP
    product_version : 0.30.0
    product_uid     : 43059a1d-0432-4101-b83f-736815acf31d
    modification_date: 2017-06-16 14:42:03
    application_platform: osx
    material_package_umid: 0x060A2B340101010501010F201300000020A5FB1C2E4743B5B67BA547DF516FF5
    material_package_name: AS-DCP Material Package
    timecode        : 00:00:00:00
    encoder         : Lavf57.41.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p10le, 2048x858 [SAR 1:1 DAR 1024:429], q=-1--1, 0.04 fps, 12800 tbn, 25 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010F201300000032832EDDB40F4A109B08D5E097BDDAC5
      file_package_name: File Package: SMPTE 429-4 frame wrapping of JPEG 2000 codestreams
      encoder         : Lavc57.48.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp (24 bit), 341 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010F201300000010E7B42BFD9D48758B5D63380CE1A6A9
      file_package_name: File Package: SMPTE 382M frame wrapping of wave audio
      encoder         : Lavc57.48.101 aac
Stream mapping:
  Stream #0:0 -> #0:0 (jpeg2000 (native) -> h264 (libx264))
  Stream #1:0 -> #0:1 (pcm_s24le (native) -> aac (native))
Press [q] to stop, [?] for help
frame=    2 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=    6 fps=4.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   12 fps=6.5 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   17 fps=7.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   22 fps=7.6 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   28 fps=8.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   34 fps=8.4 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   40 fps=8.6 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   45 fps=8.7 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   51 fps=8.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   56 fps=8.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   61 fps=8.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   66 fps=9.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   71 fps=9.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=   75 fps=8.9 q=40.0 size=       1kB time=00:00:00.06 bitrate= 176.4kbits/frame=   81 fps=9.0 q=40.0 size=       2kB time=00:00:00.29 bitrate=  52.2kbits/frame=   87 fps=9.2 q=40.0 size=       3kB time=00:00:00.55 bitrate=  37.4kbits/frame=   93 fps=9.3 q=40.0 size=       3kB time=00:00:00.78 bitrate=  32.2kbits/frame=   99 fps=9.4 q=40.0 size=       4kB time=00:00:01.02 bitrate=  34.9kbits/frame=  105 fps=9.4 q=40.0 size=       8kB time=00:00:01.25 bitrate=  50.7kbits/frame=  111 fps=9.5 q=40.0 size=      11kB time=00:00:01.51 bitrate=  58.4kbits/frame=  117 fps=9.6 q=40.0 size=      16kB time=00:00:01.74 bitrate=  74.9kbits/frame=  123 fps=9.7 q=40.0 size=      32kB time=00:00:01.98 bitrate= 130.6kbits/frame=  129 fps=9.7 q=40.0 size=      38kB time=00:00:02.21 bitrate= 141.8kbits/frame=  135 fps=9.8 q=40.0 size=      42kB time=00:00:02.47 bitrate= 138.8kbits/frame=  141 fps=9.8 q=40.0 size=      43kB time=00:00:02.70 bitrate= 129.0kbits/frame=  147 fps=9.8 q=40.0 size=      44kB time=00:00:02.94 bitrate= 122.7kbits/frame=  153 fps=9.9 q=40.0 size=      45kB time=00:00:03.17 bitrate= 115.5kbits/frame=  159 fps=9.9 q=40.0 size=      46kB time=00:00:03.43 bitrate= 108.6kbits/frame=  165 fps= 10 q=40.0 size=      46kB time=00:00:03.66 bitrate= 103.2kbits/frame=  171 fps= 10 q=40.0 size=      47kB time=00:00:03.90 bitrate=  98.4kbits/frame=  177 fps= 10 q=40.0 size=      48kB time=00:00:04.13 bitrate=  94.0kbits/frame=  183 fps= 10 q=40.0 size=      48kB time=00:00:04.39 bitrate=  89.9kbits/frame=  189 fps= 10 q=40.0 size=      49kB time=00:00:04.62 bitrate=  86.6kbits/frame=  195 fps= 10 q=40.0 size=      50kB time=00:00:04.86 bitrate=  83.5kbits/frame=  201 fps= 10 q=40.0 size=      50kB time=00:00:05.09 bitrate=  80.7kbits/frame=  206 fps= 10 q=40.0 size=      51kB time=00:00:05.31 bitrate=  78.4kbits/frame=  211 fps= 10 q=40.0 size=      53kB time=00:00:05.50 bitrate=  79.3kbits/frame=  217 fps= 10

0
By: ghms
2017-06-16 18:00:48

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: