VideoHelp Forum
+ Reply to Thread
Results 1 to 8 of 8
Thread
  1. Hi,

    I have a dv video with metadata as below.

    General
    Complete name : D:\Video.mov
    Format : MPEG-4
    Commercial name : DVCPRO HD
    Format profile : QuickTime
    Codec ID : qt
    File size : 48.3 GiB
    Duration : 59mn 16s
    Overall bit rate mode : Constant
    Overall bit rate : 117 Mbps
    Encoded date : UTC 2012-05-10 19:16:00
    Tagged date : UTC 2012-05-25 16:04:09
    Writing library : Apple QuickTime 7.7
    Media/UUID : D9F1C24C-5AB1-4690-BB19-CA591BBE3A95
    com.apple.quicktime.player.movie.audio.m : (Binary)

    Video
    ID : 1
    Format : DV
    Commercial name : DVCPRO HD
    Codec ID : dvh3
    Duration : 59mn 16s
    Bit rate mode : Constant
    Bit rate : 97.8 Mbps
    Encoded bit rate : 115 Mbps
    Width : 1 259 pixels
    Original width : 1 280 pixels
    Height : 1 062 pixels
    Original height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 29.970 fps
    Standard : NTSC
    Color space : YUV
    Chroma subsampling : 4:2:2
    Bit depth : 10 bits
    Scan type : Progressive
    Original scan type : Interlaced
    Original scan order : Top Field First
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 2.440
    Stream size : 40.5 GiB (84%)
    Encoded stream size : 47.6 GiB (99%)
    Language : English
    Encoded date : UTC 2012-05-10 19:16:00
    Tagged date : UTC 2012-05-25 16:04:09
    Color primaries : BT.709
    Transfer characteristics : BT.709
    Matrix coefficients : BT.709

    Audio
    ID : 2
    Format : PCM
    Format settings, Endianness : Little
    Format settings, Sign : Signed
    Codec ID : sowt
    Duration : 59mn 16s
    Bit rate mode : Constant
    Bit rate : 1 536 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Stream size : 651 MiB (1%)
    Language : English
    Encoded date : UTC 2012-05-10 19:16:00

    These are the requirements
    1. Output to h.264 video
    2. deinterlace (filter:v yadif)
    3. convert subsampling to 420 from 422

    Is it possible wth ffmpeg or any other video transcoding tool?

    The script I used is

    Code:
    ffmpeg -nostats -i "Video.mov" -c:v libx264 -rpofile:v high422 -preset slow -s 1280x720 -x264opts 
    crf=21:vbv-maxrate=16000:vbv-bufsize=16000:keyint=40:ref=3 -threads 0 -filter:v yadif -c:a libvo_aacenc -b:a 128k -ac 2 
    -ar 44100 "Video.mp4"
    Last edited by wotdefcuk; 23rd Jan 2013 at 09:11. Reason: more info
    Quote Quote  
  2. What errors did you get back when you tried it? And why are you using -nostats?
    Quote Quote  
  3. There were no errors. The video converted fine but I had to do it with profile high422 and my decoder does not support that profile. using other profiles gave me an error saying

    Code:
    x264 [error]: main profile doesn't support 4:2:2
    [libx264 @ 031cf320] Error setting profile main.
    [libx264 @ 031cf320] Possible profiles: baseline main high high10 high422 high444
    And a fatal error saying

    Code:
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters
    such as bit_rate, rate, width or height
    Quote Quote  
  4. -rpofile:v high422
    is that supposed to be -profile:v ?

    Why are you using high422 if the desired output is 420 ?

    The old syntax for ffmpeg was -pix_fmt yuv420p . There are a bunch of changes recently to ffmpeg syntax, I don't know what it is currently.

    (In x264CLI, --profile does nothing to the actual colorspace (it's just a label), you have to specify --input-csp i422 --output-csp i420 , but in ffmpeg, -pix_fmt used to be enough to use swscale to convert colorspaces)
    Quote Quote  
  5. Try changing
    -rpofile:v high422 (misspelled by the way) to -pix_fmt yuv422p

    edit: oops, thought you were going the other way. poisondeathray's command should work.
    Quote Quote  
  6. Doing it now. It looks like it is working. I am not sure if the deinterlacing will work or not though but will let you know.
    Quote Quote  
  7. General
    Complete name : D:\Video.mp4
    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom
    File size : 1.72 GiB
    Duration : 1h 0mn
    Overall bit rate : 4 057 Kbps
    Writing application : Lavf54.61.101

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L3.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 1h 0mn
    Bit rate : 3 921 Kbps
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 29.970 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.142
    Stream size : 1.66 GiB (97%)
    Writing library : x264 core 129 r2245 bc13772
    Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / 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=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=40 / keyint_min=4 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=21.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=16000 / vbv_bufsize=16000 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
    Language : English

    Audio
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format profile : LC
    Codec ID : 40
    Duration : 1h 0mn
    Duration_LastFrame : -11ms
    Bit rate mode : Constant
    Bit rate : 128 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 44.1 KHz
    Compression mode : Lossy
    Delay relative to video : 67ms
    Stream size : 55.5 MiB (3%)
    Language : English


    Great it was able to convert chroma subsampling from 4:2:2 to 4:2:0 but the profile is high. Is there a way to control the profile too?
    Quote Quote  
  8. Originally Posted by wotdefcuk View Post
    Is there a way to control the profile too?
    -profile

    https://sites.google.com/site/linuxencoding/x264-ffmpeg-mapping
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!