Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-14-2009, 10:18 AM   #1
Registered: May 2004
Posts: 166

Rep: Reputation: 17
ffmpeg or recordmydesktop bug?

I am using gtk-recordmydesktop and converting to asf using ffmpeg. I am finding the following very peculiar problem.

The script has a line

ffmpeg -i $f -vcodec wmv2 -sameq -acodec wmav2 -f asf $f.asf

(I get an .ogv.asf extension which is changed to .asf later)

The thing that is peculiar is this. On three out of four files, the conversion works. But on other occasions I get

Stream #0.0: Invalid Codec -1 (I get this for the files that do convert Ok as well)
Stream #0.1: Video: theora (and usual looking stuff)
Stream #0.2 Audio: vorbis (and usual looking stuff)

swScaler: Unknown format is not supported as input pixel format
Cannot get resampling context.

I have no idea whether recordmydesktop is giving bad output or ffmpeg is failing given good input. (The ogv files play fine.) I just get an asf file containing zero bytes.

Remember, it works on three files out of four. Anyone had this and found a work-around?
For instance, is there a way of hacking the ogv header?

Last edited by tethysgods; 12-14-2009 at 12:23 PM.
Old 12-16-2009, 12:35 PM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
It sure looks like something about the input format is making ffmpeg choke, but it's unknowable from the above output whether this is because gtk-recordmydesktop is creating corrupt files or whether ffmpeg is reading it wrong.

One thing you could do is replace ffmpeg with an equivalent mencoder command, say, and see if it can handle it better. This will at least give you a better idea of which program is at fault.


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
No sound in recordmydesktop arubin Slackware 4 09-05-2009 05:37 PM
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
Problem with recordmydesktop Accinson Programming 1 02-19-2009 06:55 AM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 05:16 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration