USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Convert flash to mpeg
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Audio and Video Applications
View previous topic :: View next topic  
Author Message
richard
Ultimate Member


Joined: 13 Apr 2024
Posts: 2730
Location: Kent, United Kingdom

PostPosted: Mon Feb 11, 2024 8:30 am    Post subject: Convert flash to mpeg Reply with quote

I've got some flash files that have been pulled for YouTube which I need to convert to mpeg for people who don't have access to the internet. I'm wondering if there is a way to do this with out me having to fire up a virtual copy of windows?



_________________
Windows Vista / Ubuntu 8.10
Back to top
View user's profile Send private message
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Mon Feb 11, 2024 9:28 am    Post subject: Reply with quote

you may want to see what Crouse has been up to away from here Wink



_________________
Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
inactive
Sr. Member


Joined: 29 Aug 2024
Posts: 1207

PostPosted: Mon Feb 11, 2024 9:36 am    Post subject: Reply with quote

It's not working for me on sound. I'm wondering if there's a way to convert to using tovid rather than ffmpeg for the encoding?



_________________
Mandriva 2024.1 PWP
Mandriva Cooker
ArtistX live
Back to top
View user's profile Send private message
inactive
Sr. Member


Joined: 29 Aug 2024
Posts: 1207

PostPosted: Mon Feb 11, 2024 10:05 am    Post subject: Reply with quote

Trying this now, and will post back results when done:
Code:
#!/bin/bash
# by Crouse
# Program name ytr = YouTube.com Ripper
baseurl="http://youtube.com/get_video.html?"
mkdir -p ~/YouTube ;
mkdir -p ~/YouTube/tmp ;
cd ~/YouTube/tmp ;
read -p "What is the youtube.com url you want to rip ? " urltorip ;
read -p "What would you like to name the video (no spaces in the name) ? " nameofvideo ;
wget ${urltorip} -O urlsource.txt ;
grep "watch_fullscreen" urlsource.txt > url.info;
videourl=`sed "s;.*\(video_id.\+\)&title.*;\1;" url.info`;
fullurl=${baseurl}${videourl};
echo ${fullurl};
rm *;
wget ${fullurl};
mv * *.flv;
echo "Now converting the file to mpeg ... this can take awhile, please be patient" ;
tovid *.flv ${nameofvideo}_encoded -dvd -ntsc -aspect 320x240 -keepfiles;
mv *.mpg ../;
exit

It's my guess that it will fail on encoding. The mv command. Also not sure if tovid can convert .flv.

Edit: tovid will convert. I had forgotten a couple basic commands for it. I've edited to:
Code:
#!/bin/bash
# by Crouse
# Program name ytr = YouTube.com Ripper
baseurl="http://youtube.com/get_video.html?"
mkdir -p ~/YouTube ;
mkdir -p ~/YouTube/tmp ;
cd ~/YouTube/tmp ;
read -p "What is the youtube.com url you want to rip ? " urltorip ;
read -p "What would you like to name the video (no spaces in the name) ? " nameofvideo ;
wget ${urltorip} -O urlsource.txt ;
grep "watch_fullscreen" urlsource.txt > url.info;
videourl=`sed "s;.*\(video_id.\+\)&title.*;\1;" url.info`;
fullurl=${baseurl}${videourl};
echo ${fullurl};
rm *;
wget ${fullurl};
mv * *.flv;
echo "Now converting the file to mpeg ... this can take awhile, please be patient" ;
tovid -in *.flv -out ${nameofvideo} -half-dvd -ntsc;
mv *.mpg ../;
rm -Rf ~/YouTube/tmp;
exit

It works. Very Happy Takes forever to encode, but oh well I guess.



_________________
Mandriva 2024.1 PWP
Mandriva Cooker
ArtistX live
Back to top
View user's profile Send private message
richard
Ultimate Member


Joined: 13 Apr 2024
Posts: 2730
Location: Kent, United Kingdom

PostPosted: Mon Feb 11, 2024 4:01 pm    Post subject: Reply with quote

I just tried your modified script DedannaRocks and it worked like a charm. I did have to install a couple dependencies but it was easy enough to do.



_________________
Windows Vista / Ubuntu 8.10
Back to top
View user's profile Send private message
inactive
Sr. Member


Joined: 29 Aug 2024
Posts: 1207

PostPosted: Mon Feb 11, 2024 10:13 pm    Post subject: Reply with quote

I'm getting the vids a bit out of syc - video delay, so next one I'm going to try a more modified one. Added an option to tovid. I think the length of the vids is giving tovid a chance to start lagging. We'll see how it goes:
Code:
#!/bin/bash
# by Crouse
# Program name ytr = YouTube.com Ripper
baseurl="http://youtube.com/get_video.html?"
mkdir -p ~/YouTube ;
mkdir -p ~/YouTube/tmp ;
cd ~/YouTube/tmp ;
read -p "What is the youtube.com url you want to rip ? " urltorip ;
read -p "What would you like to name the video (no spaces in the name) ? " nameofvideo ;
wget ${urltorip} -O urlsource.txt ;
grep "watch_fullscreen" urlsource.txt > url.info;
videourl=`sed "s;.*\(video_id.\+\)&title.*;\1;" url.info`;
fullurl=${baseurl}${videourl};
echo ${fullurl};
rm *;
wget ${fullurl};
mv * *.flv;
echo "Now converting the file to mpeg ... this can take awhile, please be patient" ;
tovid -in *.flv -out ${nameofvideo} -ffmpeg -half-dvd -ntsc;
mv *.mpg ../;
rm -Rf ~/YouTube/tmp;
exit



_________________
Mandriva 2024.1 PWP
Mandriva Cooker
ArtistX live
Back to top
View user's profile Send private message
DocZayus
Ultimate Member


Joined: 15 Feb 2024
Posts: 2199
Location: Fredericton, New Brunswick

PostPosted: Tue Feb 12, 2024 12:12 am    Post subject: Reply with quote

media-convert.com

convert anything to anything, without any 3rd party app.
OS independent.

try it. Nothing to install.



_________________
Sabayon
Vista
Back to top
View user's profile Send private message Visit poster's website
tlmiller
Ultimate Member


Joined: 01 May 2024
Posts: 2434
Location: MD, USA

PostPosted: Tue Feb 12, 2024 12:57 am    Post subject: Reply with quote

DocZayus wrote:
media-convert.com

convert anything to anything, without any 3rd party app.
OS independent.

try it. Nothing to install.


Wow, awesome!! Bookmarked.



_________________
Debian Squeeze, Arch, Kubuntu mostly. Some Mandriva. Some Windows.
Desktops: shadowdragon, medusa
Laptops: bluedrake, banelord, sandwyrm, aardvark.
Back to top
View user's profile Send private message AIM Address MSN Messenger
richard
Ultimate Member


Joined: 13 Apr 2024
Posts: 2730
Location: Kent, United Kingdom

PostPosted: Tue Feb 12, 2024 7:57 am    Post subject: Reply with quote

DocZayus wrote:
media-convert.com

convert anything to anything, without any 3rd party app.
OS independent.

try it. Nothing to install.


Thanks Doc, it looks like it will be a very useful site. Smile



_________________
Windows Vista / Ubuntu 8.10
Back to top
View user's profile Send private message
inactive
Sr. Member


Joined: 29 Aug 2024
Posts: 1207

PostPosted: Tue Feb 12, 2024 11:06 am    Post subject: Reply with quote

Definitely a bookmarker. Smile

Well, I thought.
Code:
File transfer error

YouTube direct download service is no more available. Sorry for this inconvenience !


Thanks though. Smile



_________________
Mandriva 2024.1 PWP
Mandriva Cooker
ArtistX live
Back to top
View user's profile Send private message
DocZayus
Ultimate Member


Joined: 15 Feb 2024
Posts: 2199
Location: Fredericton, New Brunswick

PostPosted: Wed Feb 13, 2024 2:01 am    Post subject: Reply with quote

You can still get a Firefox plugin that wil save you the /flv file that can then be uploaded/converted.



_________________
Sabayon
Vista
Back to top
View user's profile Send private message Visit poster's website
inactive
Sr. Member


Joined: 29 Aug 2024
Posts: 1207

PostPosted: Wed Feb 13, 2024 4:40 pm    Post subject: Reply with quote

Don't use FF, sorry. lol.

It's ok, I gotta method now. Very Happy



_________________
Mandriva 2024.1 PWP
Mandriva Cooker
ArtistX live
Back to top
View user's profile Send private message
mmmna
. . . .


Joined: 21 Apr 2024
Posts: 7224

PostPosted: Wed Feb 13, 2024 5:28 pm    Post subject: Reply with quote

DocZayus wrote:
You can still get a Firefox plugin that wil save you the /flv file that can then be uploaded/converted.
Plugin name, please? Thx!


Back to top
View user's profile Send private message
DocZayus
Ultimate Member


Joined: 15 Feb 2024
Posts: 2199
Location: Fredericton, New Brunswick

PostPosted: Thu Feb 14, 2024 3:50 am    Post subject: Reply with quote

videodownloader

......



_________________
Sabayon
Vista
Back to top
View user's profile Send private message Visit poster's website
mmmna
. . . .


Joined: 21 Apr 2024
Posts: 7224

PostPosted: Thu Feb 14, 2024 1:03 pm    Post subject: Reply with quote

Oh.



_________________
-Kubuntu 10.04 LTS Beta2 on Celeron D desktop
-PCLinuxOS 2024 LXDE on EeePC 900A with Atom n270 (modded with 32G SATA drive and 2G ram).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Audio and Video Applications All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse