Quantcast
Channel: VideoHelp Forum
Viewing all articles
Browse latest Browse all 45481

MJPEG and Progressive scan

$
0
0
Hi anyone,

I would like transcode from .mxf to .mjpg with FFMPEG but my NLE (In Sync Speed Razor 5.51) don't read the output files that I generate with ffmpeg.

I have upload my input files C0020.MXF on my dropbox: you can download it if you go on www.dropbox.com ad logon into it with this credential:

user: mrocchini@email.it
pass: centrale

My source is C0020.MXF and my reference output il C0020.AVI

I can not directly import .mxf files in Speed Razor, but I can use .avi/mjpg file e.g. the C0020.AVI I have in the dropbox.

This C0020.MXF is generated exporting C0020.mxf from another NLE (In Sync Blade 2.2) but the same results I can achieve using Virtualdub (I have previously installed the PIC Mjpeg compressor/decompressor in my pc).

I prefer use FFMPEG because I need of a -vtag MJPG [virtualdub generate as video tag "mjpg" but Speed Razor can use only "MJPG" and not "mjpg", but when I modify the output file .avi of virtualdub "mjpg"--->"MJPG" with a HEX editor the file is correctly readable by Speed Razor, so I can prefer use ffmpeg. There is another reason for using ffmpeg: ffmpeg export the same timecode to the .mjpg/avi file of the souce, Virtualdub loss the timecode metadata tag]

For trascoding C0020.mxf I use:

ffmpeg -y -i c0020.mxf -vcodec mjpeg -pix_fmt yuvj422p -vtag MJPG -an output.avi

but output.avi don't work, the NLE import the file but don't play it.

I would like to achieve a c0020.avi with ffmpeg that have same caratherics of the one I have in the dropbox, this is ok, I can play this file on the NLE:

General
Complete name : D:\c20\c0020.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 38.2 MiB
Duration : 6s 0ms
Overall bit rate : 53.4 Mbps

Video
ID : 0
Format : JPEG
Codec ID : MJPG
Duration : 6s 0ms
Bit rate : 53.3 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits

Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 1.028
Stream size : 38.1 MiB (100%)


The output.avi of ffmpeg, the wrog file it wont'play in NLE, is this:

General
Complete name : D:\output.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 106 MiB
Duration : 36s 600ms
Overall bit rate : 24.4 Mbps
Writing application : Lavf55.18.102

Video
ID : 0
Format : JPEG
Codec ID : MJPG
Duration : 36s 600ms
Bit rate : 24.4 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) : 0.470
Stream size : 106 MiB (100%)

The source file [c0020.mxf] is this:

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


It seems to me the only difference from c0020.avi (the ok file) and ouput.avi (the wrong) is c0020.avi is "progressive".

Can I achieve the progressive with FFMPEG? thank to all
Attached Thumbnails
Click image for larger version

Name:	SR.JPG
Views:	N/A
Size:	265.5 KB
ID:	20180  


Viewing all articles
Browse latest Browse all 45481

Trending Articles