LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-08-2004, 04:16 PM   #1
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Rep: Reputation: 30
Help with Avidemux


I've been trying to encode a XviD encoded avi video to mpeg 2 dvd d1 (ntsc) with avidemux on my slackware distro, with mixed results. First off here are my settings:
version 2.0.34

Video:
- vfilter DVD Resize to NTSC res
- vprocess on
- XSVCD- lavcodec with single pass and 8000 bitrate
- change fps from 25.0000 to 29.97 (ntsc)

Audio:
- ffmpeg (mp2) stereo 128kps
- vprocess on

I then went to file, save, save video, and saved my video as video.m2v.
I then went to audio, save audio, and saved it as audio.mp2
After encoding I opened the video.m2v file in avidemux and then indexed it with mpeg audio, because I would add that later. I then went to audio, source, and added my external mp2 audio from audio,mp2. I then turned off aprocess and vprocess and then went to save as DVD PS, and saved it as video.mpg. I then tried playing it and noticed a few problems:
- The video quality of the encoded mpeg is not as good as the original avi, even though I had a high bitrate. Why is this and what can I do to fix it?
- The audio would just cut out after a short amount of time... I tried playing audio.mp2 and it played fine all the way through. What is wrong here?

What should I change in my process so I can successfully create an mpeg 2 dvd file from an avi?
Thanks.
 
Old 12-08-2004, 05:01 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
I don't have much experience with avidemux, aside from a few failed attempts to get DVD-compliant output from it. If you're willing to try other utilities, might I shamelessly suggest a little script suite I wrote called tovid? It can convert just about any video format to DVD-compliant MPEG, with quite good quality.

Last edited by wapcaplet; 12-08-2004 at 05:02 PM.
 
Old 12-08-2004, 05:13 PM   #3
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Original Poster
Rep: Reputation: 30
Quote:
I don't have much experience with avidemux, aside from a few failed attempts to get DVD-compliant output from it. If you're willing to try other utilities, might I shamelessly suggest a little script suite I wrote called tovid? It can convert just about any video format to DVD-compliant MPEG, with quite good quality.
Thanks alot! I will try that out! I'm just looking for a good linux app to encode to dvd mpeg 2 so I can encode files faster (drop back to Fluxbox or something).
 
Old 12-08-2004, 05:55 PM   #4
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Original Poster
Rep: Reputation: 30
Alright, I tried tovid and really like it except for 1 problem- The output file doesn't exist!
Here is my konsole output, rendering the video Car.avi to Car.mpg:
Quote:
$ tovid -ntsc -dvd Car.avi Car
--------------------------------
tovid video conversion script
Version 0.16
Written in 2004 by Eric Pierce
http://tovid.sourceforge.net/
--------------------------------
=========================================================
: No such file or directory
: No such file or directory
Input file is 640 x 480 at 25.000 fps.
Reported running time is 164 seconds.
Source is not 29.970 fps. Adjusting to 29.970 fps.
Scaling and/or padding with letterbox bars
Scaling 640 x 480 directly to 720 x 480
The encoding process is estimated to require 114 MB of disk space.
You currently have 3297 MB available in this directory.
=========================================================
Creating and encoding video stream...
The following command will be run to encode the video:
mplayer -benchmark -nosound -noframedrop -noautosub -vo yuv4mpeg -vf pp=hb/vb/dr/al -vf-add hqdn3d -vf-add scale=720:480 "Car.avi"
cat stream.yuv | yuvfps -r 30000:1001 -n -v 0 | mpeg2enc -M 0 -a 2 -f 8 -b 8000-F 4 -v 0 -n n -4 2 -2 1 -q 5 --keep-hf -o "Car.m2v"
=========================================================
*** Encoding video: 0% complete. Estimated remaining time: 150:20:0

=========================================================
Creating WAV of audio stream...
The following command will be run to encode the audio:
mplayer -quiet -vo null -ao pcm -aofile stream.wav "Car.avi"
=========================================================
Audio stream successfully converted to WAV.
=========================================================
Encoding WAV...
=========================================================
ffmpeg -i "Car.avi" -ab 224 -ar 48000 -ac 2 -acodec ac3 "Car.ac3"
=========================================================
Multiplexing audio and video together...
ls: Car.mpg: No such file or directory
=========================================================
File: Car.mpg, 164 secs dvd ntsc, high quality.
Final size: 0 kilobytes
Maximum bitrate: 8000 kbits/sec
Average bitrate: kbits/sec
Peak bitrate: kbits/sec
Took 0:6:15 to encode on AMD Athlon(tm) XP 3200+
-----------------------------------------
Statistics written to /home/andrew/.tovid/stats
Cleaning up...
=========================================================
Done!
Your encoded video should be in a file called Car.mpg.
If you find that the final result is too big, you can reduce its
size without re-encoding by using the postproc utility with the
-shrink option. If the video and audio don't match up, you can
use postproc with the -audiodelay option to fix it.
=========================================================
Thanks for using tovid!
What do I need to do to make it actually output a file?
 
Old 12-08-2004, 06:12 PM   #5
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Well, as you can see, there are still some bugs

To find out what went wrong, try running the script again with the -debug option. When it exits, you should have a .log file containing a lot of output. Check in there to see where it failed (you can email it to me, wapcaplet99 at yahoo dot com, and I'll try to help).

Also, if you haven't already, check to make sure you have the required programs for running tovid. If you use the 'configure' script that is provided, it will check your installation to see what you have and don't have.
 
Old 01-13-2005, 08:34 PM   #6
Blue1K
Member
 
Registered: Dec 2004
Location: Vancouver
Distribution: Suse 10.1, PCLinuxOS
Posts: 31

Rep: Reputation: 15
The same thing happens to me:
No output file.

Not sure why the codecs dir was not found? I tried playing the avi with Mplayer and it played fine.
I need help! I tried Avidemux but I have found it to be too buggy for my liking.
Any ideas?!
I ran a debug and this is what I get:

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 2173 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/inferno/.mplayer/config
Reading /home/inferno/.mplayer/codecs.conf: Can't open '/home/inferno/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs
Failed to open /dev/rtc: No such file or directory (it should be readable by the user.)
Using usleep() timing
Can't open input config file /home/inferno/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 53 binds
Can't init input joystick
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.

Playing Short.avi.
AVI file format detected.
VIDEO: [DX50] 512x288 24bpp 23.976 fps 948.9 kbps (115.8 kbyte/s)
 
  


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
trying to install avidemux onironaut Linux - Software 0 04-26-2005 01:32 PM
avidemux and mplex and file splitting Brain Drop Linux - Software 0 11-29-2004 10:26 PM
Avidemux-install recursive Fcm Linux - Software 1 08-28-2004 01:48 AM
Problem with avidemux. akihandyman Mandriva 0 06-28-2004 08:01 PM
compileing avidemux with MPEG support jarin scott Linux - Software 2 12-08-2003 02:10 PM

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

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