LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-21-2007, 08:52 AM   #16
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405

Hi,

The last three threads seem to confirm my first reply: The file itself is the problem.

I've never created a flv file before myself, but what I read about it tells me that one needs to be precise, especially when audio syncing is concerned. It also seems to matter if you stream flv's or embed them in swf's.

You mention that windows (media player/mplayer/something else??) doesn't have the sync problem. It could be that the player used is more forgiving then mplayer (the linux one), it could also be that you need to include a better/different program that mplayer uses (ffmpeg comes to mind).

The link you provided that you used to install mplayer does not mention the dependencies and other optional software that mplayer can pick up during a build from source.

BTW: What happens if you create a flv file with mencoder, is the sync still off or is it correct.
 
Old 01-21-2007, 06:55 PM   #17
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Hi,

I really don't think that something is wrong with the file because MPlayer played the video perfectly before I pressed the + and - signs. After closing the WIndow, instead of forgetting the changes, it seems to have recorded them.

Also, on Windows, I used FLVPlayer 1.3.3

Yes, I'm using ffmpeg codecs.

Quote:
The link you provided that you used to install mplayer does not mention the dependencies and other optional software that mplayer can pick up during a build from source.

Yes, but I downloaded the all-codecs package and extracted it. I can choose any codec that I want. But all of them give the same problem.

Besides, MPlayer has played the files properly before. If it played it properly before, it should be able to play them properly again right?

Quote:
BTW: What happens if you create a flv file with mencoder, is the sync still off or is it correct.


I'm getting a small error at the ending on entering:

mencoder Self\ Defense.flv -o movie.avi -ovc lavc -oac lavc

Code:
[mp2 @ 0x86e4f8c]bitrate 224 is not allowed in mp2
Couldn't open codec mp2, br=224.

Exiting...

Last edited by gregorian; 01-21-2007 at 07:06 PM.
 
Old 01-22-2007, 04:10 AM   #18
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi.

Quote:
I really don't think that something is wrong with the file because MPlayer played the video perfectly before I pressed the + and - signs. After closing the WIndow, instead of forgetting the changes, it seems to have recorded them.
We seem to be going in circles here

Quote:
Also, on Windows, I used FLVPlayer 1.3.3
This seems to be a dedicated flv player, I do expect it to play flv's the way they are ment to.

Quote:
Yes, but I downloaded the all-codecs package and extracted it. I can choose any codec that I want. But all of them give the same problem.
I was not talking about the codec files package, but about the programs mplayer can (and will) use. These need to be present before you build mplayer from source (libvorbis-1.1.1 and XviD-1.0.3 are just 2 of those)

Take a look here to get an idea: [LFS] Mplayer install page

Quote:
Besides, MPlayer has played the files properly before. If it played it properly before, it should be able to play them properly again right?
If nothing has changed on your box, your assumption is correct.

Quote:
mencoder Self\ Defense.flv -o movie.avi -ovc lavc -oac lavc
Although I never created a flv file, I do know that the command used is incorrect. The infile you use is a flv file.

The following comes from the mplayer helpfile and is used for creating a Macromedia Flash video suitable for playback in a web browser with the Macromedia Flash plugin:

mencoder input.avi -o output.flv -of lavf \
-oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \
-lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3



Maybe the powermanagement of your box is the problem (although this is most common when using mplayer on a laptop). Try using the -nortc option while playing the file.

Can you post the output of mplayer -v infile.flv? Maybe there's a hint there about the problem.
 
Old 01-22-2007, 04:39 AM   #19
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Hi,

Quote:
If nothing has changed on your box, your assumption is correct....

I was not talking about the codec files package, but about the programs mplayer can (and will) use. These need to be present before you build mplayer from source (libvorbis-1.1.1 and XviD-1.0.3 are just 2 of those)
I'm certain that I didn't change anything on my box.

Yes. The files you mentioned were present before compliling.


Quote:
Although I never created a flv file, I do know that the command used is incorrect. The infile you use is a flv file.
Yes, I know that. I wanted to convert the .flv file into an avi file to see if there could be any delay present in the output file. The input file was an flv file originally. I had taken it from YouTube.

Quote:
Can you post the output of mplayer -v infile.flv?
Ok, but it is very large.

Code:
mplayer -v Self\ Defense.flv
MPlayer 1.0rc1-3.2.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 3, Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
get_path('codecs.conf') -> '/home/thezealicon/.mplayer/codecs.conf'
Reading /home/thezealicon/.mplayer/codecs.conf: Can't open '/home/thezealicon/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' 'Self Defense.flv'
init_freetype
get_path('font/font.desc') -> '/home/thezealicon/.mplayer/font/font.desc'
font: can't open file: /home/thezealicon/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/home/thezealicon/.mplayer/input.conf'
Can't open input config file /home/thezealicon/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
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.
get_path('Self Defense.flv.conf') -> '/home/thezealicon/.mplayer/Self Defense.flv.conf'

Playing Self Defense.flv.
get_path('sub/') -> '/home/thezealicon/.mplayer/sub/'
[file] File size is 15219098 bytes
STREAM: [file] Self Defense.flv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename Self Defense.flv ext: .flv
Trying demuxer 35 based on filename extension
LAVF_check: flv format
libavformat file format detected.
==> Found audio stream: 0
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 1
Samplerate: 22050
avg byte/sec: 6000
Block align: 0
bits/sample: 16
cbSize: 0
==========================================================================
==> Found video stream: 1
======= VIDEO Format ======
  biSize 40
  biWidth 320
  biHeight 262
  biPlanes 0
  biBitCount 0
  biCompression 827739206='FLV1'
  biSizeImage 0
===========================
LAVF: 1 audio and 1 video streams found
LAVF: build 3278336
VIDEO:  [FLV1]  320x262  0bpp  29.917 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:35  fourcc:0x31564C46  size:320x262  fps:29.92  ftime:=0.0334
get_path('sub/') -> '/home/thezealicon/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours STAYS_ON_TOP X atoms
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
[xv common] Maximum source image dimensions: 1440x1080
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using SSE optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 2.0, Layer III, 22050 Hz 8 kbit Single-Channel, BPF: 26
Channels: 1, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 22050 Hz, 2 ch, s16le, 8.0 kbit/1.13% (ratio: 1000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 22050Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 22050Hz/2ch/s16le
[dummy] Was reinitialized: 22050Hz/2ch/s16le
ao2: 22050 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 22050 Hz samplerate (requested: 22050)
audio_setup: frags:   4/4  (16384 bytes/frag)  free:  65536
AO: [oss] 22050Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 22050Hz/2ch/s16le -> 22050Hz/2ch/s16le...
[dummy] Was reinitialized: 22050Hz/2ch/s16le
[dummy] Was reinitialized: 22050Hz/2ch/s16le
Starting playback...
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 320 x 262 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x262->320x262,flags=0,'MPlayer',0x32315659)
VO: [xv] 320x262 => 320x262 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
using Xvideo port 60 for hw scaling
[xv] dx: 0 dy: 0 dw: 320 dh: 262
*** [vo] Allocating (slices) mp_image_t, 320x272x12bpp YUV planar, 130560 bytes
get_path('subfont.ttf') -> '/home/thezealicon/.mplayer/subfont.ttf'
Unicode font: 377 glyphs.
Selected font is fixed-width.
[xv] dx: 0 dy: 0 dw: 320 dh: 262
*** [vo] Allocating (slices) mp_image_t, 320x272x12bpp YUV planar, 130560 bytes
Uninit audio filters...-4.092 ct: -0.953 298/298  2%  3%  0.3% 3 0
[libaf] Removing filter dummy
Uninit audio: mp3lib
Uninit video: ffmpeg
vo: uninit ...

Exiting... (Quit)

Thanks.

Last edited by gregorian; 01-22-2007 at 04:42 AM.
 
Old 01-22-2007, 05:08 AM   #20
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Output looks ok (one small thing, but that isn't the issue atm: mplayer falls back to the build in codecs file. copy the codecs.conf file to your ~/.mplayer directory to solve this).

If I'm correct you have to create a <filename>.flv.conf file as well as the <filename>.flv file. Did you try recreating the <filename>.flv.conf file?

Did the -nortc option do anything for you?

Ok, I'm out of ideas........
 
Old 01-22-2007, 07:10 AM   #21
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Quote:
(one small thing, but that isn't the issue atm: mplayer falls back to the build in codecs file. copy the codecs.conf file to your ~/.mplayer directory to solve this).
Ok, I fixed this.


Quote:
If I'm correct you have to create a <filename>.flv.conf file as well as the <filename>.flv file. Did you try recreating the <filename>.flv.conf file?
I don't know about this. I usually run the files by typing:
mplayer file.flv, and the file runs. I typed: locate *.flv.conf and I got no results. Would you please elaborate on the .flv.conf file?


Quote:
Did the -nortc option do anything for you?
I typed mplayer -nortc file.flv and I still got the same result.

Thanks.

P.S. What are subtitles in MPlayer?

Last edited by gregorian; 01-22-2007 at 07:26 AM.
 
Old 01-22-2007, 08:39 AM   #22
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
I don't know about this. I usually run the files by typing:
mplayer file.flv, and the file runs. I typed: locate *.flv.conf and I got no results. Would you please elaborate on the .flv.conf file?
Besides what I've read in the last days I don't know anything about creating flv files (like I stated before).

I did read that audio/video sync problems could be related to the flv.conf file, and recreating this flv.conf file (you did say you created the flv file yourself) could solve your problem. The -nortc option was another hint, but related to laptops/power management.

The flv.conf file is also mentioned in the mplayer -v output, and seems to be found:
get_path('Self Defense.flv.conf') -> '/home/thezealicon/.mplayer/Self Defense.flv.conf'

BTW: locate only works if the database is fresh (run updatedb to update the database).

Quote:
P.S. What are subtitles in MPlayer?
Like any good video player, mplayer can handle (external) subtitle files. These external files need to be present to use them. Files with a srt extension (just one of the many formats) are an example. See the manual page for details.
 
Old 01-23-2007, 03:25 AM   #23
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Quote:
I did read that audio/video sync problems could be related to the flv.conf file, and recreating this flv.conf file (you did say you created the flv file yourself) could solve your problem.
Well, I didn't create the file. I just downloaded it. I ran updateb, but it still does not locate any .flv.conf file.

Quote:

The flv.conf file is also mentioned in the mplayer -v output, and seems to be found:
get_path('Self Defense.flv.conf') -> '/home/thezealicon/.mplayer/Self Defense.flv.conf'
I find a similar message for other flv files.

Do you think that this could be a bug in MPlayer? I don't know if anyone else faces the same problem. If you had an flv file, you could try it out yourself. Here's how I got one. I watched a minute long video on YouTube. I sorted my browser(firefox) cache by size and the largest file was the video file. I renamed it to .flv (mv file fil.flv) and then played it with MPlayer. ALl my flv files are from YouTube.
 
Old 01-26-2007, 08:05 AM   #24
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Well, I just noticed that if you click on the "empty" space of the playbar in gmplayer, instead of jumping to that part of the flv video, it synchronises the sound for a few seconds and then its back to normal(as in non-synchronised).
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
One avi file not getting played my mplayer. ShaanAli Linux - Software 3 05-01-2006 08:24 PM
Mplayer controls lowbrow Linux - Newbie 3 06-07-2005 10:22 AM
MPlayer controls appear off screen ohzo Linux - Newbie 2 07-15-2004 07:03 PM
mplayer plugin controls beaucoup Linux - Software 1 04-24-2004 09:58 AM
Mplayer issue...I have no controls.... oicdn Linux - Software 15 12-25-2003 07:29 AM

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

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