LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2010, 08:30 AM   #1
Himanshu Mittal
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
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
 
Old 05-31-2010, 09:44 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
[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 ?
 
Old 06-02-2010, 12:33 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Himanshu Mittal View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to convert video file format using kino video editor sumeet inani Linux - Newbie 5 03-17-2009 11:26 PM
Convert video to iPod format leupi Linux - Software 17 01-08-2009 08:28 AM
Convert .rm video to some other format?... raggamuffin Linux - Software 1 02-18-2006 02:06 PM
Help with script to convert different Video file types to wmv format for streaming farmerjoe Programming 1 11-17-2005 01:12 PM
Convert video format phonecian Linux - Software 3 08-18-2005 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration