You are not logged in.
Pages: 1
Topic closed
Hi,
Been messing around pulling youtube videos down but would like to convert them to play on my media player
ffmpeg -i 'video.flv' the_avi_file.avi
this kinda works but you get mp2 ...
ffmpeg -i 'video.flv' -acodec mp3 -ab 128 the_avi_file.avi
not quite there yet
tried using vlc but would rather use cli so I can bung it in a script
unless there is a tool to do this sort of thing?
TIA
Mr Green
Offline
Try mencoder, it's part of the mplayer package.
hightower
Offline
thanks ;-)
Mr Green
Offline
First of all you need to decide what codec you want to use for video and audio - avi is just a container format.
Something like the following mencoder line should do the trick for mpeg4 video with mp3 audio. Note that it is very basic and you probably want to do some more tweaking like specifying audio/video -bitrate, video resolution, etc. But luckily the mencoder manpage has all this stuff documented pretty well
mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4 -o output.avi input.flv
Offline
oh thanks man was just looking at Acidrip ... but tweaking I can handle ;-)
Wow that works great ... video quality will suffer thats normal awesome Bolt Thrower YAY!
Last edited by Mr Green (2007-02-08 18:55:25)
Mr Green
Offline
If I understand correctly, FLV files should be h263 for video and mp3 for audio. MPlayer and VLC should be able to handle it.
ffmpeg -i 'video.flv' -acodec copy -vcodec copy the_avi_file.avi
Last edited by skottish (2007-02-09 00:56:35)
Offline
interesting .... yes playing them is no problem mplayer or vlc but I have a portable media player and its Windows play 4 sure [yuk!] avi works
Last edited by Mr Green (2007-02-09 07:26:38)
Mr Green
Offline
Do you know if the media player plays MSMPEG4v2? If so, you can try something like:
ffmpeg -i in_file.flv -acodec copy -vcodec msmpegv2 -b 3000k out_file.avi
You may have to tinker with the bitrate settings to get a good video. This will preserve the audio, but unfortunately any time you remux a file, you'll loose qualtity.
Offline
yeah I have noticed that but that goes without saying ... would rather have in sync high quality sound to be honest ....
ffmeg has a large range of options ... will check out MSMPEG4v2 as its a play for sure then maybe it will
thanks for your help
Mr Green
Offline
I found a flv2avi script on the gentoo forums that is useful. The syntax is fl2avi -xvid file.flv file.avi
#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: $0 {-divx|-xvid} list_of_flv_files"
exit 1
fi
# video encoding bit rate
V_BITRATE=1000
while [ "$1" ]; do
case "$1" in
-divx)
MENC_OPTS="-ovc lavc -lavcopts \
vcodec=mpeg4:vbitrate=$V_BITRATE:mbd=2:v4mv:autoaspect"
;;
-xvid)
MENC_OPTS="-ovc xvid -xvidencopts bitrate=$V_BITRATE:autoaspect"
;;
*)
if file "$1" | grep -q "Macromedia Flash Video"; then
mencoder "$1" $MENC_OPTS -vf pp=lb -oac mp3lame \
-lameopts fast:preset=standard -o \
"`basename $1 .flv`.avi"
else
echo "$1 is not Flash Video. Skipping"
fi
;;
esac
shift
done
We do not want a world in which the guarantee that we will not die of starvation is bought by accepting the risk of dying of boredom. -Raoul Vaneigem / Students for a Human Society
Offline
This tool clive is nice too, while you download from e.g. youtube you can convert it automatically in Avi.
http://home.gna.org/clive/ so far I can see, it's not in aur.
Use UNIX or die.
Offline
since your are so interessd BUIKD A PKFGBUILD IF YOU PLEASE!!!!!!!!!!!!!!!!!!!
Its a sick world we live in....
Offline
>since your are so interessd
Where can you read this? It's just a hint for the initial poster. I have clive in FreeBSD ports, Arch is my 2nd operating system
Use UNIX or die.
Offline
Offline
Found mp4ize but... after conversion sound is mono....clive is a video downloader... it will convert but only by using ffmpeg
If anyone converts flv to mp4 let us know .. read you can use vlc to convert but never tried it
tia
MrG
Mr Green
Offline
If anyone converts flv to mp4 let us know ..
I do it every time I accidentally download a video from youtube. I only use FFmpeg with x264 and FAAC if I want mpeg4 audio output. As always I using subversion builds of FFmpeg and x264. My command line would simply be (without going for good video quality) and keeping the mp3 audio:
ffmpeg -i <input>.flv -vcodec libx264 -acodec copy <output>.mp4
Again without going for quality, but with mpeg4 audio:
ffmpeg -i <input>.flv -vcodec libx264 -acodec mpeg4aac <output>.mp4
You'd probably have to change the codec names if your using FFmpeg from extra. The one in testing will use this naming convention.
Offline
FLV is a popular format which is widely used for sharing videos online. However, it is not compatible with Windows Media Player, Windows Movie Maker, PS3, Xbox 360, BlackBerry, Adobe Premier, etc. If you intent to enjoy the downloaded FLV video and movie on the above mentioned players or devices, you'd better to convert them to AVI and other popular formats.
Here is a step by step guide to help you easily convert FLV to AVI at: -- url redacted - Trilby --
Hope it is what you are looking for.
Last edited by Trilby (2014-11-20 19:25:06)
Hope it is what you are looking for.
Unlikely: the thread is seven years old... Please don't necrobump: https://wiki.archlinux.org/index.php/Fo … Bumping.27
Closing
Offline
What is worse, it is known spam source. https://trac.ffmpeg.org/ticket/3988
It is also a first, and last post.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1
Topic closed