Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto author AVI->DVD with menus using Linux only !
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 29, 30, 31  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Negated Void
l33t
l33t


Joined: 25 Dec 2002
Posts: 665

PostPosted: Sun Apr 04, 2004 5:17 pm    Post subject: Reply with quote

When i try that ffmpeg style encode script, i get this:
Code:
Input #0, avi, from 'fma01.avi':
  Duration: 00:24:09.4, bitrate: 1017 kb/s
  Stream #0.0: Video: mpeg4, 640x480, 23.98 fps
  Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
Assuming NTSC for target.
Output #0, vob, to '/dev/null':
  Stream #0.0: Video: mpeg2video (hq), 720x480, 23.98 fps, q=2-31, pass 1, 6000 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
[mpeg2video @ 0x401d2468]MPEG1/2 doesnt support 2997/125 fps
Error while opening codec for stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
Back to top
View user's profile Send private message
sushyad
n00b
n00b


Joined: 29 Jul 2003
Posts: 22

PostPosted: Mon Apr 05, 2004 4:35 pm    Post subject: Reply with quote

I am trying to burn some video from my Sony TRV17 to a DVD. I used Kino to capture dv2 format. Then I converted the video to NTSC DVD format using transcode 0.6.12. transcode and mplayer are compiled with mmx/sse support. I am surprised that I am never able to achieve speeds more than 7 fps. I have a 2GHz P4, with 1GB PC2100 DDR.

The command line I am using is:
Code:
transcode -i input.avi -V --export_prof dvd-ntsc -o outout.mpg


I converted the same input file using a TMpegEncPlus on a Windows box, and it processes at least 3-4 times faster than transcode/mp2enc (Windows box is 2.4GHz with Rambus though, but still).

Is that normal? What are the speeds achieved by others here?
TIA,

Susheel
Back to top
View user's profile Send private message
der bastler
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 244

PostPosted: Thu Apr 08, 2004 4:44 pm    Post subject: Reply with quote

First let me say "Great tutorial".

I use it to make my Full-PAL recordings (german television) available in the living room (i.e. playable on stand-alone player). Recently they showed The Hakkenden and now I have to convert nearly 30GB of MJPEG-AVIs... :D

But one point: stand-alone DVD players cut the edges of my 720x576 movies (aspect ratio defined as 4:3). Several lines and columns are missing on both sides (my menus turn ugly :(). Xine displays the movies correctly --even on different computers.

My conversion skript ("schnitt_skript"):
Code:

#!/bin/bash

transcode -i vox_hakkenden.avi --nav_seek vox_hakkenden.index -V -y mpeg2enc,mp2enc -w 8500 -F 8,"-q 6 -H -4 1 -2 1 -r 32" -Z 720x576 --export_fps 25 --export_asr 2 -E 48000 -b 224 -c $1 -o vox_hakk_temp -J hqdn3d=luma=6:chroma=4.5:luma_strength=15:chroma_strength=11.5:pre=1,yuvmedian,normalize

tcmplex -i vox_hakk_temp.m2v -p vox_hakk_temp.mpa -o $2 -m d

rm vox_hakk_temp.m2v vox_hakk_temp.mpa


Usage:
Code:
./schnitt_skript 0-250 test.mpg

(transcodes the first 250 frames into test.mpg)

Do I miss something? Or do I have to live with this "stand-alone error" (since there are no problems with Xine, Ogle or MPlayer)?
_________________
Tempus fugit.
Back to top
View user's profile Send private message
der bastler
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 244

PostPosted: Thu Apr 08, 2004 5:06 pm    Post subject: Reply with quote

sushyad wrote:

Is that normal? What are the speeds achieved by others here?


With my schnitt_skript (see above), transcoding from MJPEG to MPEG2 I achieve 5-6 fps without and 2-3 fps with filters applied.

AMD Athlon 2500+ Barton with 512MB DDR-400
_________________
Tempus fugit.
Back to top
View user's profile Send private message
fehlfarbe
Tux's lil' helper
Tux's lil' helper


Joined: 28 Dec 2003
Posts: 81
Location: berlin

PostPosted: Sun Apr 11, 2004 1:39 pm    Post subject: thanx shiznix Reply with quote

very good posting....

thanx a lot for sharing your know how :)
Back to top
View user's profile Send private message
der bastler
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 244

PostPosted: Mon Apr 12, 2004 10:37 am    Post subject: Reply with quote

Nobody got an idea why rim parts of my full-PAL movie are not displayed on stand-alone DVD players?

I created MPEG-2 movies with a resolution of 720x576 and an aspect ratio of 4:3. Xine, MPlayer, tcprobe, they all detect this.

But on stand-alone DVD players the picture seems to be expanded so that parts are outside of the display's area.

Any ideas :?: The recordings are blocking large parts of my HDD...
_________________
Tempus fugit.
Back to top
View user's profile Send private message
ixtow
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2004
Posts: 102

PostPosted: Wed Apr 14, 2004 4:59 am    Post subject: Reply with quote

I'm sure to be ignored for this, but I'm at my witts end, again.

I cannot perform even the first step of this tutorial, it simply does not work and I can find no reason why.

Code:
transcode -i matrix.mpg -V -y mpeg -F d -Z 352x240 --export_fps 29.97 --export_asr 2 -E 48000 -b 224 -o matrix


Code:
[export_mpeg.so] could not open mpa codec !


I've re-emerged every package prescribed, in every version with an available ebuild. This task cannot be performed. Transcode does not function, and/or this codec simply does not exist.

I then also attempted to use the DVD PS export of the newest avidemux. It worked, and created a video I could view in mplayer and xine. however, I am unsure if the format was proper because I get this:

Code:
dvdauthor -x dvdauthor.xml


Code:
dvdauthor.xml:3: parser error : Input is not proper UTF-8, indicate encoding !
ERR:  Error in parsing XML


And really, have no control at all over avidemux's behavior in this order.

The UTF-8 statement makes me believe that this is NOT actually an XML formatting issue, but possibly, I can't get the right output from avidemux instead of the prescribed output from the entirely non-functional transcode.

Any help?
Back to top
View user's profile Send private message
saskatchewan46
n00b
n00b


Joined: 08 Jul 2003
Posts: 57
Location: Saskatchewan

PostPosted: Fri Apr 16, 2004 12:28 am    Post subject: Reply with quote

What type of file are you trying to encode?

What really helped me with similar transcoding problems was to copy the video and audio streams to a new file via an example like:
Code:
mencoder -ofps 29.97 -ovc copy -oac copy -o movie_new.avi movie_orig.avi


Also, what does your dvdauthor.xml file contain? If you can transcode the mpg after avidemux is done with it it may help.
Back to top
View user's profile Send private message
Blue Lightning
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2003
Posts: 137
Location: Auckland, New Zealand

PostPosted: Fri Apr 16, 2004 6:49 am    Post subject: Reply with quote

der bastler wrote:
Nobody got an idea why rim parts of my full-PAL movie are not displayed on stand-alone DVD players?

Are you sure this is not just because of the normal TV overscan? I know TVs are designed so that the image extends off the left and right sides of the screen, historically because the projected image tended to get narrower over time as the TV warmed up, and because of the general inaccuracy of placement of the image in a lot of older TVs. With a PC video card's TV-out the overscan is often quite different to what you normally see from a VCR or normal TV broadcast (in fact sometimes you can adjust it).
Back to top
View user's profile Send private message
blaasvis
n00b
n00b


Joined: 18 Nov 2002
Posts: 4
Location: brummen (netherlands)

PostPosted: Fri Apr 16, 2004 6:03 pm    Post subject: Reply with quote

any idea's on multi-languages sound and subtitles ?

i do not have a clue on how to do it !
Back to top
View user's profile Send private message
pyro139
n00b
n00b


Joined: 18 Apr 2004
Posts: 3

PostPosted: Sun Apr 18, 2004 3:27 am    Post subject: thank you Reply with quote

im a recouvered win user still have it for gaming, but dvd authoring was one last things i been keeping xp for thx for the gret tutorial, ill have print and read over it few times before i do my first project on linux,
if i get brave may even try build a simple gui front end to run all the commands if i get, brave never programed for nix only done win32 apps, but using mono may make easyer since uses alot the same code and syntax as visual studio, well again thx for proving to me that it's worth transfering my dvd-r to my linux box once i get a better vid card in it
:lol:
Back to top
View user's profile Send private message
pyro139
n00b
n00b


Joined: 18 Apr 2004
Posts: 3

PostPosted: Sun Apr 18, 2004 3:36 am    Post subject: Reply with quote

orig "Nobody got an idea why rim parts of my full-PAL movie are not displayed on stand-alone DVD players? "
dude its a technology issue dvd players are made 4 4:3 tv's u know the nice slightly rectangualar(not wide screen)flat tubed digital tv's and older tv's are 1:1 and ur transcoding for a wide screen at that
this issue comes up even when encoding on a win32 or mac box
u need creat a safe frame a border around your footage usualy something that blends in but slight black border will work use about 4pixel over needed dimensions on either side of orig vid, most win gui dvd authoring tools show u the safe frame so do good video editors
hope this helps u and didnt confuse fuck out you
Back to top
View user's profile Send private message
pyro139
n00b
n00b


Joined: 18 Apr 2004
Posts: 3

PostPosted: Sun Apr 18, 2004 3:45 am    Post subject: Reply with quote

der bastler wrote:
First let me say "Great tutorial".

I
But one point: stand-alone DVD players cut the edges of my 720x576 movies (aspect ratio defined as 4:3). Several lines and columns are missing on both sides (my menus turn ugly :(). Xine displays the movies correctly --even on different computers.




dvd video should be 740x480 hope that helps
Back to top
View user's profile Send private message
der bastler
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 244

PostPosted: Sun Apr 18, 2004 11:03 am    Post subject: Reply with quote

pyro139 wrote:
dvd video should be 740x480 hope that helps


No, 720x576 is the correct PAL-DVD resolution, according to http://www.dvdrhelp.com/dvd

I will check which parameter can solve this problem (perhaps wrong pixel aspect ratio?). But our stand-alone DVD player does not read RWs, thus such experiments are a little bit expensive...
_________________
Tempus fugit.
Back to top
View user's profile Send private message
dieter
n00b
n00b


Joined: 20 Apr 2004
Posts: 1

PostPosted: Tue Apr 20, 2004 11:56 am    Post subject: Reply with quote

blaasvis wrote:
any idea's on multi-languages sound and subtitles ?

i do not have a clue on how to do it !


all this has become easy now.

you can add multiple audio files now with "mplex"
just multiplex like this:

"mplex -f 8 -V audio1.mp2 audio2.mp2 audio3.mp2 .... video.m2v -o \ dvd.mpg"

And when you author it with dvdauthor, they will be there.

audios are selectable via the menu options in dvdauthor, for exactly how it works, you read the man page of dvdauthor, but s.th. like this:

......
<button name=xx1 >
audio=0; //whatever audio, you choose it with a number
subtitle=64; //!!!!!!! or was it 65?
jump title 1;
</button>
......

there is many more ways to do it......
with subtitles muxing, read the man page of submux.

hope that helps, (there had been another question about subtitles?!)

ciao

Dieter
Back to top
View user's profile Send private message
michal65
n00b
n00b


Joined: 30 Nov 2002
Posts: 58

PostPosted: Wed Apr 21, 2004 4:55 am    Post subject: Titles already defined Reply with quote

I followed the instructions on first page but I get this error message at the end even though I have the exact same xml files the first post uses, any ideas?

bash-2.05b$ dvdauthor -x dvdauthor.xml
DVDAuthor::dvdauthor, version 0.6.10.
Build options: gnugetopt magick iconv freetype fribidi
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=C
INFO: Converting filenames to ANSI_X3.4-1968
ERR: Titles already defined

Thanks
Back to top
View user's profile Send private message
EmAiL
n00b
n00b


Joined: 04 Mar 2004
Posts: 2

PostPosted: Fri Apr 30, 2004 10:11 am    Post subject: Reply with quote

I'm having problems with subtitles and dvdauthor. I want to burn a dvd from a .mpg and a .srt.

Muxing the subtitles (srt) into the mpeg file goes well (I think). But when I watch the mpeg file with different media players I don't see any.

Spumux:
Code:
 $ cat sublayout.xml
<subpictures>
  <stream>
    <textsub filename="movie.srt" font="arial.ttf" />
  </stream>
</subpictures>
 $ spumux sublayout.xml < movie.mpg > movie-sub.mpg
DVDAuthor::spumux, version 0.6.9.
Build options: gnugetopt magick iconv freetype fribidi
Send bugs to <dvdauthor-users@lists.sourceforge.net>
 
INFO: Locale=C
INFO: Converting filenames to ANSI_X3.4-1968
INFO: Detected subtitle file format: subviewer
INFO: Opened iconv descriptor. *UTF-8* *ISO8859-1*
INFO: Read 1019 subtitles
INFO: Unicode font: 1185 glyphs.
WARN:  Read 0, expected 4
INFO: Found EOF in .sub file.
INFO: 1019 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.18
 
Statistics:
- Processed 1019 subtitles.
- The longest display line had 45 characters.
- The maximum number of displayed lines was 2.
- The normal display height of the font arial.ttf was 32.
- The bottom display height of the font arial.ttf was 46.
- The biggest subtitle box had 3914 bytes.


Then I try to use dvdauthor:

Code:
 $ cat dvdlayout.xml
<dvdauthor dest="/home/emiel/movie/dvd/">
  <vmgm/>
  <titleset>
   <menus>
    <pgc entry="subtitle" />
   </menus>
   <titles>
    <pgc>
     <vob file="movie-sub.mpg"/>
    </pgc>
   </titles>
  </titleset>
</dvdauthor>

 $ dvdauthor -x dvdlayout.xml
DVDAuthor::dvdauthor, version 0.6.9.
Build options: gnugetopt magick iconv freetype fribidi
Send bugs to <dvdauthor-users@lists.sourceforge.net>
 
INFO: Locale=C
INFO: Converting filenames to ANSI_X3.4-1968
INFO: dvdauthor creating VTS
STAT: Picking VTS 02
 
STAT: Processing movie-sub.mpg...
STAT: VOBU 7456 at 1141MB, 1 PGCS
INFO: Video pts = 0.184 .. 3617.184
INFO: Audio[8] pts = 0.184 .. 3616.288
INFO: Audio[32] pts = 32.064 .. 6868.301
STAT: VOBU 7464 at 1143MB, 1 PGCS
INFO: Generating VTS with the following video attributes:
INFO: MPEG version: mpeg2
INFO: TV standard: pal
INFO: Aspect ratio: 4:3
INFO: Resolution: 352x288
INFO: Audio ch 0 format: mp2/2ch, 20bps
 
STAT: fixed 7464 VOBUS
INFO: dvdauthor creating table of contents
INFO: Scanning /home/emiel/movie/dvd//VIDEO_TS/VTS_01_0.IFO
INFO: Scanning /home/emiel/movie/dvd//VIDEO_TS/VTS_02_0.IFO


After authoring:

Code:
 $ xine dvd://home/emiel/movie/dvd/VIDEO_TS/


But no subtitles :(

Info about my two video files:

Code:
 $ mpginfo movie.mpg
warning: couldn't find any valid system header. I'm continuing anyway
movie.mpg
  Mpeg 2 Program Stream File [Video/Audio]
  Muxrate : 10.08 Mbps
  Estimated Duration: 06:45:28.42s
  Aspect ratio 4/3 (TV)
  Interlaced, chroma format: 4:2:0
  Video Format: PAL
  Display Size [720 x 576]
  Size [352 x 288]     25.00 fps    9.80 Mbps
  Audio : Mpeg 1 layer 2
  224 kbps  48000 Hz
  Stereo,  No emphasis

 $ mpginfo movie-sub.mpg
warning: couldn't find any valid system header. I'm continuing anyway
movie-sub.mpg
  Mpeg 2 Program Stream File [Video/Audio]
  Muxrate : 10.08 Mbps
  Estimated Duration: 13:16:21.62s
  Aspect ratio 4/3 (TV)
  Interlaced, chroma format: 4:2:0
  Video Format: PAL
  Display Size [720 x 576]
  Size [352 x 288]     25.00 fps    9.80 Mbps
  Audio : Mpeg 1 layer 2
  224 kbps  48000 Hz
  Stereo,  No emphasis


Can anybody tell me what I'm doing wrong ?

Thanks in advance ;)
Back to top
View user's profile Send private message
cron0
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2004
Posts: 132
Location: Montreal, Quebec

PostPosted: Fri Apr 30, 2004 7:37 pm    Post subject: Reply with quote

After reading all this thread, I've finally been able to transcode to DVD with a good quality and good aspect ratio!

My only problem is that after mplexing, my audio is desynced... The audio seem to start playing AFTER the correct video frames...

transcode auto-probe my source with 0ms of correction:
Code:
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms


What can I do? I know I can force AV correction with -D option, but how do I know how many ms to put?

My full transcode command is (i'm encoding to NTSC):
Code:
transcode -i NarutoEP01.avi -V -y mpeg2enc,mp2enc -w 9000 -F 8,"-4 1 -2 1 -r 24" --export_fps 29.97 -E 48000 -b 224 -o Naruto_01


Please help, thank you!!
Back to top
View user's profile Send private message
dishkuvek
n00b
n00b


Joined: 11 Apr 2003
Posts: 27
Location: Richmond, VA

PostPosted: Mon May 03, 2004 4:49 am    Post subject: Reply with quote

I've been trying to transcode a divx file of 236MB to dvd-ntsc using the method described on the very first post, I let it run for 9 hours before I killed the process. I have a 1.8GHz and 512 RAM system, is that normal?
Back to top
View user's profile Send private message
cron0
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2004
Posts: 132
Location: Montreal, Quebec

PostPosted: Mon May 03, 2004 10:09 am    Post subject: Reply with quote

dishkuvek wrote:
I've been trying to transcode a divx file of 236MB to dvd-ntsc using the method described on the very first post, I let it run for 9 hours before I killed the process. I have a 1.8GHz and 512 RAM system, is that normal?


No it's not... What is the full transcode command you are using? Also, are there any errors before it starts transcoding?

Cron0
Back to top
View user's profile Send private message
dishkuvek
n00b
n00b


Joined: 11 Apr 2003
Posts: 27
Location: Richmond, VA

PostPosted: Mon May 03, 2004 5:29 pm    Post subject: Reply with quote

JF_Cron0 wrote:
dishkuvek wrote:
I've been trying to transcode a divx file of 236MB to dvd-ntsc using the method described on the very first post, I let it run for 9 hours before I killed the process. I have a 1.8GHz and 512 RAM system, is that normal?


No it's not... What is the full transcode command you are using? Also, are there any errors before it starts transcoding?

Cron0


Code:

transcode -i input.avi -V --export_prof dvd-ntsc -w 250 -o output


and

Code:

transcode -i input.avi -V -y mpeg -F d -Z 352x240 --export_fps 29.970 --export_asr 2 -E 48000 -b 224 -o output


It produces one warning...

Quote:

warning : no option -x found, option -i ignored, reading from "/dev/zero"


Which now is making me smack myself, for if transcode is using /dev/zero as its input, of course it will go forever! :oops:

Thanks JF_Cron0, I will come back and post when I slap the -x option in there.
Back to top
View user's profile Send private message
cron0
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2004
Posts: 132
Location: Montreal, Quebec

PostPosted: Mon May 03, 2004 6:02 pm    Post subject: Reply with quote

dishkuvek wrote:
JF_Cron0 wrote:
dishkuvek wrote:
I've been trying to transcode a divx file of 236MB to dvd-ntsc using the method described on the very first post, I let it run for 9 hours before I killed the process. I have a 1.8GHz and 512 RAM system, is that normal?


No it's not... What is the full transcode command you are using? Also, are there any errors before it starts transcoding?

Cron0


Code:

transcode -i input.avi -V --export_prof dvd-ntsc -w 250 -o output


and

Code:

transcode -i input.avi -V -y mpeg -F d -Z 352x240 --export_fps 29.970 --export_asr 2 -E 48000 -b 224 -o output


It produces one warning...

Quote:

warning : no option -x found, option -i ignored, reading from "/dev/zero"


Which now is making me smack myself, for if transcode is using /dev/zero as its input, of course it will go forever! :oops:

Thanks JF_Cron0, I will come back and post when I slap the -x option in there.


transcode will require the -x option only if the input source format/codec cannot be auto-detected... From what I can understand, it didn't detect a proper format from your input source... Thus, you need to specify the format with -x vmod[,amod] ... See the transcode documentation page for more info: http://zebra.fh-weingarten.de/~transcode/
Back to top
View user's profile Send private message
dishkuvek
n00b
n00b


Joined: 11 Apr 2003
Posts: 27
Location: Richmond, VA

PostPosted: Wed May 05, 2004 12:23 am    Post subject: Reply with quote

Right, they were in WMV, tricked me because of the .avi endings. Teaches me to look further than just the extentions. After running them through mencoder, transcode worked perfectly.
Back to top
View user's profile Send private message
dishkuvek
n00b
n00b


Joined: 11 Apr 2003
Posts: 27
Location: Richmond, VA

PostPosted: Thu May 06, 2004 5:40 am    Post subject: Reply with quote

Could some one tell me what options I would need to add to transcode to accomplish: VBR video encoding and 16:9 letterbox aspect ratio? I was reading the transcode man page, but I am having a hard time figuring it out.
Back to top
View user's profile Send private message
ydleiF
Apprentice
Apprentice


Joined: 15 Nov 2002
Posts: 170
Location: Southeast Michigan, USA

PostPosted: Fri May 07, 2004 8:49 pm    Post subject: How To Create a Blank or Minimal Menu? Reply with quote

Hello.

I'm using a DV camera attached via firewire, and i use kino to pull it down into raw DV, then use kino again to export to the proper format. Then I use dvdauthor to create the structure.

My question is how do I create a blank or minimalistic menu? I don't want a menu at all, so what's the minimum? I couldn't figure out the XML.

I was able to get dvdauthor to do it, but once I wrote it with growisofs, it wouldn't play in a standalone player, nor play as a regular dvd movie on linux. I had to mount it and point it at the VOB's.

Here is my XML, which sort-of worked (note the comments!):

Code:

<dvdauthor dest="DVD">

 <vmgm />

    <titleset>
<!--
     <menus>
       <pgc>
         <button> jump title 1; </button>
         <button> jump title 2; </button>
         <vob file="matrix_menu_final.mpg" pause="inf"/>
       </pgc>
     </menus>
-->

     <titles>
       <pgc>
         <vob file="my-crap.mpeg"/>
           <post>
             call menu;
           </post>
       </pgc>
     </titles>

<!--
     <titles>
       <pgc>
         <vob file="outtakes_dvd.mpg" />
           <post>
             call menu;
           </post>
       </pgc>
     </titles>
-->
   </titleset>

 </dvdauthor>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 29, 30, 31  Next
Page 6 of 31

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum