Are you using the ffmpeg.exe file that I provided? Are you using a Windows OS? XAMPP?
Can you post the URLs of any videos that are not converting for you?
Are you able to play the video at "videos/1342856867_500a5ea3425531.60843462.flv"? If you can't play the video, then either the file is corrupt or cURL is not downloading the video correctly.
Yes, Windows 7, WAMP,
None of them are, and but some will download.
I know the files are corrupt, because they are 0Kbs.
When I plug that into Firefox, I eventually get an error message:
Quote:
Video can't be played because the file is corrupt.
That would seem to confirm that the video on YouTube's cache server is corrupt. (From the URL, you can see that the video is being downloaded from YouTube's cache server.) The video actually playing at http://www.youtube.com/watch?v=TFGtiWKy1Tk is probably coming from another source.
I very rarely come across videos that can't be converted. If this is happening for more than one video, then I will explore this further. Otherwise, I'll chalk it up to some kind of internal YouTube error.
I very rarely come across videos that can't be converted. If this is happening for more than one video, then I will explore this further. Otherwise, I'll chalk it up to some kind of internal YouTube error.
Is there anyway to download it still? Or is it a no go?
Is there anyway to download it still? Or is it a no go?
For that video, you might be out of luck unless you can find an alternate video file URL in the browser source code.
If you absolutely needed that particular video, and all else fails, you could try using a screen recorder (i.e., VLC) to record the YouTube video while its playing inside your browser. Then you could use FFmpeg to strip the audio track from the screen recording, using code like the following:
Looks like I may have to modify my scripts to look for a fallback video source -- if it exists -- when the initial video file source is corrupt or unavailable. I'll keep you guys posted, and issue a fix here when it becomes available.
DO NOT USE THE ZIP DISTRIBUTION LOCATED AT THE ABOVE LINKED PAGE. USE ONLY THE ZIP FILE ATTACHED TO THE BOTTOM OF THIS POST.
New in this release:
1) Fixed bug that causes the script to crap out when the downloaded YouTube video is corrupt and/or less than 10kb. The script now detects this issue and tries a series of alternate video URLs until one is found that does work.
2) Some minor updates & refactoring of code
3) Minor bug fixes
I will soon be updating the paid-for version of the app as well, and I will send an updated (free) copy to all those who have already purchased the script. I haven't decided yet how exactly to distribute the new release to past customers. Probably via the email addresses that you guys provided at Tradebit when you purchased the script. I will keep you posted.
As always, please let me know if you have any questions/concerns regarding the above and/or the code.
1) Fixed bug that causes the script to crap out when the downloaded YouTube/Dailymotion video is corrupt and/or less than 10kb. The script now detects this issue and tries a series of alternate video URLs until one is found that does work.
2) Improved speed for YouTube video conversions to mp4 and flv
3) Better quality video-to-video conversions
4) Improved handling and speed of all video conversions to 3gp
5) Better error handling
6) Some minor updates & refactoring of code
7) Minor bug fixes
All previous customers who have purchased the paid-for version of my app will be receiving this new, updated version via the e-mail addresses that you provided at Tradebit.com.
Please report any issues with either the paid-for version or the free version in this forum thread.
Hi, just wondering when i right click and view property of the mp3 under bitrate it says 0kbps.
How can this be fixed?
Do let me know.
Thanks!
I'm not having that problem here.
By default, FFmpeg sets the audio bitrate to 64k if it isn't set otherwise, I believe...But my script sets the bitrate directly within the FFmpeg command, to varying bitrates...
So, as far as I know, in no circumstance, if the FFmpeg command was executed successfully, should the audio bitrate ever be 0k...
Are you able to play the mp3 file? Is any other "weirdness" occurring? Have you modified the FFmpeg command in some way? Have you modified my code in some way?
Hi, no have no modified anything. I followed your steps to install ffmpeg, ffmpeg with php, and the extra codecs.
The mp3 plays just fine but in iphone you cant seek to a specific place. The bitrate appears in players such as realplayer but when you right click to view the mp3 in windows it says 0kbps.
Hi, no have no modified anything. I followed your steps to install ffmpeg, ffmpeg with php, and the extra codecs.
The mp3 plays just fine but in iphone you cant seek to a specific place. The bitrate appears in players such as realplayer but when you right click to view the mp3 in windows it says 0kbps.
Are all of your converted mp3's showing up as 0k bitrate?
What version of windows did you use to check the mp3 properties?
Does the bitrate show up in Linux when you check mp3 properties?
Can you email me a converted mp3 that has 0k bitrate?