converting dv5p with multiple audio tracks

Issues involving a Windows version of FFmpeg. Do not post general usage questions here.

converting dv5p with multiple audio tracks

Postby stojo01 » Sat Jun 11, 2011 11:30 pm

Hi
I am new to this forum so excuse me if i have posted in the wrong area or the question is too basic.
I have a file that has come from a dvcpro 50 tape and comes out of a Quantel video editing system as dv5p video codec with multiple lpcm audio tracks all wrapped up as a .mov
From time to tiime I sell 15min news stories to Asia and it is a problem sending those files to them as they are 6-8gb. I can post a media info dump if interested.
One of the isssues I have is converting these files to h264 while also preserving the 3 or 4 audio tracks. I don't seem to get how to stop ffmpeg merging the 3-4 audio into one output audio track.
These commands work from your static builds but they all merge it into one audio track

ffmpeg -i file:input.mov -vcodec libx264 -an output.mov (no audio)
ffmpeg -i file:input.mov -vcodec libx264 -acodec copy -ac 4 output.mov (keeps pcm)
or
ffmpeg -i file:input.mov -vcodec libx264 -ac 6 -acodec aac -strict experimental output2.mov (to put out as aac)

Again sorry if this is too basic
stojo01
 
Posts: 9
Joined: Sat Jun 11, 2011 6:36 pm

Re: converting dv5p with multiple audio tracks

Postby Zeranoe » Sun Jun 12, 2011 3:38 am

Check out the -map option, http://www.ffmpeg.org/ffmpeg.html#SEC12

Edit: Moved to Usage Issues.
User avatar
Zeranoe
Site Admin
 
Posts: 401
Joined: Sat May 07, 2011 7:12 pm

Re: converting dv5p with multiple audio tracks

Postby stojo01 » Sun Jun 12, 2011 10:49 am

Thanks for that
this seems to work
P:\XXX\EP14>ffmpeg -i file:input.mov -vcodec libx264 -acodec copy output.mov
-acodec copy -newaudio -acodec copy -newaudio -acodec copy -newaudio -map 0.0 -map 0.1 -map 0.2 -map 0.3 -map 0.4

I need to check it out a bit more but it seems to write the file. I need to read it back in to FCP and Qantel to check it

Anyway thanks again let you know how it goes
stojo01
 
Posts: 9
Joined: Sat Jun 11, 2011 6:36 pm

Re: converting dv5p with multiple audio tracks

Postby stojo01 » Sun Jun 12, 2011 12:11 pm

Got another question

0.0 is video dv5p
0.1 is mixed audio lpcm
0.2 is audio grabs (people who talk) lpcm
0.3 is natural sound and effects lpcm
0.4 is music lpcm
0.5 ffmpeg picks up as tmcd so i assume that is timecode

Can i map that and put it out?
stojo01
 
Posts: 9
Joined: Sat Jun 11, 2011 6:36 pm

Re: converting dv5p with multiple audio tracks

Postby stojo01 » Sun Jun 12, 2011 9:11 pm

Sorry I'll ask that better
The fifth track seems to be recognized by ffmpeg as timecode

Metadata:
creation_time : 2011-06-06 05:41:03
Stream #0.5(eng): Data: tmcd / 0x64636D74


I'd like to be able to use that in the file I put out
Is it possible? there doesn't seem to be an equivalent -vcodec/-acodec option for copying that out to a new stream.

Also I'd like to explore some settings other than medium

[libx264 @ 01EF00A0] Default settings detected, using medium profile

I tried using some of the x264opts preset values by setting the environment variable

FFMPEG_DATADIR=C:\Program Files\ffmpeg\presets

But it didn't seem to like some of the values in those files.
I can post specific errors on that maybe in another post but in general should the presets in the 10 June static build be working for me?
stojo01
 
Posts: 9
Joined: Sat Jun 11, 2011 6:36 pm

Re: converting dv5p with multiple audio tracks

Postby myle00 » Tue Jun 14, 2011 8:48 pm

To change the profile from medium use the -profile switch, i.e. -profile high, main or baseline. I don't know if there are any more profiles but that works for me. Even though it says that's using medium, if you read a bit further you'll see that's actually using the profile you selected. For example, if I write
Code: Select all
-vcodec libx264 -y  -profile main
I get this:
Code: Select all
[libx264 @ 02DF85A0] Default settings detected, using medium profile
[libx264 @ 02DF85A0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 02DF85A0] profile Main, level 3.0


However, when combining presets with profiles it didn't work for me. Also, all the presets that I had, pretty much created a very low quality file so I'm not using them.
myle00
 
Posts: 14
Joined: Wed Jun 08, 2011 7:41 am

Re: converting dv5p with multiple audio tracks

Postby stojo01 » Sun Jun 19, 2011 2:57 am

Thanks for that I'll try that out
I found the baseline preset worked but none of the others did
Also I should add that the file with the 4 pcm audio tracks didn't come from Quantel.
It must have been FCP or something else
I found that the ones out of Quantel flatten it out so that it appears as two tracks, one video dv5p and one audio lpcm with 3 channels
FFMPEG doesn't seem to be able to extract those seperately

Anyway I'll have more of a fiddle
stojo01
 
Posts: 9
Joined: Sat Jun 11, 2011 6:36 pm


Return to Usage Issues

Who is online

Users browsing this forum: Google [Bot] and 0 guests