Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube to mp3 in 320k #3736
Youtube to mp3 in 320k #3736
Comments
|
What the heck are you doing here? |
|
I think you did no understand, [code] did i am doing something wrong? and please keep in mind video is downloading perfectly so there is no any code problem. Thanks, |
|
Ah, my mistake. I thought you were calling it in native bash, but you're using PHP. |
|
That's good, so dose any body have any solution to convert into 320k without calling ffmepg again? Thanks, |
|
just write the video into a temp file and do the post progressing by yourself using ffmpeg, mencoder or lame |
|
yep.. right know i am doing this.. Thanks, |
|
ive did an quick and ugly test, it is working: |
|
let me see your solution |
|
well i am doing little bit different, First i am download m4a and then run 2nd run ffmpeg to convert into mp3 Thanks, |
|
would be a good idea to safe trafic but it looks like youtube dosnt provide audio only:
so you have to take the hard way and download the video |
|
i have created a small script which log the error (for request format errors). only i can see is the restricted video log only. So far 2000+ videos is downloaded since last 7 day from my website. all m4a found. If you know any youtube id which did not have m4a then i can test it properly and change my code to video only. Thanks, |
|
Can you elaborate how you find out that the bitrate didn't match? Your command is equivalent to the one youtube-dl is invoking. It works fine for me:
By the way, if you want youtube-dl to download just an audio file, pass in |
I have both ffmpeg and avconv both are return same result.
/usr/local/bin/youtube-dl --audio-quality 320k --extract-audio --no-part --audio-format mp3 https://www.youtube.com/watch?v='.$id. ' --restrict-filenames -o "mp3/%(id)s.mp3" unable to convert into 320k but always return 128k mp3
Also i have tried everything.
/usr/local/bin/youtube-dl --audio-quality 0 --extract-audio --no-part --audio-format mp3 https://www.youtube.com/watch?v='.$id. ' --restrict-filenames -o "mp3/%(id)s.mp3"
Always same result dose any body now how to fix it.