LinuxQuestions.org
Review your favorite Linux distribution.
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 07-03-2009, 03:28 PM   #1
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 299

Rep: Reputation: 89
Need to burn subtitles : issues in both Avidemux and ffmpeg


Hello...
I am trying to transcode a video file for purposes of burning to DVD. That in itself isn't hard; I would normally do the following:

ffmpeg -i file.avi -target ntsc-dvd -aspect 16:9 [..bitrates..] output.mpg
dvdauthor --title -o dvd -f output.mpg
dvdauthor -o dvd -T

But, in this case I want to somehow display English subtitles from a SRT file. I don't particularly care if they are burned permanently or whether they are able to be activated later in the DVD player, just as long as they work. I tried two different things.

First, I tried using this procedure (spumux and dvdauthor) to get subtitles that can be activated on a DVD player http://irrepupavel.com/documents/dvd_with_subtitles by using an MPG file created by the above method. The only problem is the resulting file doesn't work. In an old (ca 1 year) version of mplayer, the program crashes, and in a newer build, the subs are garbled pink and green text at random positions on the screen.

Then I used Avidemux to just add permanent subtitles and encode an mpg file. Works fine (nice easy previewing too), except the bitrate is WAY off target, regardless or whether I specify single or two-pass encoding, even if bitrates are set manually. To get proper output bitrates with ffmpeg, I can just do

ffmpeg -i file.avi -target ntsc-dvd -aspect 16:9 -ab 256k -vb 6304k -minrate 6304k -maxrate 6304k out.mpg

But the output bitrate is a little off, so I can just tweak vb, minrate, and maxrate until it comes out right (in this case I reduced them by 96k and the output bitrate was roughly 6304+256). In Avidemux, the bitrate starts out ridiculously low -- like 200 kb/s, and peaks around 2000 kb/s if I'm lucky. This makes the first ~3 minutes extremely blurry, and the rest of the video has noticeably worse quality than that produced by ffmpeg.

I am wondering, is there a way to "burn" subtitles into an mpg from e.g. srt using ffmpeg? That, to me, is preferable over adding them later using spumux/dvdauthor as one has to hassle with all that XML and create TWO huge multi-gb files just before being able to test whether anything works. (I hear mencoder might work, but it, too, has problems getting roughly constant bitrates right).

That was a lot, so I'll summarise

ffmpeg + spumux + dvdauthor : nice mpeg, correct bitrates, horrible or NO subtitles (goal: subs activated on DVD player)

Avidemux : correct subtitles, LOW bitrate MPG (goal: permanent subs in the MPG)

Thanks in advance.
 
Old 07-06-2009, 04:12 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Whoops, invalid post... sorry
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
openSuse 11 64 bit: gstreamer--ffmpeg issues jay73 SUSE / openSUSE 3 09-07-2008 03:41 PM
Transcode and FFMpeg(libavcodec) issues PTG Linux - Software 2 04-08-2006 08:37 PM
Dependency errors and burn issues Stephanie Linux - General 3 06-14-2001 09:24 AM

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

All times are GMT -5. The time now is 04:35 AM.

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