id like to add to this thread about the hours I spent trying over and over, uploading over and over to youtube and spending time on IRC with FFMPEG people so others won't have to spend the time I did.
When i capture to mkv using this command:
the audio at the end prior to me hitting "q" is cutoff. not sure why but i can repeat the audio being cutoff all the time. Anyone else seeing this? I added the -r 29.97 because apparently youtube doesn't like anything non-standard FPS and the people on ffmpeg irc chat told me to add it.
ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 29.97 -s 1024x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 output.mkv
Also, when I try to encode it for youtube using the command
youtube totally f's up my clip from a 36 second clip to 3 second clip. it appears to make video super fast and audio normal.
ffmpeg -i output-new.mkv -acodec libfaac -ab 128k -ac 2 -r 29.97 -vcodec libx264 -vpre slow -crf 22 -threads 0 pm_message_settings.mp4
So the great people on ffmpeg irc chat told me to add -vsync 1 to my encode line and it now works. final render command is this:
I am using ffmpeg SVN-r25112 with the following compile options. configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
ffmpeg -i output-new.mkv -acodec libfaac -ab 256k -ac 2 -r 29.97 -vsync 1 -vcodec libx264 -vpre slow -crf 22 -threads 0 pm_message_settings.mp4
I do have composite extra enabled on 10.04 Lucid Lynx for zooming in during my screencast. I have the NVIDIA 96.43.17 driver installed.
SO if anyone else can help with the audio being cutoff prior to hitting the q button please let me know. Shouldn't the audio stop with the video when you hit "q"? thanks for any help