New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help: Output of a valid XDCAM HD422 #966
Comments
We will probably need to enhance FFmpegFrameRecorder for that. It shouldn't
be too hard to update, so let me know if you encounter any issues while
making modifications by yourself, and I will help. Thanks!
|
This is the command of the FFMPEG behavior I want to reproduce in JavaCV: As mentioned before I can export a video file yet. But its not valid. In Java the 'input.png' would be a BufferedImage. A workaround would be to export a uncompressed video and then execute the command directly with FFMPEG. But it would be slicker if it would run inside JavaCV without a temp file. I don't really know where to start. |
Yes, I understand that. Please consider making a contribution. I will help
if you encounter any issues.
|
For starters, read the source code of FFmpegFrameRecorder and try to understand how it works. |
Maybe I will try this when I have enough spare time but for now I used a fairly new library called Jaffree to do what I wanted to do. For my case it was easier to use and worked out of the box. Anyway thank you for your help, until now. |
BTW, with commit bytedeco/javacpp-presets@13ffffd the String ffmpeg = Loader.load(org.bytedeco.ffmpeg.ffmpeg.class);
ProcessBuilder pb = new ProcessBuilder(ffmpeg, "-t", "5", "-loop", "1", "-i", "input.png", "-f", "lavfi", "-i", "anullsrc=channel_layout=mono:sample_rate=48000", "-vcodec", "mpeg2video", "-s", "1920x1080", "-b:v", "50000k", "-minrate", "50000k", "-maxrate", "50000k", "-r", "25", "-flags", "ilme", "-top", ""1"", "-pix_fmt", "yuv422p", "-profile:v", "0", "-level:v", "2", "-acodec", "pcm_s24le", "-ar", "48000", "-shortest", "-map", "0:0", "-map", "1:0", "-map", "1:0", "output.mxf");
pb.inheritIO().start().waitFor(); Please give it a try with 1.5-SNAPSHOT before the release: http://bytedeco.org/builds/ |
FYI, the JavaCPP Presets for FFmpeg and Jaffree are fully complimentary. String ffmpeg = Loader.load(org.bytedeco.ffmpeg.ffmpeg.class);
FFmpeg.atPath(Paths.get(ffmpeg).getParent())... This way, we don't need to have FFmpeg installed on the system. |
Hello,
I want to ouput a valid MXF in the XDCAM HD422 format.
I already got it to ouput the MXF with the video and MediaInfo recognizes that its a XDCAM HD422 but its not fully valid so I can't import it into Vegas Pro.
When I set the flag "ilme" it is interlaced as intended but bottom first. It needs to be top first. But when I set parameter "top" to 1 it gets ignored. When I try this with a standalone version of FFMPEG it works. The next problem would be that a valid XDCAM HD422 need to audio tracks. How can I achieve this?
Here the questions in short:
Thanks in advance.
Valid XDCAM HD422 encoded with Adobe Media Encoder:
My current output (Don't wonder about the differentz file size. It's not the same source.):
The text was updated successfully, but these errors were encountered: