Re: A tool to extract part of a video



David Bolt wrote:

On Sat, 18 Aug 2007, David Bolt wrote:-

On Fri, 17 Aug 2007, Hatto von Aquitanien wrote:-

<Snip>

Any ideas?

Well, you could try:

ffmpeg -ss 00:28:30.000 -t 00:06:45.000 -vcodec mpeg4 -vtag xvid -i
V08546-22.flv V08546-22.avi

which should do the job.

Should, but doesn't. The video stream is correctly cropped out, but the
audio stream isn't. However, using these commands will work:

ffmpeg -i V08546-22.flv -vn -f s16le -acodec pcm_s16le -ac 2 -ar 22050 -ss
00:28:30.000 -t 00:06:45.000 - >audio ffmpeg -i V08546-22.flv -an -f
yuv4mpegpipe -ss 00:28:30.000 -t 00:06:45.000 - >video ffmpeg -f s16le
-acodec libmp3lame -ac 2 -ar 22050 -i audio -f yuv4mpegpipe -vcodec mpeg4
-vtag xvid -sameq -y V08546-22.avi rm audio video

You will need a large space for the video file as it's the raw video
and, in my tests, ended up close to 1.4GB.

Alternatively, you can use a couple of named pipes and three consoles to
do the job[0] and not need a large amount of free drive space. To do
this, these steps should do nicely:

1, open up three separate consoles and change directory to that
containing V08546-22.flv ;

2, in one of the console windows type the commands "mkfifo audio" and
"mkfifo video" ;

3, using the first console, enter the following command:

ffmpeg -i V08546-22.flv -vn -f s16le -acodec pcm_s16le -ac 2 -ar 22050 -ss
00:28:30.000 -t 00:06:45.000 - >audio

4, using the second console, enter the following command:

ffmpeg -i V08546-22.flv -an -f yuv4mpegpipe -ss 00:28:30.000 -t
00:06:45.000 - >video

5, using the third console, enter the following command:

ffmpeg -f s16le -acodec libmp3lame -ac 2 -ar 22050 -i audio -f
yuv4mpegpipe -vcodec mpeg4 -vtag xvid -sameq -y V08546-22.avi

6, once the AVI is built, delete the pipes "audio" and "video", unless
you're going to use them for other transcoding.


[0] According to an example given in the ffmpeg FAQ, it's possible to do
this with only one console, however all that happened when I tried is
the two jobs sent into the background stopped and waited for me to bring
them into the foreground.

Regards,
David Bolt
I used:

$ mencoder -ovc lavc -oac copy V08546-22.flv -o nbc-09-11-01-11-59.avi
$ avisplit -i nbc-09-11-01-11-59.avi -t 00:28:38.00-00:35:10.00 -obremer

Here's the result:

http://vehme.blogspot.com/2007/08/lewis-paul-bremer-iii-on-washington-dc.html

--
http://www.dailymotion.com/video/x1ek5w_wtc7-the-smoking-gun-of-911-updated
http://911research.wtc7.net
http://vehme.blogspot.com
Virtus Tutissima Cassis
.



Relevant Pages

  • RE: DLL error prevents me from using Windows...please help...
    ... I tried to open Rcovery Console through SAFE MODE W/ COMMAND ... I'm attempting the Recovery Console EXPAND feature, ... >> I don't have video on my motherboard. ...
    (microsoft.public.windowsxp.general)
  • Re: A tool to extract part of a video
    ... The video stream is correctly cropped out, ... 3, using the first console, enter the following command: ... 4, using the second console, enter the following command: ...
    (alt.os.linux.suse)
  • Re: finding a fax in the fax console?
    ... The command line is for the Open command for TIF files. ... > I am still unable to view any faxes from the console. ... >>>>Inbox to the Outlook Inbox. ...
    (microsoft.public.outlook.fax)
  • Re: how to use mencoder to record TV program
    ... The command you give does not work. ... Selected device: BT848A video (Prolink Pixelview ... v4l2: current audio mode is: MONO ... with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Which distro for a server?
    ... > everything that I need with only a text console. ... > that doesn't exactly help me in learning linux on my own. ... command line commands or names of configuration files - field-based editing ... me a virtually seamless full screen linux GUI. ...
    (comp.os.linux)