Closed (fixed)
Project:
Video
Version:
6.x-4.9
Component:
Video Field
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2012 at 13:06 UTC
Updated:
3 Aug 2015 at 06:42 UTC
Jump to comment: Most recent
Hello,
First of all, great module! I have over 500 flash videos with the .flv extension on my live website. I've converted all of those videos on my workstation to .mp4 . I'd like to upload the .mp4 videos and use them instead of the current .flv because HTML 5 is becoming the standard.
The fastest way I could think of doing this is to FTP in and delete all the .flv files and FTP all the .mp4 files into the videos directory. Then change the file extension from .flv to .mp4 in the database.
What MYSQL command do I use to change all video extension from .flv to .mp4 ? Is there a better way of doing it?
Comments
Comment #1
Jorrit commentedDo you use transcoding or do you display the file exactly like it is uploaded? If transcoding, what transcoder do you use?
Comment #2
prokopton commentedI uploaded the files exactly as they were. No transcoding.
Would you know the MySQL command to change all .flv file extensions to .mp4 in the videos module?
Thanks.
Comment #3
michael.k commentedYou could run SQL queries in phpMyAdmin (don't forget to back up first!):
UPDATE tablename SET tablefield = replace(tablefield,"findstring","replacestring");For changing the path for files:
UPDATE drup_files SET filepath = replace(filepath,"sites/default/files/images/example.png","sites/default/files/images/test/example.png");For changing multisite paths to default site paths:
UPDATE drup_files SET filepath = replace(filepath,"sites/example.org/files/","sites/default/files/");Comment #4
prokopton commentedThank-you Michael and Jorrit! I'll give that a try. I hope HTML 5 is the next and last web standard. So much time is consumed with compatibility issues rather than creating content and building apps.
Comment #5
bkat commentedAre you providing flash fallback? there is no single codec that works across all browsers. At a minimum, you need to provide an mp4/h264 and a webm/vp8 version.
http://en.wikipedia.org/wiki/HTML5_video
Comment #6
prokopton commentedBy the looks of it, all the major players have settled on H.264.
http://news.cnet.com/8301-30685_3-57397031-264/mozilla-execs-capitulate-...
Comment #7
Jorrit commentedI think this issue can be closed as the question has been answered.
Comment #8
nicberweky commentedChange file extension will not always work.
Why dont you simply download some Video converter to convert FLV to MP4 from web. Few i can suggest you if Faasoft FLV to MP4 Converter.
Here is a quick guide on how to convert FLV to MP4 with it on Mac and Windows.
Hope it is what you are looking for.
Comment #9
aimkeepachieve commentedAfter long google search and comparison, I find an simply way to batch convert FLV to MP4 with high quality on Mac or Windows
After had a try, i find it really works great in converting FLV to MP4,
It also can convert FLV to MOV, AVI, WMV, MKV, WebM, OGV etc.
More exciting, it even helps to directly download YouTube FLV video to MP4.
Hope it is what you are looking for.
Comment #10
daphnerombach commentedIf you want to batch convert FLV to MP4, you can turn to Video Converter program. It's quite easy to use which enables you to convert videos in just three simple steps. Here is a guide you can refer to: How to Convert FLV to MP4.