Jump to content
php.lv forumi

ffmpeg un wordpress audio player


ziedinjsh

Recommended Posts

Labs vakars!

Ir sanākusi tāda interesanta lieta.. Augšupielādējot mp3 failu tiek konvertēts uz mazāku failu.. (esmu izmeiģinājis uz *.flv, *.ogg un *.mp3)

exec('ffmpeg -y -i '.$code.'.mp3 -f flv -acodec libmp3lame -ab 64 -ac 1 flv/'.$code.'.mp3');

 

Viss it kā notiek, bet atverot to failu caurs wordpress audio player viņš parāda #boofering... un viss, bet kad atver caur viļu orģināli augšupielādēto mp3 viņš atskaņo.

 

P.S. Uz datora flv, ogg un mp3 pēc konvertācijas skan.

Link to comment
Share on other sites

Neviens no šiem neiet:

exec('ffmpeg -y -i '.$code.'.mp3 -f flv -acodec libvorbis -ab 64 -ac 1 flv/'.$code.'.ogg');
exec('ffmpeg -y -i '.$code.'.mp3 -f ogg -acodec libmp3lame -ab 64 -ac 1 flv/'.$code.'.ogg');
exec('ffmpeg -i '.$code.'.mp3  -acodec libvorbis flv/'.$code.'.ogg');
exec('ffmpeg -i '.$code.'.mp3 -vcodec libtheora -acodec libvorbis flv/'.$code.'.ogg');
exec('ffmpeg -y -i '.$code.'.mp3 -acodec libvorbis -aq 50 flv/'.$code.'.ogg');
exec('ffmpeg sox '.$code.'.mp3 flv/'.$code.'.ogg');
exec('ffmpeg -i '.$code.'.mp3 -acodec libvorbis flv/'.$code.'.ogg');
exec('ffmpeg -i '.$code.'.mp3 -vcodec libtheora -acodec libvorbis flv/'.$code.'.ogg');
exec('ffmpeg -i '.$code.'.mp3  -b 128k  flv/'.$code.'.ogg');
shell_exec('ffmpeg -i '.$code.'.mp3 -aq 60 -map_meta_data 0:0 flv/'.$code.'.ogg');
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...