Ffmpeg records video only, no audio

I'm trying to record my desktop (or single programs) with ffmpeg. The video quality is okay (would be better, if I had a better pc, I guess), but somehow, I cannot record any audio. I did it with
$ ffmpeg -s 1280x1024 -r 30 -f x11grab -i :0.0 -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y testtestaudio.mp4
or
$ ffmpeg -s 1280x1024 -r 30 -f x11grab -i :0.0 -acodec libfaac -ab 128k -vcodec mpeg4 -sameq -y testtestaudio.mp4
but I always get a result like that:
video:9956kB audio:0kB global headers:0kB muxing overhead 0.036333%
which means, that ffmpeg didn't record the audio output.
I don't know where to start to get the audio problem fixed. Has anyone a similiar problem or does someone know, why it does not record? Do you need any more information from me?

I already sended ChemBro my script via e-mail but it might be also interesting for someone of you:
# -V0 means verbosity level 0 for the rec command of SOX.
/usr/bin/rec /home/hb/t_game.wav -V0 &
/usr/bin/ffmpeg -f x11grab -y -r 15 -s 864x640 -i :0.0 -vcodec huffyuv /home/hb/t_game.avi
#/usr/bin/ffmpeg -f x11grab -y -r 15 -s 688x544 -i :0.0 -vcodec huffyuv /home/hb/t_game.avi
#/usr/bin/ffmpeg -f x11grab -y -r 15 -s 688x544 -i :0.0 -vcodec mjpeg /home/hb/t_game.avi
# Do a hard kill for rec after ffmpeg's X11 recording session has ended
killall /usr/bin/rec
/usr/bin/mencoder -ovc copy -oac copy -audiofile /home/hb/t_game.wav -o /home/hb/game.avi /home/hb/t_game.avi
rm /home/hb/t_game.avi
rm /home/hb/t_game.wav
You have of course to adjust the output path for audio and video. I couldn´t make rec really "silent" and you´ll see the volume meter being written to the console. Not nice but it works....:D

Similar Messages

  • Video only playing audio

    On my PC (Windows7 and ITunes10.6), my music videos only play audio.  It did play both video and audio, but currenly only audio is working.  Any advise is appreciated.

    See if this article will help:
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/TS1718

  • Not seeing the main display for video only getting audio...no visual

    can anyone help....not seeing the main display for video only getting audio...no visual

    Hi
    You must tell - What Video-codec is material ? (What Camera was used - how was it set ? )
    Try to supply much more info that set's us up on track. (Mind-reading is way to hard)
    Yours Bengt W

  • Recorded video has no audio

    Hi, i have lumia 1020, the problem is that the recorded video has no audio. It worked for the first 2 video i have made . But it doesn't anymore.I have done a factory reset. But it still not working. The sound is not recorded anymore.
    Is there a way to solve this problem.
    Thanks !

    Hi gent123,
    This is for a Lumia 925, right? When did this issue start to happen? Did something happen to your phone prior to this issue? Are you also experiencing the other issues mentioned above, like issues with voice commands and audio note recording? What troubleshooting steps have you tried so far?
    The video audio is captured by the phone's secondary mic, which is located on the top of the phone, beside the headset port. If you have a phone cover that might block the secondary mic, try removing it for a while and see if the audio will be captured when recording videos. Try also to reboot the phone by pressing and holding the volume down + power keys until it vibrates and restarts. 
    Make sure that the phone's software and system apps are updated as well. Check this link for steps on how to verify if the system apps are up-to-date: Nokia Windows Phone 8 App Updates.
    Let us know if this information helped you. 

  • Purchased music videos only play audio

    I have about a dozen of video clips I bought on iTunes.
    None of them now play in video mode. Only the audio. I rechecked the authorization. Everything is fine.
    I can play other video clips not purchased on itunes. And I can also play the movies I bought on itunes, and others as well.
    I thought this could be a problem with my hard drive being replaced two weeks ago, and reinstalling everything through system dvd that came with computer + Time Machine back up, but I also downloaded the most recent "free video of the week" and it only plays in audio mode as well.
    Anybody has a clue?

    found a temporary solution, but it still strange. for each clip I did "get info" and changed the media type from "video clip" to "films". Now they play just fine.

  • When i upload a video only the audio works

    I am uploading a video bumper into Imove and when I do only the audio works and I lose the video. Any suggestions.

    format: H.264, 1920 x 1080, millions AAC, 2 challenls, 4800 HZ
    FPS: 29.97
    Data Size: 4.9 MB
    Data Range: 2,985.31 kbit/s
    Current Size 1264 x 711 pixels

  • Recorded Videos Have No Audio

    Lumia 920 running Amber
    As above, have noticed that videos recorded recently have no audio, but I have older videos that do have audio.
    I have tried making some test videos to see if I was blocking the microphone but this is not the case.
    Can anybody tell me how to fix this, and more importantly, if I can restore the audio to the videos I've already recorded.
    Thanks

    There was an issue reported with this since last month and as far as i know an update has been released,have you the latest software and how old is your sim card you are using now?
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Dynamic Link After Effects to Premiere (Video Only, No Audio)?

    Can you Dynamic link an After Effects file so that audio does not interleave into the premiere pro project?   I just want to link the video part of the comp and do not want audio data in my asset.
    *I already know that I can double click the asset in premiere and drag video only from there.   I want to strip audio from the after effects linked asset so when i drag the asset from the bin to the timeline it will not try to add audio also.
    Thanks,
    Cliff

    If you unlink the audio and video in Premiere Pro
    Then you select only the video layer to replace with After Effects Composition
    You'll end up with the Audio automatically turned off in AE when the dynamic link composition is created.
    You get the same result if you leave the audio layer linked but you lock it before enabling the dynamic link.
    The advantage to doing this is that you don't have to mess with audio in After Effects. There is no additional disadvantage to locking or unlinking the audio track because any time you replace elements in PPro with AE compositions the Audio and Video are unlinked. You'll need to re-link them if you plan move the tracks around at all because you loose the out of sync warnings that you'll normally get.

  • Capturing video only- no audio

    Hello- I have sound when I play back the tape in my video camera-but when I capture to FCE there is no sign of the audio and no audio upon playback. I put in a tape that I captured successfully from before(including audio) and same problem with that capture- no audio...
    I tried changing to "Canvas Playback"- no difference.
    Any help would be greatly appreciated.-Thanks.

    Hello- No sound waves. One thing I checked and am not sure of-in "system settings"-Scratch disk-there are 4 headings of "Video capture", "audio capture", "video render" and "audio render"
    Three of them are checked off- except "audio capture" this box is grayed out and I can't make it active. Is this the issue?
    Other things seam a little buggy also... I'm wondering if I need to reload the software?
    Thanks...

  • Screen recording-video pauses while audio continues

    When I make a screen recording, the audio and video are playing perfectly (I use soundflower for the audio). However, when I go to watch my screen recording, it starts off like normal but about 30 seconds into the video, the video pauses while the audio continues playing like normal. Any reason as to why this is happening? I'm not just recording my screen but also a video from a website, don't know if that makes a difference.
    Thanks

    I am having the same issue I posted this elsewhere
    I have a Mid 2010 Mac Mini Server (full specs below) and very recently it has developed a strange problem.  I'll be watching something on iTunes and the video will stop but the audio continues.  If I move the mouse and click on the screen the video suddenly plays very fast untill it catches up with the audio and then for a while it will play normally.  I can go through this process 3-4 times an hour before I give up and stream to my iPad instead.
    in the beginning it only happened when I was using the HDMI cable but recently it happens when the mini VGA adaptor is plugged in too.
    its beginning to be very frustrating so any help would be truly appreciated.
    thanks
    James
    Mac Mini Specs
    Intel Core 2 Duo 2.66 Ghz
    8GB Ram
    Running Lion Server 10.7.2 (111C74)
    ITunes 10.5.2

  • MP4's tagged as music video only play audio + static picture?

    Hi everyone,
    Is it normal that MP4 files, that have been tagged as Music Video (Itunes Media Type), only show a static image on playback instead of a moving image.
    I assumed that a music video would show the video too. Hence the tag name "Music VIDEO"
    So at this point, I'm looking at a still image. Audio plays fine though.
    Thank you for your help,
    Jeroen

    This same exact thing happened to me just recently. My videos played fine since I got my iPod in December and now they just play audio and are organized in with my "music" menu. I've looked around and a lot of people seem to have this happening to them also, but no one has had a real solution that I've found. I think it may have something to do with an iTunes update since the problem happened after I updated.

  • Videos only Play Audio

    i have an iPod video and iTunes on an hp running windows xp. when i download a tv show, it downloads fine, but it only plays the audio, not the visual of the tv show. it does the same for podcast(idk if podcast's are supposed to have video). i was wondering how to fix this. Thank You

    Have you installed any third-party QuickTime codecs (such as DivX) or iTunes enhancers or plugins since your videos last worked? If so, try removing them and see if matters improve. If not, or you haven't installed any third-party items, you might try uninstalling and reinstalling QuickTime. You can get the download from the QuickTime tab above; just select the option to download without iTunes.
    Caution: as with any significant software installation, it's wise to make a backup of your important documents - in this case your purchased tracks and videos - before attempting the installation, just in case something would happen to go wrong.
    Hope this helps.

  • Captured video only plays audio through one speaker

    I captured video from a mini dv and when I play the clip in FCP the audio only plays out of one speaker and it only shows on one audio meter in FCP. I captured this video with a DSR-20 and it displayed NS Audio on the screen. Both meters were playing on the deck and in FCP while previewing and also through my headphones. Does anyone know what I need to do this to correct this?

    First I'd verify how the audio was captured. Did you have it set for Ch 1 + Ch 2, or Stereo, or Ch 1 [only], or Ch 2 [only] or as a mono mix?
    Next, verify that you actually had two channels of audio on the tape, not just one channel.
    Assuming that there are two channels on the tape, load the captured clip into the Viewer and see if there is an audio waveform on both channels. If there is, check to see if both channels are panned the same - if they are, pan one left and one right or both to center.
    If there were no waveforms on one of the channels, try capturing a short segment of the same tape using another Firewire cable.
    -DH

  • Can a crossfade transition apply to video only, not audio?

    I want to have a Cross dissolve transition, but that does not affect the audio. Is this possible without extracting the audio?
    What I mean is the video will have a croos dissovle transition, but the audio just goes straight into clip 2 with no audio crossfade?
    Thanks

    Tom Wolsky wrote:
    If you double click the audio portions to expand them and then add the cross dissolve the fades won't be added to the audio. Maybe that's what you meant by extracting.
    Yes expand = extract audio = detach audio, different words for the same thing.
    What I want is to be able to add corssfades without expanding (extracting or detaching audio) so that it only applies to the video. Thanks I'll investigate that link.

Maybe you are looking for