Hi anyone,
I would like to encode from .mxf (sony xdcam hd 422 files) to mjpeg 422
I have to upload my C0020.mxf file to my dropbox:
(www.dropbox.com logon into it with this credential: user: mrocchini@email.it password is: centrale forlder: "public")
General
Complete name : D:\C0020.mxf
Format : MXF
Commercial name : XDCAM HD422
Format profile : OP-1a
Format settings : Closed / Complete
File size : 263 MiB
Duration : 36s 600ms
Overall bit rate : 60.3 Mbps
Encoded date : 2013-05-24 22:12:18.000
Writing application : SONY Opt 1.22
Writing library : SONY Opt 1.22
Video
ID : 2
Format : MPEG Video
Commercial name : XDCAM HD422
Format version : Version 2
Format profile : 4:2:2@High
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=12
Format_Settings_Wrapping : Frame
Duration : 36s 600ms
Bit rate : 50.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.965
Stream size : 218 MiB (83%)
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio #1
ID : 3
Format : PCM
Format settings, Endianness : Little
Format_Settings_Wrapping : Frame (AES)
Duration : 36s 600ms
Bit rate mode : Constant
Bit rate : 1 152 Kbps
Channel(s) : 1 channel
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Stream size : 5.03 MiB (2%)
Audio #2
ID : 4
Format : PCM
Format settings, Endianness : Little
Format_Settings_Wrapping : Frame (AES)
Duration : 36s 600ms
Bit rate mode : Constant
Bit rate : 1 152 Kbps
Channel(s) : 1 channel
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Stream size : 5.03 MiB (2%)
Audio #3
ID : 5
Format : PCM
Format settings, Endianness : Little
Format_Settings_Wrapping : Frame (AES)
Duration : 36s 600ms
Bit rate mode : Constant
Bit rate : 1 152 Kbps
Channel(s) : 1 channel
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Stream size : 5.03 MiB (2%)
Audio #4
ID : 6
Format : PCM
Format settings, Endianness : Little
Format_Settings_Wrapping : Frame (AES)
Duration : 36s 600ms
Bit rate mode : Constant
Bit rate : 1 152 Kbps
Channel(s) : 1 channel
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Stream size : 5.03 MiB (2%)
Audio #5
ID : 7
Format : PCM
Format settings, Endianness : Little
Format_Settings_Wrapping : Frame (AES)
Duration : 36s 600ms
Bit rate mode : Constant
Bit rate : 1 152 Kbps
Channel(s) : 1 channel
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Stream size : 5.03 MiB (2%)
Audio #6
ID : 8
Format : PCM
Format settings, Endianness : Little
Format_Settings_Wrapping : Frame (AES)
Duration : 36s 600ms
Bit rate mode : Constant
Bit rate : 1 152 Kbps
Channel(s) : 1 channel
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Stream size : 5.03 MiB (2%)
Audio #7
ID : 9
Format : PCM
Format settings, Endianness : Little
Format_Settings_Wrapping : Frame (AES)
Duration : 36s 600ms
Bit rate mode : Constant
Bit rate : 1 152 Kbps
Channel(s) : 1 channel
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Stream size : 5.03 MiB (2%)
Audio #8
ID : 10
Format : PCM
Format settings, Endianness : Little
Format_Settings_Wrapping : Frame (AES)
Duration : 36s 600ms
Bit rate mode : Constant
Bit rate : 1 152 Kbps
Channel(s) : 1 channel
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Stream size : 5.03 MiB (2%)
Other #1
ID : 1
Type : Time code
Format : MXF TC
Time code of first frame : 01:34:21:15
Time code settings : Striped
Other #2
Type : Time code
Format : SMPTE TC
Muxing mode : SDTI
Time code of first frame : 01:34:21:15
Initially I used FFMBC:
FFMBC -i C0020.mxf -vcodec mjpeg -an output.avi
but it returns this error message:
Incompatible pixel format 'yuv422p' for codec 'mjpeg', auto-selecting format 'yuvj420p'
but I don't want a 4:2:0 file
So I have try with the zeranoe version of FFMPEG:
FFMPEG -i c0020.mxf -vcodec mjpeg -q:v 0 -an output.avi
it produce a mjpeg file but my NLE is not able to read the output.avi
This is the report of mediainfo:
General
Complete name : I:\output.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 536 MiB
Duration : 36s 600ms
Overall bit rate : 123 Mbps
Writing application : Lavf55.11.100
Video
ID : 0
Format : JPEG
Codec ID : MJPG
Duration : 36s 600ms
Bit rate : 123 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Bit depth : 8 bits
Compression mode : Lossy
Bits/(Pixel*Frame) : 2.370
Stream size : 536 MiB (100%)
Maybe is unreadable because it is not (clearly) an interlaced output?
I would like to encode an interlaced mjpeg file, how is the setting of the FFMPEG to encode in interlace mode?
thanks!
+ Reply to Thread
Results 1 to 11 of 11
-
-
the "p" in yuv422p indicates "planar"
marcorocchini - this was suggested to you many times, but you should just upgrade your NLE. XDCAM-HD is one of the most popular, commonly used formats (esp. in broadcast)
I don't think there is any interlaced encoding for mjpeg
in ffmpeg, generic interlaced switch is usually -flags +ilme+ildct , and -tff for top field first, or -bff for bottom field first. Some builds use -top 0 (bff), or top 1 (tff) -
-
poison, a kindness:
I have partially solved in this way
ffmpeg.exe -y -i c0020.mxf -vcodec mjpeg -vf crop=1920:1080:0:0,colormatrix=bt709:bt601 -pix_fmt yuvj422p -intra -q:v 0 -an output4.avi
but now I have a problem with video levels:
in FFMPEG is possible to change from 16-235/16-255/0-255 levels?
thank you -
I frist thought that:
Code:-color_primaries <int> ED.V.. (from 1 to 8) -color_trc <int> ED.V.. (from 1 to 7) -colorspace <int> ED.V.. (from 1 to 8) -color_range <int> ED.V.. (from 0 to 2)
As far as I know for RGB content ffmpeg assumes pc and for all yuv content tv scale,.. -
mjpeg is frequently decoded as full range yuv - it's also dependent on the decoder settings in your application. Some mjpeg decoders will clamp to 16-235. "yuvj422p" will be full range YUV. (The "j" indicates full range 0-255), so if you decoder doesn't clamp, it will be 0-255
I see there is a new curves filter in the ffmpeg 2.0 changelog. If it works like typical curves filters, you should be able to change levels -
looking at the different pix_fmts:
4:2:0, 0-255
Code:-pix_fmt yuvj420p
Code:-pix_fmt yuv420p
Code:-pix_fmt yuvj422p
Code:-pix_fmt yuvj422p
Code:-pix_fmt yuv444p
-> okay, forget that, seems like one can only set the pix_fmt for the output,...Last edited by Selur; 11th Jul 2013 at 10:33.
Similar Threads
-
libfaac encoding with ffmpeg
By chicken264 in forum Video ConversionReplies: 31Last Post: 20th Dec 2012, 08:04 -
Question - how to make ffmpeg use mjpeg codecs when it encounters 4CC code
By bf4648 in forum Video ConversionReplies: 0Last Post: 12th Oct 2011, 16:53 -
ffmpeg output 2gb limit? Is there one? ffmpeg stops encoding h264 @ 2gb
By BrainiakZ in forum Video ConversionReplies: 14Last Post: 30th Mar 2011, 12:04 -
ffmpeg encoding issues
By nj473 in forum Video ConversionReplies: 0Last Post: 7th Feb 2010, 19:20 -
FFMPEG Live encoding
By mahidhara in forum Video Streaming DownloadingReplies: 1Last Post: 31st Mar 2009, 15:31