---- Original Message ----- From: "Dave P" <[email protected]>
To: "FFmpeg user questions" <[email protected]>
Sent: Friday, April 10, 2015 10:45 PM
Subject: Re: [FFmpeg-user] one encode, two outputs with different duration


On Fri, Apr 10, 2015 at 9:45 AM, Bouke (VideoToolShed) <
[email protected]> wrote:

Trying to do one encode to two outputs, where one is significantly shorter
than the other.
(I want to give end users a sneak preview before the whole shebang is
done.)

I got it working using the command line below, but the trouble is, the
shorter file is still in use by FFmpeg untill the entire encode is done,
that kinda defeats the whole dance.

So i think i must split the output of the encode and feed it to another
instance, but have no idea how.
I've also tried this with -tee "output1.mov| [t=120]output2.mov" , but the
[t=120]  failed...

Any ideas / insights?
(Oh, this is supposed to run on OSX as well as Windows)

thx,

Bouke

ffmpeg.exe -threads 0 -i M:\Honig\02-02c.mxf -filter_complex
"scale=480x360"
-vcodec mjpeg -qscale 4  -map_channel 0.1.0 -map_channel 0.2.0 -acodec
pcm_s16le -aspect 16:9
-timecode 01:00:00:00  -f avi - |  ffmpeg.exe -i - -c copy -t 20
M:\Honig\02-02c_short.mov
-c copy  M:\Honig\02-02c_long.mov


Maybe something like this?

ffmpeg.exe -threads 0 \
-i M:\Honig\02-02c.mxf \
-vf scale=480x360 \
-vcodec mjpeg \
-qscale 4 \
-map_channel 0.1.0 \
-map_channel 0.2.0 \
-acodec pcm_s16le \
-aspect 16:9 \
-timecode 01:00:00:00 \
-t 20 \
M:\Honig\02-02c_short.mov \
-vf scale=480x360 \
-vcodec mjpeg \
-qscale 4 \
-map_channel 0.1.0 \
-map_channel 0.2.0 \
-acodec pcm_s16le \
-aspect 16:9 \
-timecode 01:00:00:00 \
M:\Honig\02-02c_long.mov

Nope, sorry, bu that encodes twice, and has the same problem that the first file is still in use. Even funnier, according to the speed the first (short) file still eats resources, while the output isn't going anywhere.
So i still think i need to pipe the output to multiple instances of FFmpeg.

Bouke

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to