Hi
to encode my example-source file https://dl.dropboxusercontent.com/u/39871584/C0020.mxf I use:
ffmpeg -i d:\c0020.mxf -vcodec mjpeg -pix_fmt yuvj422p -q:v 0 -an output.avi
If I wont transcode at the highest quality possibly is correct I use -pix_fmt yuvj422p?
and to increase bitrate is correct I use -q:v 0?
thanks
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 11 of 11
Thread
-
-
For nonstandard MJPEG 10 bit can be used (beware as probably only ffmpeg will read such MJPEG), also q level should be not bellow 2 if you consider compatibility with non ffmpeg decoder.
ffmpeg.exe -i %1 -c:v mjpeg -q:v 2.0 -dc 10 -an %1.avi
but perhaps you should consider to use MPEG-2/1 in 1 GOP (single I frame) mode - it can be comparable to MJPEG but can provide better quality and compatibility (or just use H.264 in single I lossless mode).
seem that -pix_fmt is constantly ignored by ffmpeg (currently biggest problem with ffmpeg) -
so the encoding command line what should it be?
However I use and old NLE (speed razor 5.51 or blade 2.2) that can not import natively mxf or mpeg2 files.
It can import mxf and mpeg2 files via DirectShow but when I touch/scrub 15-20 clip it crashes because use too RAM, so I have to disable the directshow module "mediapostgeneric.rzf" of the nle. This way it can import only via VFW: for example I transcode the clip in mpeg2 or I can create an avi file using ffmpeg -vcodec copy that have default tag "mpg2", and do the association vidc.mpg2=ff_vfw.dll and installed FFdshow with "mpegINavi=libavcodec" and the nle import the clip but the first frame is black, and scrubbing shown deblocking and are not frame accurate (scrub1.jpg)
Because of this I have to transcode in mjpeg, Speed Razor is working well in mjpeg but quality is a little lower.
I would try to transcode in h.264 and use FFdshow as decoder but I don't know if it work well. -
Lossless "anything" will give you large filesizes . You complained earlier in another thread that they were too large
for interlaced, lossless encoding with x264
Code:ffmpeg.exe -i c0020.mxf -vcodec libx264 -pix_fmt yuv422p -preset veryfast -tune fastdecode -crf 0 -r 25.000 -flags +ildct+ilme -x264opts keyint=1:tff=1 -an x264_output.avi
scrubbing performance wise (decoding latency) , ut video (lossless) will be better than lossless x264 encoding, but larger filesizes . Ut video is probably the most popular the lossless codec of choise for most editing applications because of it's fast decoding performance
Code:ffmpeg.exe -i c0020.mxf -vcodec utvideo -pix_fmt yuv422p -flags +ildct+ilme -an ut_output.avi
-
ffmpeg.exe -i c0020.mxf -vcodec libx264 -pix_fmt yuv422p -preset veryfast -tune fastdecode -crf 0 -r 25.000 -flags +ildct+ilme -x264opts keyint=1:tff=1 -an x264_output.avi
quality is at the top, but large files.
Alternatively in the MJPEG case I wonder if it is possible to double the output bitrate with ffmpeg, for example:
ffmpeg -i d:\c0020.mxf -vcodec mjpeg -pix_fmt yuvj422p -q:v 0 -an output.avi
can I encode @ 200 Mb/s in mjpeg? -
-q:v 0 is the highest quality; you're already maxed out. You can only encode at 200Mb/s if the source allows you to (the higher the complexity of the content, the higher the bitrate)
Alternatively you can use libx264 with a higher crf value for smaller files e.g -crf 5 , or whatever value . And/or you can limit the max quantizer value -
in the meantime I have try to use ffdshow as decoder for h264 files imported in VFW in my nle butit seems that this type of codec is infected by the same disease that afflicts the mpeg2 files with the FFdshow: first frame black, seeking not accurate ecc...
FFdshow don't manage correctly
-
Try disabling h264/avc in ffdshow vfw decoder configuration, and use x264vfw (ffh264) as the decoder instead
http://sourceforge.net/projects/x264vfw/
It's time to use a modern NLE. It really is -
do it but: import seems ok, no first black frame but jerky playback
poison, an answer? can I encode in mjpeg @ 200-300 Mb/s with fmpeg?
the wmv codecs ffdshow you feel good to do video editing?
I'm sure when I will have found a way to make good use of Speed Razor also you to want you too my little nle son -
Poison I have found on internet this attached codec:
what is ffvfw.dll? it's not ff_vfw.dll of ffdshow
to install it on the system ad vfw codec you should right clic on the ffvfw.inf file and select Install (if you-don'thave-winXP)
can I configure it as a mpeg2 I frame codec? and use it for decoding? -
already answered above post #6
the wmv codecs ffdshow you feel good to do video editing?
Poison I have found on internet this attached codec:
what is ffvfw.dll?
Similar Threads
-
Is it possibile to see the FFmpeg command that Handbrake executes?
By falco2000 in forum Video ConversionReplies: 7Last Post: 21st Jun 2020, 11:03 -
ffmpeg.exe encoding in VFW as MEncoder?
By marcorocchini in forum Newbie / General discussionsReplies: 7Last Post: 11th Nov 2013, 14:47 -
the "-intra" command in ffmpeg.exe affects encoding "-vcodec copy" mode?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 23rd Oct 2013, 15:53 -
problem with ffmpeg.exe
By euphonic in forum Video ConversionReplies: 4Last Post: 9th Oct 2013, 12:00 -
Join Motion JPG (mjpeg/mjpg) without re-encoding
By giroro in forum EditingReplies: 13Last Post: 23rd Sep 2013, 09:25