LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2006, 05:37 AM   #1
carcassonne
Member
 
Registered: Jul 2005
Distribution: Fedora6 x86_64
Posts: 118

Rep: Reputation: 15
Making a mp4 file viewable on DVD


Folks,

I just got a mp4 file (an interesting one at that, the expose of a US Sergeant about running a Linux server in Irak - you can find the link on Slashdot's Monday news) and since it lasts about an hour, I'd like to view it on the TV. Now, if I can obtain a plain mpg file I can run dvdauthor and produce a viewable DVD that will play in a regular DVD player.

Question is, how to convert the mp4 file to a mpg file ?

It looks like it's possible. ffmpeg handles all possible formats. But there's no description on how to do this. I have the impression that I must read about the technical specs of both formats to deduce the bitrate parameter to pass to ffmpeg and all that. Hours ans hours of reading and thinking and trying.

Can someone tell me precisely how to convert a mp4 to mpg with as little loss in quality as possible ?

Thanks !
 
Old 04-26-2006, 05:45 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
mpeg layer 4 is divX ...
look up "mencoder" - this is, amongst other things, a universal video codec converter.

If you put your distro in your profile, replies can get very specific.
 
Old 04-26-2006, 06:12 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
mp4 is a container, probably containing MPEG-4 video, most likely AVC (unlikely DivX) with AAC audio.
Best future-proof solution is to build yourself a Media Center and avoid converting files. However, if you feel you need to do that, use Avidemux2. It has convenient presets for such conversion.
 
Old 04-26-2006, 06:32 AM   #4
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Rep: Reputation: 35
hi there carcassonne,

you might want to take a look at tovid

it's basically a a collection of video disc authoring tools. Mostly scripts that will do all the neccessary steps for you to convert almost anything into DVDs, VCDs, and SVCDs that you can playback on your home DVD Player.

There are quite a few dependencies, but once you've set them all up and give tovid a try, you will love it. I have been using it ever since I heard of it and there was nothing that I couldn't convert with the tovid scripts. And yes, I've converted those .mp4 files with tovid before :P

Good luck!
 
Old 04-26-2006, 07:19 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
mplayer is a movie player for Linux (runs on many other platforms and CPU architectures, see the documentation). It plays most MPEG/VOB, AVI, ASF/WMA/WMV, RM, QT/MOV/MP4, OGG/OGM, MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many native and binary codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies, too.

mencoder (MPlayer’s Movie Encoder) is a simple movie encoder, designed to encode MPlayer-playable movies (see above) to other Player-playable formats (see below). It encodes to MPEG-4 (DivX/XviD), one of the libavcodec codecs and PCM/MP3/VBRMP3 audio in 1, 2 or 3 passes. Furthermore it has stream copying abilities, a powerful filter system (crop, expand, flip, postprocess, rotate, scale, noise, rgb/yuv conversion) and more.

yeah all right - it is a container... it's close to 1am here...
I hear my bed calling: "sleep... sleep..."
Hah! "Sleep" is a poor substitute for caffein!
<starts vibrating>

Last edited by Simon Bridge; 04-26-2006 at 07:20 AM.
 
Old 04-26-2006, 03:27 PM   #6
carcassonne
Member
 
Registered: Jul 2005
Distribution: Fedora6 x86_64
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Simon Bridge
mpeg layer 4 is divX ...
look up "mencoder" - this is, amongst other things, a universal video codec converter.
If you put your distro in your profile, replies can get very specific.
Done. So it's SuSE 10.0 62 and 32 bits.

The replies were a bit what I expected: nothing precise. Like talking about the Flying Dutchman. Or the monster of the Loch Ness ;-)

Some have seen it, Some believe it's possible. But no-one has recipes or otherwise precise steps.

So once again, if some has did it before and knows precisely how to do that... please do not hesitate to post your recipe.

Cheers.
 
Old 04-26-2006, 03:30 PM   #7
carcassonne
Member
 
Registered: Jul 2005
Distribution: Fedora6 x86_64
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by retiredsoldier
hi there carcassonne,
you might want to take a look at tovid
Could be good, as far as no-recipes goes. But that berlios.de site is either having serious problems or is overused. No way to make a connection to it.

Here's an article I found about tovid. Looks good.

http://applications.linux.com/applic...1.shtml?tid=39
 
Old 04-26-2006, 03:51 PM   #8
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 255

Rep: Reputation: 35
carcassonne,


keep trying LOL..they must have having some routing issues or something. Strange enough before you replied to this post, I was still able to get to the site.

you can always try it from
http://tovid.sf.net/
OR
http://tovid.org/

but I believe both of them forward you to the main developer's page which is the link I gave you before.


If you want to get your .MP4 files in a DVD-ready format to be able to play it on almost any home DVD-player, tovid is the thing you need to look at.

It makes life so much easier as it does exactly that. You don't have to go through all options and flags of mencoder (UNLESS you LIKE TO !!!) to get things done. I, in the past, have had to "struggle" with mencoder and various other encoders just to get the right settings for quality/size/etc but with tovid it's just so simple :P

so keep trying :P


*edited*: oh and I do recommend you to make use of the scripts rather than going for their GUI version. I have not tried their GUI just because I'm a CLI-junkie and because I like to see what's actually happening as a DVD is being created for example :P

Last edited by slackmagic; 04-26-2006 at 03:52 PM.
 
Old 04-26-2006, 04:14 PM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by carcassonne
Done. So it's SuSE 10.0 62 and 32 bits.

The replies were a bit what I expected: nothing precise. Like talking about the Flying Dutchman. Or the monster of the Loch Ness ;-)

Some have seen it, Some believe it's possible. But no-one has recipes or otherwise precise steps.

So once again, if some has did it before and knows precisely how to do that... please do not hesitate to post your recipe.

Cheers.
You gotta be kiddin'

What's wrong with Avidemux? It is as simple as loading mp4 and choosing DVD from AUTO menu
Do you want me describe how to open a file using GUI menus!?
 
Old 04-26-2006, 05:56 PM   #10
carcassonne
Member
 
Registered: Jul 2005
Distribution: Fedora6 x86_64
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson
You gotta be kiddin'
What's wrong with Avidemux? It is as simple as loading mp4 and choosing DVD from AUTO menu
Do you want me describe how to open a file using GUI menus!?
Looks all right. Got it from packman.links2linux.de and it installed right away. I guess all other dependencies were already there. I did install from packman quite a few multimedia packages recently.

So avidemux reads some mpg files I've made. But no dice with that mp4 I want to transfer to DVD. Gives a green screen. xine on the same system (X86_64) plays the file just fine. avidemux outputs the following errors at the console:

Editor :Audio streamer initialized
MP4 audio
Found :44100 rate 2 channels
Frequency mismatch!!! 44100 to 44100 (SBR ?)
Faad decoder created
[h264 @ 0x950970]Unknown NAL code: 30
error in FFMP43/mpeg4!
Err: -1, size :1199
Editor: Last Decoding2 failed for frame 0
** conf updated **
error in FFMP43/mpeg4!
Err: -1, size :232
Editor: Last Decoding2 failed for frame 471

Frequency mismatch. And then its back to square one and studying for a university degree in video/audio codecs (not !).

OTOH, I still didn't get access to the tovid web site. Maybe they're in maintenance or something like that.

Cheers.
 
Old 04-26-2006, 06:26 PM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Works flawlessly in my system - but I have support for mp4, AVC and AAC in my system, all latest svn versions. And I'm using Avidemux 2.2, also svn version, configured and compiled for my system. Sorry, but can't help you much here. I've no clue how SuSe may handle this. However, you can consider Avidemux real swiss army knife for video in Linux, yet easy to use. It can used with GUI so you can see what you are doing and from CLI as well in case some batch processing is needed.
 
  


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
Making the taskbar ALWAYS viewable not matter what programs are running mrobertson Programming 6 07-20-2005 01:54 PM
Making DVD: dvd-file OK but no VOBU.. pingu Linux - Software 4 06-01-2005 04:57 AM
trouble compiling xmms mp4 plugin from source: "no such file.." mayasedai Linux - Software 3 02-01-2005 11:13 AM
file magic for m4a (mp4) ?? fsbooks Linux - Software 1 01-23-2004 08:21 AM
making smb shares viewable from smb client via web browser scottpioso General 3 11-10-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:11 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