LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   convert a video file to mxf mxf container format (https://www.linuxquestions.org/questions/linux-newbie-8/convert-a-video-file-to-mxf-mxf-container-format-811262/)

Himanshu Mittal 05-31-2010 08:30 AM

convert a video file to mxf mxf container format
 
Hi All
I am trying to convert a mpg video file to mxf container format using ffmpeg by follwing command.
ffmpeg -y -i INPUT.mpg -s 640x480 -vcodec mjpeg -b 5Mb -minrate 4Mb -maxrate 6Mb -bufsize 3Mb -an -f mxf OUTPUT.mxf

I get this error::
FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-shared --enable-libmp3lame
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on May 25 2010 23:17:29, gcc: 4.1.2 20070626 (Red Hat 4.1.2-14)
Input #0, mpeg, from 'INPUT.mpg':
Duration: 00:00:45.92, start: 0.614889, bitrate: 660 kb/s
Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 550 kb/s, 25 tbr, 90k tbn, 25 tbc
Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16, 96 kb/s
[imgconvert @ 0x1bca290]PIX_FMT_YUV420P will be used as an intermediate format for rescaling
Output #0, mxf, to 'OUTPUT.mxf':
Stream #0.0: Video: mjpeg, yuvj420p, 640x480 [PAR 1:1 DAR 4:3], q=2-31, 5000 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
[mjpeg @ 0x1bc1aa0]Warning min_rate > 0 but min_rate != max_rate isn't recommended!
[mxf @ 0x1bc0870]track 0: could not find essence container ul, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?)
Is there any other way to achieve this

H_TeXMeX_H 05-31-2010 09:44 AM

[mxf @ 0x1bc0870]track 0: could not find essence container ul, codec not currently supported in container

the mjpeg codec seems to not be supported by the container ... at least within ffmpeg, try another codec ? Or try mencoder ?

TB0ne 06-02-2010 12:33 PM

Quote:

Originally Posted by Himanshu Mittal (Post 3987325)
Hi All
I am trying to convert a mpg video file to mxf container format using ffmpeg by follwing command.
ffmpeg -y -i INPUT.mpg -s 640x480 -vcodec mjpeg -b 5Mb -minrate 4Mb -maxrate 6Mb -bufsize 3Mb -an -f mxf OUTPUT.mxf

I get this error::
FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-shared --enable-libmp3lame
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on May 25 2010 23:17:29, gcc: 4.1.2 20070626 (Red Hat 4.1.2-14)
Input #0, mpeg, from 'INPUT.mpg':
Duration: 00:00:45.92, start: 0.614889, bitrate: 660 kb/s
Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 550 kb/s, 25 tbr, 90k tbn, 25 tbc
Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16, 96 kb/s
[imgconvert @ 0x1bca290]PIX_FMT_YUV420P will be used as an intermediate format for rescaling
Output #0, mxf, to 'OUTPUT.mxf':
Stream #0.0: Video: mjpeg, yuvj420p, 640x480 [PAR 1:1 DAR 4:3], q=2-31, 5000 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
[mjpeg @ 0x1bc1aa0]Warning min_rate > 0 but min_rate != max_rate isn't recommended!
[mxf @ 0x1bc0870]track 0: could not find essence container ul, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?)
Is there any other way to achieve this

As mentioned, mencoder might be an option. First, what's the output of
Code:

ffmpeg -formats | grep mxf"
Chances are, you don't have the mxf codec installed. You can get the latest codec packs from the Mplayer site.


All times are GMT -5. The time now is 02:15 PM.