To experts on transcode, mencoder, ffmpeg, avidemux
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1) Please put your output inside [noparse][code][\code][\noparse] tags. It makes the formatting easier to read.
2) You really haven't told us enough. I'm still not very clear about where your problems lie.
I take it the src.avi is a sample video that shows the specs your player handles? So does that video work? Is there any other documentation provided with your player, or found on the web, that details what the video parameters should be?
So what have you tried so far? Give us some examples of what commands you've attempted. What are your input files like? Have you succeeded in creating a video with similar specs to the above?
According to your output above (all 3 programs have essentially the same info), the sample video is in the following format:
Video:
AVI container
xvid codec
4:3 aspect ratio
320x240 frame size
framerate of 20 frames per second
bitrate of approximately 600kb
Audio:
mp2 codec
44100khz sampling frequency
stereo (2 channels)
bitrate 128kbs
I'm sure that there's some flexibility possible, particularly the bitrate, but you should try to get your output to be close to this. These are really very generic settings, so it should be a snap to produce something similar.
Apparently src.avi was produced using a Windows-based version of mencoder, so it should be possible to produce a playable file. Unfortunately from what I've seen on the web, it looks like some players require some precise advanced options settings. But without more info I can't say (and is beyond my ability anyway).
erickfis@darkstar:~/tmp/sandra$ file output.avi
output.avi: RIFF (little-endian) data, AVI, 320 x 240, 20.00 fps, video: X.264, audio: MPEG-1 Layer 1 or 2 (stereo, 44100 Hz)
erickfis@darkstar:~/tmp/sandra$ tcprobe -i output.avi
[tcprobe] RIFF data, AVI video
[tcprobe] summary for output.avi, (*) = not default, 0 = not detected
import frame size: -g 320x240 [720x576] (*)
aspect ratio: 4:3 (*)
frame rate: -f 20.000 [25.000] frc=0 (*)
audio track: -a 0 [0] -e 44100,0,2 [48000,16,2] -n 0x50 [0x2000] (*)
bitrate=128 kbps
length: 958 frames, frame_time=50 msec, duration=0:00:47.900
erickfis@darkstar:~/tmp/sandra$ mplayer -identify output.avi
MPlayer dev-SVN-r28306-4.2.4 (C) 2000-2009 MPlayer Team
CPU: AMD Sempron(tm) Processor 2800+ (Family: 15, Model: 44, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 output.avi.
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
VIDEO: [H264] 320x240 24bpp 20.000 fps 723.8 kbps (88.4 kbyte/s)
Clip info:
Software: Lavf52.25.0
ID_CLIP_INFO_NAME0=Software
ID_CLIP_INFO_VALUE0=Lavf52.25.0
ID_CLIP_INFO_N=1
ID_FILENAME=output.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=723792
ID_VIDEO_WIDTH=320
ID_VIDEO_HEIGHT=240
ID_VIDEO_FPS=20.000
ID_VIDEO_ASPECT=1.3333
ID_AUDIO_FORMAT=80
ID_AUDIO_BITRATE=127992
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=47.90
ID_SEEKABLE=1
ID_CHAPTERS=0
Reading theese specs, I can only conclude that the difference between src.avi and output.avi is the bpp parameter: 12 bpp in src.avi while 24 bpp in output.avi.
I'd already tried mencoder before, but just now I can't remember the parameters I used.
There is also another difference between src.avi and output.avi. src.avi uses the xvid codec and output.avi uses h264 codec. Are you sure your player plays h264 vids?
avi is a container. It can contain any number of video codecs(mjpeg / msmpeg4v2 / xvid / ???) and audio codecs (pcm / mp2 / mp3 / ac3 / aac / ???). It's best to match the src.avi that works on the player. xvid is much older than x264, they are not always interchangeable.
mediainfo might better help you / us identify what the source file that works is. You should match that source. Portable players are generally stripped down to make room for content, not abilities. ffmpeg -i is another option to ID the source material. ffprobe, mplayer -identify, and many others...
Thanks for replying!
But I'll have to wait until next week to try the new encoded videos,
because a friend of mine lend the mp4 player for a travel....
For a while I had the same problem, I couldn't encode any videos to make them work with a Divx player. But, I found that something like this works every time:
For a while I had the same problem, I couldn't encode any videos to make them work with a Divx player. But, I found that something like this works every time:
I say you try with a different video, maybe that one is corrupt or something.
As for the lame error, I recommend you use lame version 3.97, newer versions seem to have this bug. Maybe there a patch somewhere ? Either way I use version 3.97 and there is no such bug.
Last edited by H_TeXMeX_H; 09-28-2009 at 03:02 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.