Question / Help Constant audio track troubles :( Please Help

Hi everyone, I'm hoping someone can help me because I'm having infuriating trouble with audio tracks. I recorded a Let's Play video inn OBS Studio, now I have an mp4 file with two audio tracks, the game sound and my voice track.

I use Sony Movie Studio (SMS) 12 to edit the videos. Thee first problem I have is that SMS wont open any audio tracks in the video making it utterly useless. So I tried to extract the audio tracks with vlc but it doesn't give you the option of what track to extract so it will only extract one of them. I now have my voice track extracted as a WAV file but that still leave thee other one.

I need to somehow extract the other audio track so I can import them both + the video into SMS or I need to get SMS to open the audio tracks in the video.

Isn't there a way for OBS Studio to record the audio tracks into there own separate files?

This is completely aggravating it has completely stopped me in my tracks, I can no longer proceed with these issues.

Any help will be greatly appreciated.
Thanks
 

Simes

Member
I do the same thing, record multiple tracks in OBS and work with them in my video software. I use ffe to split the audio out into a multitrack WAV file which I then import into the video editor along with the footage.

ffe is a frontend to ffmpeg and so there's some dark voodoo involved in getting just the right thing for your needs, but you *will* be able to get just the right thing for your needs.

http://corz.org/windows/software/ffe/

I can help you with getting the export going if you need it.
 

Simes

Member
It would indeed be the same thing every time. Once you've worked out what you need, it's easy, it's working out what you need that can be tricky. But I suspect you need basically the same command that I use.
 
Well, after recording I end up with an mp4 video file with two audio tracks.The same every time. I only ever need the first track extracting but I have no problem extracting them both if that's what your command does.
 

Simes

Member
If you only need to extract a single audio track that's even simpler:

ffmpeg -i source.mov -acodec copy -map 0:1 output.aac

This tells ffmpeg to copy, rather than transcode, stream 1 (the second stream) from input 0 (the first input file) and output the results to output.aac.

The reason it's the second stream is that the first stream (stream 0) will be the one containing the video information. So this command should get you your first audio track. If you want the second audio track instead, use "-map 0:2" instead of "-map 0:1".

If Movie Studio needs audio to be in WAV format, ffmpeg will happily transcode it for you, and the command gets even shorter:

ffmpeg -i source.mov -map 0:1 output.wav

ffmpeg works out what sort of transcoding you want from the output file extension.

If you're using ffe, the second one is basically a matter of putting in the source and destination files and hitting "do it!"
 
Thanks for the help Simes, however I have run into a problem. Thee FFE site says to run FFE.exe but I don't have that file, it wasn't in the download. I got ffmpeg-20160610-git-0a9e781-win64-static. Is that thee right one?

Edit: Never mind I figured it out, it's two separate programs :) I'll get to testing it, again thanks for the help :)
 
OK, I actually can't figure thhis out :/

In the input field I have the video file and its location. In output, it automatically put in the path to the output location and file (an .mkv video file).

I theen copied the command you gavee into 'output parameter override' and changed source.mov to the actual name of my video file.

Herre is a screenshot:



And here's the log.

Code:
starting ffe job on 2016-06-11 @ 15:45:33.676
command-line: E:\My Docs\Downloads\Programs\ffmpeg-20160610-git-0a9e781-win64-static\bin\ffmpeg.exe ffmpeg -i "F:\Video\Recorded\OBS\Talos Principal 01.mp4" -acodec copy -map 0:1 output.aac -i "F:\Video\Recorded\OBS\Talos Principal 01.mp4"   "E:\My Docs\Talos Principal 01.mkv"

ffmpeg version N-80256-g0a9e781 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 45.100 / 57. 45.100
  libavformat    57. 37.101 / 57. 37.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 46.101 /  6. 46.101
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'F:\Video\Recorded\OBS\Talos Principal 01.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.36.100
  Duration: 00:25:58.65, start: 0.000000, bitrate: 50339 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt470bg/unknown/unknown), 2560x1440 [SAR 1:1 DAR 16:9], 50003 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 153 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 164 kb/s
    Metadata:
      handler_name    : SoundHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'F:\Video\Recorded\OBS\Talos Principal 01.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.36.100
  Duration: 00:25:58.65, start: 0.000000, bitrate: 50339 kb/s
    Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt470bg/unknown/unknown), 2560x1440 [SAR 1:1 DAR 16:9], 50003 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 153 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #1:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 164 kb/s
    Metadata:
      handler_name    : SoundHandler
[NULL @ 00000000026e0ea0] Unable to find a suitable output format for 'ffmpeg'
ffmpeg: Invalid argument

Completed in 0.161405888354101 seconds    (0.16 seconds)
--------------------------------------------------------------------------------

I think the main error there was "Unable to find a suitable output format for 'ffmpeg'". I could have simply typed something wrong or in the wrong place.
 

Simes

Member
Ah, yeah, I can see how that would have been confusing. What you basically need to do is to have ffe's "command-line input" display look like the command line you want to run. For this you'd want to put your input file into "input", change "output" to be the name of your output file (ffe always assumes .mkv but it's fine to change it), choose "copy" from the audio codec dropdown menu, and put "-map 0:1" into the extra parameters box. Leave the input parameter override box blank. Like this:

tHMOhPb.jpg
 
Thanks that worked perfectly except it turns out I do actually need a WAV file, I can't import AAC files. Do I just change the audio codec to wavpack?
 

Simes

Member
Change the file extension of the output file to .wav, and leave the audio codec box blank. ffmpeg will figure it out.
 
Top