Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

mplayer failing to fully dump audio to pcm

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Moji
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Sat Nov 04, 2006 2:58 am

mplayer failing to fully dump audio to pcm

  • Quote

Post by Moji » Wed Jun 13, 2007 9:14 pm

I use a script to convert all of my vob files on my mythtv box to mkv files with h264 video and vorbis audio.

Recently I changed how the script works and now when the script dumps the audio from the encoded h264 file it fails to dump all of it.
It doesn't seem to be giving a INT, EXIT, TERM, or KILL signal when it fails to dump the audio.
Because I only have part of the audio when it remuxes the files using mkvmerge I end up with a mkv file that only has sound for a portion of the final mkv file and then cuts out.

I've run this script one at a time and it seems to work but when I run more than one instance is when I seem to get the partial failures.

I was wondering if anyone had any ideas as to why this would happen or how I might go about fixing it.

I do have more than enough room on the drive for the audio (over 100gb remaining, and the .wav files are less than 300mb).

Here is the fcron line that I use to start the scripts:

Code: Select all

@exesev(true),runas(mythtv),mail(false),nice(19)        5       /scripts/bin/croncoder
Here is the command that seems to be failing without giving a INT TERM KILL or EXIT command:

Code: Select all

mplayer -really-quiet video.h264 -ao pcm:waveheader:file=audio.wav -vc dummy -vo null || exit
Anyone have an idea as to why that command is not completing, yet not sending an error signal?

-MJ
If you think your question was answered please edit your post and add [SOLVED] to the topic title.
Top
yngwin
Retired Dev
Retired Dev
User avatar
Posts: 4572
Joined: Thu Dec 19, 2002 1:22 pm
Location: Suzhou, China

  • Quote

Post by yngwin » Thu Jun 14, 2007 9:38 am

This is what I'd use:

Code: Select all

mplayer video.h264 -ao pcm:fast:file=audio.wav -vc null -vo null
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Top
Moji
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Sat Nov 04, 2006 2:58 am

  • Quote

Post by Moji » Thu Jun 14, 2007 12:22 pm

yngwin,

Thanks for the suggested mplayer line.
I'm using the -vc null and the fast option in mplayer now.

While looking up the fast option I noticed a comment in the man page that might be the cause of the problem I am having.
Try to dump faster than realtime. Make sure the output
does not get truncated (usually with "Too many video
packets in buffer" message). It is normal that you get
a "Your system is too SLOW to play this!" message.
So I think that I might be getting too many packets in the buffer, that might explain why I have the problem when running more than one instance of the script at once (trying to encode more than one thing at a time using mencoder).

Any suggestions on a workaround for this?

-MJ
If you think your question was answered please edit your post and add [SOLVED] to the topic title.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic