0

VOB/MPEG2 restoring workflow

Hi,

what's the best choice for restoring a MPEG2 file (VOB demuxed from a DVD)?

MPEG2 to H.264 ?

MPEG2 to DNxHR?

MPEG2 to Prores?

MPEG2 to DV25?

MPEG2 to TIFF?

Can we use a proxy video file?

Thanks!

PS

goal: good stability of application during editing

5replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • Mario Rossi
    • hobbyist
    • Mario_Rossi
    • 3 mths ago
    • Reported - view

    I think this is perfect for now:

    ffmpeg -i input.avi -map 0:0 -c:v dnxhd -vf "pad=960:720:(ow-iw)/2:(oh-ih)/2,fps=25,format=yuv422p" -b:v 42M output_for_phoenix.mov

    Source file is:

    Codec ID                                 : DX50
    Codec ID/Hint                            : DivX 5
    Duration                                 : 1 h 26 min
    Bit rate                                 : 1 236 kb/s
    Nominal bit rate                         : 7 800 kb/s
    Width                                    : 608 pixels
    Height                                   : 464 pixels
    Display aspect ratio                     : 4:3
    Frame rate                               : 29.970 (30000/1001) FPS

    result (perfect for dnxhd size compatibility):

    Like
    • Mario Rossi Ideally you want to convert to an intraframe codec, so it's easier to process and will yield better results. DNX and Prores family are the most commonly used.

      Like 1
      • Mario Rossi
      • hobbyist
      • Mario_Rossi
      • 2 wk ago
      • Reported - view

      Gustavo Mendes maybe we can use this way:

      ffmpeg -hide_banner -hwaccel cuda -hwaccel_output_format cuda -i "input.m2ts" -map 0:0 -c:v h264_nvenc -preset lossless -forced-idr 1 -f mp4 "output.mp4"
      • intraframe --> -forced-idr 1 (info about IDF here)
      • fast encoding --> via CUDA (I have a RTX 4070 Ti 12GB / i9-14900k 32GB)
      • efficent space --> For a 10m 53s film (720x480p@23.976fps - 651MB):
        • "visually lossless" --> Apple ProRes 4444 XQ --> 5.2GB
        • "true lossless" -->  h264_nvenc (lossless, force-idr) --> 1.8GB

      What is your opinion? 

      Thanks!

      Like
    • Mario Rossi I still would not recommend an h.264 file intraframe. As you can see by the size difference, there's still compression happening going to an MPEG-4 codec. It's not commonly used in the industry and you can run into issues playing it back on some systems. Prores, DNX and even FFv1 will have better compatibility. 

      Now, if it works for your specific workflow, for it! I have not tested an intraframe transport in Phoenix, so your mileage may vary.

      Like 1
      • Mario Rossi
      • hobbyist
      • Mario_Rossi
      • 2 wk ago
      • Reported - view

      Not so bad FFV1 :)

      ffmpeg -hide_banner -i "input.m2ts" -map 0:0 -c:v ffv1 -level 3 "output_ffv1_level-v3.mxf"

      produces a lossless 1.9GB file.:

      General
      Complete name                            : ouput.mxf
      Format                                   : MXF
      Format version                           : 1.3
      Format profile                           : OP-1a
      Format settings                          : Closed / Complete
      File size                                : 1.81 GiB
      Duration                                 : 10 min 53 s
      Overall bit rate mode                    : Variable
      Overall bit rate                         : 23.8 Mb/s
      Frame rate                               : 29.970 FPS
      Encoded date                             : 0-00-00 00:00:00.000
      Writing application                      : FFmpeg OP1a Muxer 61.7.100.0.0
      Writing library                          : Lavf (mingw32) 61.7.100.0.0
      
      Video
      ID                                       : 2
      Format                                   : FFV1
      Format version                           : Version 3.4
      Format settings, wrapping mode           : Frame
      Format settings, Slice count             : 4 slices per frame
      Codec ID                                 : 0D01030102230100-0401020203090400
      Duration                                 : 10 min 53 s
      Bit rate mode                            : Variable
      Bit rate                                 : 23.8 Mb/s
      Width                                    : 720 pixels
      Height                                   : 480 pixels
      Display aspect ratio                     : 4:3
      Frame rate                               : 29.970 (30000/1001) FPS
      Standard                                 : NTSC
      Color space                              : YUV
      Chroma subsampling                       : 4:2:0
      Bit depth                                : 8 bits
      Scan type                                : Progressive
      Compression mode                         : Lossless
      Bits/(Pixel*Frame)                       : 2.294
      Stream size                              : 1.81 GiB (100%)
      Color range                              : Limited
      Color primaries                          : BT.601 NTSC
      Transfer characteristics                 : BT.709
      Matrix coefficients                      : BT.601
      coder_type                               : Golomb Rice
      ErrorDetectionType                       : Per slice
      
      Other #1
      ID                                       : 1-Material
      Type                                     : Time code
      Format                                   : MXF TC
      Frame rate                               : 29.970 (30000/1001) FPS
      Time code of first frame                 : 00:00:00:00
      Time code of last frame                  : 00:10:53:02
      Time code settings                       : Material Package
      Time code, stripped                      : Yes
      
      Other #2
      ID                                       : 1-Source
      Type                                     : Time code
      Format                                   : MXF TC
      Frame rate                               : 29.970 (30000/1001) FPS
      Time code of first frame                 : 00:00:00:00
      Time code of last frame                  : 00:10:53:02
      Time code settings                       : Source Package
      Time code, stripped                      : Yes
      
      Other #3
      Type                                     : Time code
      Format                                   : SMPTE TC
      Muxing mode                              : SDTI
      Frame rate                               : 29.970 (30000/1001) FPS
      Time code of first frame                 : 00:00:00:00

      I'll try FFV1 and h264 testing stability..

      Anyway, FFV1 pros = small output size, cons = no GPU enconding :(

      Gustavo is FFV1 only for write or also for read? (https://forum.filmworkz.com/t/83yq2c3/supported-formats)

      Like
Like Follow
  • 2 wk agoLast active
  • 5Replies
  • 47Views
  • 2 Following