Cuda H.264 encoding with FFMPEG

Does anybody know how to achieve this? I've been googling around for the past hour and a half looking for a way to encode using the cuda H.264 codec.
So far, I've read that the nvidia cuda libraries come with a H.264 module, but I have not seen anything about how to put it into use yet.

I'm not aware of Nvidia shipping an encoder. Can you give some links that confirm it? Maybe you're talking about using the hardware decoder to decode the original video and then encoding it with x264. That's possible, however no one has implemented it yet in Linux. The only thing that's implemented is using the hardware decoders for playback.
PS. Even if Nvidia does ship an encoder - don't bother. It very, very likely sucks. All hardware encoders suck.

Similar Messages

  • H.264 encoding with different bitrates...same quality..

    Hi there,
    while testing for right bitrates, we encountered a strange
    problem: Quality of h.264 video doesn't seem to change, even if we
    alter the bitrate quite dramastic.
    Eg. 640x480 video looks quite the same, whether encoded with
    350kbit or with 1000 kbit.
    That can't be right, especially because the quality is always
    not great.
    Any thoughts?
    thomas

    Video quality is not linear with either bitrate or size of
    the video. The final result depends very much on the video
    itself--how much motion is involved, for instance.
    You might pick a particularly busy section of your movie and
    start encoding at an anticipated rate. Then decrease the bitrate by
    25kbs, render again, notice the results, repeating again and again
    until you see a degradation in quality. Return to the previous
    setting and that is your ideal bitrate.

  • H.264 encoding with Episode Pro or Compressor ???

    I will be doing some HDDVD soon and was wondering if anyone have used Episode Pro for H.264 encoding. I'm using CinemaCraft for SD encoding and find it much better than compressor but at the moment there's no affordable H.264 encoders other than Episode pro...Any suggestions ??? Thanks

    Currently, I have Episode Pro 4.2.2, which is the latest version of Episode Pro. The limitations with it are that there are several small things like with H.264, where it will only do 2 pass encoding, instead of multipass, which if you're a stickler for detail like I am, you will see the difference.
    Episode doesn't base it's encoding on QT, though it does make use of the codecs contained in QT. As one of the people at telestream said, they use there own proprietary engine and as a result, for the most part, does very fairly nice job.
    If you were to really put to the test Episode Pro against compressor's multipass encoder, you find that all things being setup the same, that compressor would yield a technically superior image, (due to multipass encoding.)
    If you are in a hurry and the quality of image is not as important as time, Episode Pro is you're choice. Now in defense of Telestream, they are a company that listens to there end users, unlike some I know, (Auto Desks Cleaner 6.5 comes to mind.) I have emailed there technical team and made suggestion on improvements to Episode Pro and believe it or not, they will be implementing my suggestions within the next 6 to 8 months. My moneys always on the company that listens to there customers.
    When I have very critical work, dealing with H.264, compressor when setup correctly gives outstanding results, but now that when I have corresponded with Telestream over the last month, I'm betting that the limitations that Episode currently has, will rapidly disappear in a very short time, they just listen the there customers.
    I also have 3 copies of Cleaner 6.5 and it also, (when it works) also uses multipass encoding for H.264 and resulting files look fabulous. The only problem is that I can never keep a batch running for more than a day.
    Long story short, for day to day output, were perfection is not a concern, Episode Pro is a very good choice, (I own 3 copies.) For mission critical work, where high quality is a must, I unfortunately have to still use Cleaner 6.5, even though it hasn't seen an update in over a year, (not even bug fixes.) The reason for using Cleaner 6.5 is that, I guess I'm just use to the software and know were all the gotchs are, so I just work around them. Compressor again is a very good choice, but the setup is still not on par with the other encoders, this is why I use Cleaner 6.5, (for critical work) and Episode Pro, (for day to day use) there easier to setup.
    Sorry for rambling on so much, I have been dealing with finding the best solution for a long time now, and still there isn't just one app that has it all, YET! I even own a copy of Sorenson 4.5, but don't use it at all.

  • Video Card H.264 encoding

    Do any of the video cards available for Mac Pro support H.264 encoding with compressor?
    Rick

    The spec on the Radeon X1900 says that it does H.264 "transcoding", whatever that means. I find it a little strange that Apple pushed H.264 for HD, but only supports the small HD size in DSP (at least as I understand it). Then to make matters worse, the H.264 encoding is so ssllooww!
    Does Compressor use the X1900 for H.264?
    Rick

  • H.264 encoding issues with Premiere Pro CC 2014

    After updating to Premiere Pro CC 2014 yesterday, I see encoding artifacts on my H.264 exports.
    Same source video imported into CC v2014 and v7, and exported using the YouTube 1080p 29.97 fps settings. The artifacts manifests itself as softness/blurriness in parts of the image every few seconds, especially notice the area with a red circle below.
    Here are the source file (GoPro HERO3 Black Edition), the v2014 render and the v7 render.
    Original: https://drive.google.com/file/d/0B2rJe0xgMTxFYXJiMjZpZ0stUzQ/edit?usp=sharing
    CC v2014 render: https://drive.google.com/file/d/0B2rJe0xgMTxFQ1B0Z09GS3I0a1E/edit?usp=sharing
    CC v7 render: Premiere Pro CC.mp4 - Google Drive
    [Version numbers corrected.]
    Message was edited by: Jim Simon

    Mark Mapes wrote:
    This is a known issue introduced in CC2014.0. Some h.264 encodes have blurriness or noise periodically in some areas of the frame. The problem is most pronounced in regions of the frame with very little detail, like grass or pavement--or the T-shirt in the sample frame. We are working on a fix. Before you ask when the patch will be forthcoming, I'm not authorized to even hint at the timeframe.
    Unfortunately, the only real workaround is to export to a format other than h.264. If that's not an option for you, then your best bet is probably to keep working in CC7.2.2 until the patch is released.
    Sorry, but thats not completely true and by far not the correct answer:
    The problems with random artifacts occurred with the introduction of a new version of H264 in CS6 but there you still had the option to export with the previous H264 Version via Media Encoder. 
    Since the previous H264 version is not available in CC, using CC7.2.2 is not a solution either.
    BTW
    Updating to CC and using the new Mac Pros with Mavericks is currently a total mess - no open cl rendering, random crashes, no usable h264 ... thanks adobe!!
    ... but we can track masks in premiere now ... wow!

  • Issue with Adobe Encore CS5.1 and Matrox MAX H.264 encoding on Windows

    Here's some information on an issue that we've identified with Matrox products and Encore CS5.1:
    "Issue with Adobe Encore CS5.1 and Matrox MAX H.264 encoding on Windows"

    Still flickering on Encore even when rendered in MPEG-2 DVD in Pemiere Pro CS5.5. Looks perfect in Premiere Pro.
    Any other ideas?
    EDIT: Was looking for Google for people with similar problems to me and I came across this http://forums.adobe.com/message/3959757?tstart=0
    I am currently re-rendering the video in PAL DV Widescreen MPEG-2 DVD and using maximum render quality.

  • No option to encode with Surcode 5.1 in h.264 codec?

    My Premiere and AME are both updated to 4.0.1. I'm trying to encode with multi-channel to an Apple TV compliant h.264 (non-bluray) file. The audio encoding allows multi-channel AAC (which I believe may be unrecognizable by my receiver), but not an option for the Surcode AC3 codec. Surcode is available under h.264 blu-ray and MPEG-2 DVD, but is not an option under the normal h.264. How can I encode a multi-channel audio track for an Apple TV? (The blu-ray option does not allow me to pick my required resolution of 960x540 29.97 fps). And is this $300 plug-in my only multi-channel option?

    i would just encode the files seperatly. Do an audio only encode for the Surcode, then export the Video H.264. Thats what I did and it worked great.
    My problem was that the ac3 file was still only 2 channels....

  • MainConcept CUDA-based h.264 encoder

    I see that Sony Vegas 10 will be using the new (announced about 6 months ago) CUDA-based MainConcept h.264 encoder. Is there any chance that PPro CS5 will be doing the same in the near future?  Note that this encoder uses CUDA for exporting the timeline, unlike the MPE which uses CUDA to accelerate FX and transitions, when previewing.

    >any chance that PPro
    Adobe generally does not annouce products before they are ready to ship
    Feature Request https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • How to use the settings of Apple's h.264 Codec in ffmpeg.

    Hi there!
    Is it possible to use the same settings of the Apple h.264 codec in ffmpeg?
    I already found a *.setting file with some info, but this can't be all....
    Does someone know the settings of the Apple h.264 codec that are used by default (e.g.: me, subme, psy, mixed_ref, bframes, b_pyramid)? Or maybe there's a tool to analyze a movie encoded with the Apple h.264 codec very precisely (I already tried h264_parse.exe, but I couldn't figure out that much)
    Best regards,
    basti

    dwcs66 wrote:
    My questions are:
    1) How do I access the values generated by APEX (in bold) so that I can use them in further calculations? e.g. create a grand total from both regions
    2) Having calculated a value, assuming 1 above is possible, how do I insert it at position x or y? e.g I want to calculate a % so that x would be 8.33% and y 20%
    There are a couple of options for doing this, but neither of them are particularly simple for the inexperienced.
    1. Use dynamic actions and JavaScript to extract the values from the report total rows, calculate the values, and insert the results into the required report cell.
    2. Combine both reports into one, with all of the calculations performed in the query, and use a custom report template to display the results in the required format. This would involve a similar approach to that used in this previous thread: https://forums.oracle.com/message/10109743#10109743
    3) How do I change the words report total: to something more helpful?
    Use the Display this text when printing report sums property in the Break Formatting section of the report attributes.

  • File encoded with x264 takes forever to load in Encore CS 5.5

    I use Encore mostly because it takes h.264 video encoded with the x264 compressor, which provides much higher quality than any other compressor. The problem is that these files take forever to load. For example, right now I'm trying to load a video that is about 1 hour and 20 minutes long, encoded at 38 Mbps, and the file is 20.9 GBytes. Now it's 3 PM and I imported this file along with the AC3 file over an hour ago. The Encore process shows as not responding, but when I open the Windows 7 Resource Monitor, in the disk tab it shows that it's reading the video file at a rate of about 45 MB/s, so I didn't kill the Encore process. I know eventually it's going to stop and load the file, but I don't understand why it takes so long. The encoding parameters that I used in x264 are these:
    x264 --level 4.1 --bluray-compat --preset slow --bitrate 38000 --keyint 30 --min-keyint 2 --open-gop --weightp 0 --slices 4 --vbv-bufsize 30000 --vbv-maxrate 40000 --rc-lookahead 40 --tff --output "output" "input"
    This comes from a family video that is 1080 59.94i. This time these two parameters appeared because I selected Blu-ray as the target:  --bluray-compat and --open-gop, which I don't normally use, but still, even when I don't use them, video encoded with x264 takes forever to load. Does anybody here know what could be the problem?

    What's weird is last year I encoded a file that was almost two hours long and Encore took it without trouble, although it was CS5, not 5.5. Since I had kept the avs and bat files, and also the x264.exe from that encode, I brought them into the current working folder and I just modified the file names in the avs and bat files to point to the new avi and encode to the new h264 file. So I encoded this file, I imported it into Encore, and it still hangs. Maybe it was a change from CS5 to 5.1 that introduced a problem. x264 has been certified to be Blu-ray compliant since over a year ago, and I already put this file to a Blu-ray with TSMuxer, since it was a family video and I didn't really need menus, and it plays perfectly fine in my Blu-ray player.
    But I'm sure there must be something, one or two parameters that would make it compatible. For example, after encoding the file again the last time, now I can import it into Encore, and it doesn't stay frozen forever, but it doesn't show me the video and as soon as I try to move the timeline cursor it freezes and doesn't let me do anything for several minutes. So still it's not usable. But it's a change from the first encode where the progress dialog would be there for several hours and do nothing at all.

  • F4v encoded with Adobe media encoder CS4 (longer than 71 minutes)

    Hi I don't know if this is the correct place for this post. So apologies me if this is the wrong place.
    Encoding with Adobe Media Encoder CS4 (4.2.0.006 and 4.0 too)
    Source: MOV (DVPAL) longer than 71 minutes
    Dest: F4V (H.264)
    Result: freezed frames and only plays audio at 01:11. Media Player goes crazy and starts showing some diferent parts freeze frames.
    In Quicktime crashes, in VLC the same of MediaPlayer. Sometimes the audio starts to downsampling and sounds like the pitch goes down.
    Totally agree with this other post: http://forums.adobe.com/thread/580391
    (extract)
    I recentlly encoded afew F4V using Adobe Media Encoder Cs4.  MOst of them are working properly but I don't know why, all of my video that are longer than 71 minutes seems to have trouble playing back.  They all Freeze when they reach 71 minutes or if I navigate pass this point.
    thanks and help us please!
    Kik

    Thanks for the interest.
    I'll try to explain all details:
    MacPro 1.1 (mid 2006) under Mac OS X 10.4.11 (Darwin 8.11.1 kernel)
    System files: journaled HFS+ and a unix based NAS (under samba connection)
    I have all material on the NAS and also I make the transcoding over it. Is a simple mov containing DV PAL WIDE interlaced 25fps with stereo audio. typical settings with nothing out of DV PAL standard.
    The version of MediaEncoder CS4: 4.2.0.006 (it happens with older versions too)
    The settings of MediaEncoder are:
    Audio: AAC stereo 44,1 kHz
    Video: F4V. MainConcept H.264, fps like source, profile high, level 4,1. CBR compression.
    The problem only appears with videos longer than 71 minuts. At 01:11 starts with crazy problems. It seems like the player have some read or problems.
    Tell me if you need some other kind of information.
    thks

  • If I buy quicktime 7 pro, will it help me load h.264 encoded .mov files in PREL13?

    Presently in PREL13, when I attempt to playback any of a group of about 100 video clips all encoded with h.264 in a qt.mov container, they skip or halt, initially the video, then the audio as well. Rendering does not help. I installed the latest version of regular QuickTime, and the video play is the same. I don't need to do any extremely complicated editing here, but I can't really do any if I can't reliably determine start and end points, or really establish video content at all. I cannot pause or seek or really anything. It's possible that my old slow computer just can't hang. Video plays acceptably in QT regular player, seekable, pause/play works fine.
    Will there be any advantage to buying the pro version? What would my work flow look like? Could I skip intermediary file steps and work from the original video files?

    So unfortunately, I don't know the camera settings.
    I only bought quicktime because I thought it would help me work with these videos.
    Back to your initial questions shortly. In that regard, what is the file extension of these 100 videos...mov or qt?
    The file extension is .mov. I didn't entirely follow the other stuff. As I said, the two programs are reporting different information about the same file.
    Additionally, I can report what MediaInfo says about the same file (which seems a little more comprehensive, including for instance that it was shot on a canon, in AVCHD 1080i60:
    General
    Complete name                            : X:\XXXXX\XXXXX\Clip #1.mov
    Format                                   : MPEG-4
    Format profile                           : QuickTime
    Codec ID                                 : qt 
    File size                                : 225 MiB
    Duration                                 : 3mn 57s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 7 946 Kbps
    Encoded date                             : UTC 2014-08-08 18:02:58
    Tagged date                              : UTC 2014-08-08 18:03:48
    Writing library                          : Apple QuickTime
    com.apple.proapps.reel                   : CANON
    com.apple.proapps.isGood                 : 0
    com.apple.proapps.dataSize               : Unknown kind of value!
    com.apple.proapps.displayFormat          : 1080i60
    com.apple.proapps.shootingRate           : Unknown kind of value!
    com.apple.proapps.videoBitrate           : 0
    com.apple.proapps.originalFormat         : AVCHD 1080i60
    com.apple.proapps.pulldown               : 1
    com.apple.proapps.mediaRate              : Unknown kind of value!
    com.apple.proapps.timecodeFormat         : 1
    com.apple.proapps.numberOfAudioChannels  : 2
    com.apple.proapps.sampleRate             : 48000
    com.apple.proapps.bitsPerSample          : 16
    com.apple.quicktime.creationdate         : 2014-07-22T19:18:49-0500
    com.apple.proapps.manufacturer           : Canon
    com.apple.proapps.clipFileName           : Clip #1
    com.apple.proapps.clipID                 : 000000000c68e80029fd297d7dbc45455b176f5a5b1441d8d93257481836befb68ebe0dbe13d88e46d63e6746 972dad41111104706aed608eea1886ad32653b1317dc61a12c5dcdebe674a1920bf58c690cf959c09350c6e
    com.apple.proapps.RADSDKVersion          : 3.1
    com.apple.proapps.cameraID               : 3D2CB7D4-9473-3E4C-9DE9-257FB8F6BB73
    com.apple.proapps.cameraName             : CANON
    com.apple.proapps.ingestDate.description : 2014-08-08 14:02:58 -0400
    com.apple.quicktime.make                 : Apple
    com.apple.quicktime.model                : MacBookPro11,3
    com.apple.quicktime.software             : Mac OS X 10.9.4 (13E28)
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : [email protected]
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 2 frames
    Format settings, GOP                     : M=3, N=15
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 3mn 57s
    Bit rate mode                            : Variable
    Bit rate                                 : 6 362 Kbps
    Maximum bit rate                         : 12.0 Mbps
    Width                                    : 1 440 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 29.970 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Interlaced
    Scan type, store method                  : Interleaved fields
    Scan order                               : Top Field First
    Bits/(Pixel*Frame)                       : 0.136
    Stream size                              : 180 MiB (80%)
    Title                                    : Core Media Video
    Encoded date                             : UTC 2014-08-08 18:02:58
    Tagged date                              : UTC 2014-08-08 18:03:48
    Color primaries                          : BT.709
    Transfer characteristics                 : BT.709
    Matrix coefficients                      : BT.709
    Audio
    ID                                       : 2
    Format                                   : PCM
    Format settings, Endianness              : Little
    Format settings, Sign                    : Signed
    Codec ID                                 : sowt
    Duration                                 : 3mn 57s
    Source duration                          : 3mn 57s
    Bit rate mode                            : Constant
    Bit rate                                 : 1 536 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz
    Bit depth                                : 16 bits
    Stream size                              : 43.5 MiB (19%)
    Source stream size                       : 43.5 MiB (19%)
    Title                                    : Core Media Audio
    Encoded date                             : UTC 2014-08-08 18:02:58
    Tagged date                              : UTC 2014-08-08 18:03:48
    Other
    ID                                       : 3
    Type                                     : Time code
    Format                                   : QuickTime TC
    Duration                                 : 3mn 57s
    Time code of first frame                 : 00:00:00;00
    Time code, striped                       : Yes
    Title                                    : Core Media Time Code
    Encoded date                             : UTC 2014-08-08 18:02:58
    Tagged date                              : UTC 2014-08-08 18:03:48

  • Please clarify availability of H 264 encoding in AIR for iOS/Android

    Hello,
    I've written an app to send a live camera stream via RTMP in H 264/Nellymoser from mobile devices.  The app works fine on AIR when tested on my Win7 desktop, but when I publish to AIR 3.2 for Android or AIR for iOS, it seems that the H264VideoStreamSettings are simply ignored and the video ends up in Sorenson.  Is H264 supported for encoding/publishing on AIR for mobile devices?  If not, is this planned for the future?
    Thanks!

    Unfortunately, the release notes say H.264 encoding from AIR is for the desktop version only:
    http://helpx.adobe.com/x-productkb/multi/release-notes-flash-player-11.html
    H.264/AVC Software Encoding for Cameras (desktop) — Stream high-quality video from your computer's camera with higher compression efficiency and industry stanard support, enabling both immersive real-time communications such as video chat/conferencing and live video broadcasts.

  • Very Slow H.264 Encoding in FCP 10.1.2 and Compressor 4.1 on nMP

    I have a fully maxed out 12-core nMP and editing with this machine in FCP 10.1.1 has been a delight.   I recently completed a 4K project from footage shot with the Sony AX-100 and then output the project from FCP X using File>Share>Master File to ProRes 422.  This operation occurred in about the same length of time as the length of the project (18.5 min.). I then brought this 75 GB ProRes .mov file into Compressor 4.1, and set up Compressor to encode to an H.264 file at 70 Mb/sec.  This encode to h.264 is only 1/4 complete at 48 min. and it appears that it will take Compressor about 4 hours to encode this 18 min. project to h.264. Furthermore, I noticed that with the share to a master prores file FCP X was using 50-60% of my total CPU resources while the encode to h.264 in  Compressor is using barely 16% of the total CPU.  Thus it appears to me that while FCP 10.1.1 is optimized for the nMP, certainly Compressor 4.1, at least for h.264 encoding, is not.
    My question is basically what am I missing?  Is there a better workflow than using Compressor 4.1 for high bit rate h. 264 encoding of 4K?  If so, what is the best way to use my nMP to get a high bit rate h.264 4K file for sending to YouTube and other online streaming?
    Thanks for sharing any thoughts on this you may have.
    Tom

    Russ,
    Thanks for responding. 
    I am encoding only a single project from FCP X in Compressor 4.1 and using only a single instance of Compressor.  I don't really see that using multiple instances of Compresor with a single job would be helpful, but perhaps I don't understand something. 
    The project has now been encoding for 2.5 hr and is slightly less than half complete.  The CPU usage is still at 16-17%.  Overall this seems like a ridiculously slow encode to h.264 from a ProRes 422 file in Compressor 4.1.
    Here are some thoughts on alternatives that I may try. (1) Take the Pro Res 422 file into Adobe's Media Encoder CC and encode it to high bit rate 4K h.264. (2) Take the Pro Res 422 file into Handbrake and encode to high bitrate 4K h.264. Handbrake does seem to make far more use of the nMP's CPU's than Compressor 4.1.  Don't know about Media Encoder since I have not tried any h.264 encoding in Media Encoder.
    The irony is that my nMP will play then entire 18.5 minute 4K project from the timeline with virtually no dropped frames, but rendering it to h.264 at 4K and high bit rate seems to take forever. 
    If you have any other thoughts, I would love to hear them.  Thanks so much for responding, and I would love to hear from any FCP X experts who are encoding 4K to h.264.
    Tom

  • Game recording issues with ffmpeg

    Hello, I'm trying to create a script to record windowed games with ffmpeg.
    This is what I have so far:
    #!/bin/sh
    INFO=$(xwininfo -frame)
    WIN_GEO=$(echo $INFO | grep -oEe 'geometry [0-9]+x[0-9]+' | grep -oEe '[0-9]+x[0-9]+')
    WIN_XY=$(echo $INFO | grep -oEe 'Corners:\s+\+[0-9]+\+[0-9]+' | grep -oEe '[0-9]+\+[0-9]+' | sed -e 's/+/,/' )
    ffmpeg -f x11grab -y -r 60 -s $WIN_GEO -i :0.0+$WIN_XY -f alsa -i pulse -crf 18 -preset ultrafast -threads 8 -async 5000 $1.mkv
    It allows me to click on a window and record it - it works, but has some issues:
    > I manually have to redirect the game audio with pavucontrol to be able to record it
    > Audio gets out of sync, I tried many options with no luck
    > I can't find a way to record both game audio and microphone audio
    So,
    > Could the script be improved somehow for better quality/performance?
    > How can I prevent the audio going out of sync?
    > How can I record both game video, game audio and microphone audio at the same time?
    Thanks.

    SuperV1234 wrote: > I manually have to redirect the game audio with pavucontrol to be able to record it
    Usually, PulseAudio will remember the last used device. Once you run ffmpeg once, PA should remember that it listened on the monitor input and use that.
    SuperV1234 wrote: > Audio gets out of sync, I tried many options with no luck
    I got this problem too a while back. Try removing the -async option, it's deprecated and caused more trouble than I had. Also, make sure you always have enough processing power to process everything in time, otherwise it will become out of sync quickly. ffmpeg isn't smart enough yet to fill the gaps, so if you can't grab the audio fast enough (pulseaudio glitch), can't encode the video fast enough 100% of the time, or anything else, it will lose frames and result in a delay. Even funnier, also make sure the drive you output to is fast enough to save the file so ffmpeg never block on writing the file to disk (I used to send my encode directly to a streaming server, and the network latency messed it up).
    SuperV1234 wrote: > I can't find a way to record both game audio and microphone audio
    You can set this up easily with either PA or Jack. Jack is a bit easier to use, but here's the way I do it myself:
    - Create a dummy output device (module-null-sink)
    - Use a loopback to play your microphone in the dummy output (module-loopback)
    - Use a loopback to play your sound card monitor into the dummy output (module-loopback again)
    - Make ffmpeg record from the monitor of the dummy output.
    You can also juste encode 2 audio streams using ffmpeg (-f alsa -i pulse twice, or -f pulse -i "your pulseaudio input") and edit it after.
    I think jack would use less CPU to do the same thing (audio streams are piped and mixed directly in the right place instead of using loopbacks and dummy outputs)
    SuperV1234 wrote: > Could the script be improved somehow for better quality/performance?
    - Unless you really want 60 FPS output, I'd suggest reducing the FPS to 30. Keep the 60 FPS input, but output into 30 FPS. It will use half the processing power and there will be almost no noticable difference.
    - If you really want 60 FPS output and know how it will be displayed, you can actually encode in interlaced video (60i), which looks like 60 FPS but weights about the same as 30 FPS.
    - You can increase the quality, using something like -preset fast or even -preset medium given you have enough spare processing. Remember, encoding speed should be constant. If you record 30 FPS, you have to output 30 FPS all the time!
    - Like said by skottish, try not using CFR. It will cause the encoder to have to spend more time one some frames and this extra processing might be enough to cause FPS drop.
    - Tune your x264 options (-x264args). Options reference
    - Try reducing the number of threads: make room for your game and give a ffmpeg as few cores as possible. using 8 cores will make it have full processing power, but there are some cases where your game will have CPU spikes and ffmpeg will wait for a single thread to finish a frame and get out of sync. They will be rescheduled to another core, but this has some overhead, and x264 encoding uses the CPU cache a lot with inline assembler code. Having as few context switch as possible for ffmpeg is preferable over having two ffmpeg threads encoding on the same CPU.
    I hope this helps you a bit. Unfortunately, ffmpeg is still pretty bad at recording because of audio/video sync issues In the end, there will always be sync issues after a while, so I suggest you restart ffmpeg once in a while. I opened a bug on their tracker a while ago about similar issues. Never got any attention, no comment, not even moved from new to open. They need to fix the input buffer size in a way they always grab exactly N frames of video and audio. They seem to use some timecodes but it looks like the muxer often fails to resync them back. I'd fix it myself, but ffmpeg is way too big for me to find what I need, especially for a bug that seem to have existed forever and still not being fixed or even addressed.
    Last edited by Max-P (2013-07-22 19:16:12)

Maybe you are looking for

  • Counting rows in JDBC

    I've recently come across the problem of needing to count the number of rows in a potentially large resultset. I did quite a bit of digging and found that the only suggested answers appear to be: 1. Do a SELECT COUNT(*) before doing the query. 2. Mak

  • Credit report

    I am not very well versed on the credit management side of the system.  I want a report that lists open sales order and deliveries that can be run on a weekly basis that gives similar output to VKM4 but has more fields to select from for variant set-

  • Need help finding intro

    I've been trying to find this intro for a while.I've been told its in imovie but i cant find it.Here's the link www.youtube.com/watch?v=dznIgkR50Os,It goes from 0:01 - 0:08.If its not in imovie anyone know where i can find the image??

  • I'm getting a fatal error message when I'm trying to uninstall apple mobile device support?

    I tried to run an upgrade for iTunes and had problems so I've uninstalled iTunes and all other components without a hitch but I keep getting a Fatal Error message telling me it's druing installation. Please help! HMBS

  • Helppp!!! my phone won't go past the driod screen!!

    my phone turned off and then when i tried to turn it back on it wont go past the driod screen in the beginning.. i tried taking the battery out n leaving it out and it does nothing.. i was on hold with verizon forever with no help.. someone please he