LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-29-2008, 01:44 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
how to split in 2 a DIVX AVI that work on cd1 and cd2 (non packed)?


Hello

I have a 1000Mb avi divx that I would like to burn on 2 cdromm of 700mb...
hence I would have the following question:
how to split in 2 a DIVX AVI that work on cd1 and cd2 (non packed) for n00b ?

thanks
 
Old 09-30-2008, 11:29 AM   #2
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Try Avidemux
It can be used from the gui or from the command-line.
 
Old 09-30-2008, 12:33 PM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by niels.horn View Post
Try Avidemux
It can be used from the gui or from the command-line.
thanks !!

this software is really great and easy for video

you open your vid

you select in the option the xvid

calculator to say 1 or 2 cds

and save as video

adn that s it

http://img401.imageshack.us/my.php?i...idemux2ac5.jpg

Last edited by frenchn00b; 09-30-2008 at 12:36 PM.
 
Old 09-30-2008, 01:16 PM   #4
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
If you have dvd burner, avidemux can encode the divx file to a dvd compatible format.

- Cheers

Last edited by dv502; 09-30-2008 at 01:17 PM.
 
Old 10-01-2008, 12:01 AM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by dv502 View Post
If you have dvd burner, avidemux can encode the divx file to a dvd compatible format.

- Cheers
Really? Wow
I tried my first 700mb to xvid 950mb
dont know much about the calculator if it works well

... learning
 
Old 10-01-2008, 12:40 AM   #6
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
I have not used avidemux in quite a long time, can't recall the steps.

I use the ffmpeg command to convert a video file to a dvd compatible format that can be played on the computer and a table top dvd player.

Code:
ffmpeg -i file.avi -target ntsc-dvd file.mpg
Replace ntsc-dvd with pal-dvd for your country's region.

Use dvdauthor, dvdstyler or other linux authoring program. Do a google search for the program you wish to use.


- Good luck

Last edited by dv502; 10-01-2008 at 01:20 AM.
 
Old 10-01-2008, 11:11 AM   #7
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by frenchn00b View Post
Hello

I have a 1000Mb avi divx that I would like to burn on 2 cdromm of 700mb...
hence I would have the following question:
how to split in 2 a DIVX AVI that work on cd1 and cd2 (non packed) for n00b ?

thanks
You could do it with mencoder (-oac copy -ovc copy, then specify video file start and length. This can be done with -ss or something like that, see documentation). But it will be more difficult compared to avidemux.
 
Old 10-01-2008, 11:11 AM   #8
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
with avidemux, xvid my video shivers; ... what could it be ?
 
Old 10-20-2008, 04:07 PM   #9
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by dv502 View Post
I have not used avidemux in quite a long time, can't recall the steps.

I use the ffmpeg command to convert a video file to a dvd compatible format that can be played on the computer and a table top dvd player.

Code:
ffmpeg -i file.avi -target ntsc-dvd file.mpg
Replace ntsc-dvd with pal-dvd for your country's region.

Use dvdauthor, dvdstyler or other linux authoring program. Do a google search for the program you wish to use.


- Good luck
avidemux crashes with the video

do you know how to split in 2 mpg oupupt.part1.mpg & oupupt.part2.mpg the single avi file with the command line ?

thanks for your help
 
Old 10-20-2008, 08:22 PM   #10
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
First, I will answer your orignal post of splitting a large divx file into 700mb videos. The example is for a divx file, but any supported video can use these steps.

We will use mencoder which is part of the mplayer package. Use your package manager to install mplayer.

I practiced this on one of my divx file called the_core.avi. The file size is 1.2 GB. We will use the -ss and -endpos switch from mencoder.

Code:
mencoder -o core1.avi -ovc copy -oac copy -ss 00:00:00 -endpos 699mb the_core.avi
This will produce a 699mb divx file called core1.avi by the -o option.

To get the next start time for the -ss option, I ran mplayer on the core1.avi file.

Code:
mplayer core1.avi
No need to watch the whole movie, we are just playing it to get the next start time for the next file core2.avi.

As the movie is playing press the letter o. The first press displays the elaspe time, press the letter o again, this displays the total time for the video. On the video it will look something like this.

00:00:23 / 01:16:59

We need the 01:16:59 part for the -ss switch.

Exit the movie.

Code:
mencoder -o core2.avi -ovc copy -oac copy -ss 01:16:59 -endpos 699mb the_core.avi
This will produce the second divx video called core2.avi starting from 01:16:59.

I ran mplayer on core2.avi, and the video played where core1.avi left off. The video and audio were in sync. No problems.

Another program you can try is called mpgtx. This program can split and join mpeg files files.

To split a mpeg file into 699mb

Code:
mpgtx -s file.mpg 699M
If you want to use mpgtx, first convert the video file to mpeg format.

Code:
mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy video.avi -o video.mpg
Hope the helps...

Last edited by dv502; 10-20-2008 at 08:45 PM.
 
Old 10-21-2008, 02:08 PM   #11
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Thanks a bunches !!!!!
http://rapidshare.com/files/155938684/output.mpg.html
I am fighting to split in 2 this video and to make it readable by any windows XP machines, as bulk. I dont think they have divx installed already, but maybe the codec by default that can put 85mb raw in 2 emails eg. ... I am fighintg now with the command line ... pdfffffff very not easy, luckily you could/can help
 
Old 10-21-2008, 02:20 PM   #12
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
after this :

Code:
mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy output.mpg -o video.mpg
I did:
Code:
mpgtx  -s  video.mpg [-00:00:30]
but I dont know how much the 00:00:30 should be since totem says : 0:0:7sec
and teh 10MB is not working
 
Old 10-21-2008, 02:23 PM   #13
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
this worked and separated the 28MB in 2 :

Code:
mpgtx -2 output.mpg  -b output
as here said:
Quote:
with the theory, here comes action.
Suppose you want to split matrix-trailer.mpg into 166 playable chunks with the basename mychunk

mpgtx -166 matrix-trailer.mpg -b mychunk
Now processing Chunk 1/166 ... 100.00%
Now processing Chunk 2/166 ... 92.79%
[...]
but 28MB is rather big, can another codec do sthg like 20MB for windows xp?
 
Old 10-21-2008, 04:26 PM   #14
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
Quote:
Originally Posted by frenchn00b View Post
this worked and separated the 28MB in 2 :

Code:
mpgtx -2 output.mpg  -b output
as here said:


but 28MB is rather big, can another codec do sthg like 20MB for windows xp?
I've never used this program before. I included the link as a suggestion
for you to try. The above code splits the file in approximately equal file sizes. You can replace -2 with -3. This will produce an extra file but all three files will be less than 20M.

Try this, code

mpgtx file.mpg -s {20M} -b newfile

The curly brackets are important. This is a range value.

Last edited by dv502; 10-21-2008 at 04:57 PM.
 
Old 11-01-2008, 02:36 PM   #15
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by dv502 View Post
I've never used this program before. I included the link as a suggestion
for you to try. The above code splits the file in approximately equal file sizes. You can replace -2 with -3. This will produce an extra file but all three files will be less than 20M.

Try this, code

mpgtx file.mpg -s {20M} -b newfile

The curly brackets are important. This is a range value.
thank you !!
this splitting is nicely working.

Regarding still mpg, can a program reduce the size of a 91MB mpg to 15MB ?
mpgtx seems not capable to so it, although with emux

any informaiton is widely welcome
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting vop-packed DivX to MPEG CanadianPenguin Linux - Software 5 09-07-2010 04:08 PM
Can I install SUSE 10.0 CD1 and add CD2-CD5 later? augu2000 SUSE / openSUSE 3 10-24-2005 12:36 PM
suse 10.0 not booting from CD1 or CD2 danrweki Linux - Newbie 6 10-04-2005 09:23 AM
I cannot boot CD1 or CD2, Suse 9.0 inspect Linux - Software 1 08-26-2004 11:35 AM
What is on CD1 & CD2 of Mandrake 10? sKiBa Mandriva 3 06-08-2004 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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