Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 25. Apr 2024, 01:51

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 14. Jul 2010, 09:58 
Offline

Joined: 5. Aug 2005, 10:39
Posts: 2
Location: Schweiz
Hallo,

ich habe erfolgreich ffmpeg auf meinem root-Server installiert. Nun wollte ich $use_ffmpeg=true; setzen und dabei das $ffmpeg_convert_command für UNIX anpassen, also Hochkomma statt Anführungszeichen für die Filenames.

Das ganze mache ich in der TWG-Web-Konfiguration unter "Erweitert" in der Textarea. Blöderweise muss dort ja valider PHP-Code rein, und der sieht für meinen Fall wie folgt aus:

$ffmpeg_convert_command='-y -i \'%s\' -f flv -ar 22050 -ab 64000 -ac 1 \'%s\'';

Die Hochkomma habe ich 'ausgeslashed'.

Leider wird beim Speichern immer das Slash entfernt, und danch kann die TWG-Web-Config nicht mehr angezeigt werden, ein PHP-PARSE-Fehler erscheint - ein manuelles korrigieren der my_config.php ist angesagt.

Habe ich einen Denkfehler???

Danke für Tipps :)


Top
 Profile  
 
 Post subject:
PostPosted: 14. Jul 2010, 11:32 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Die slashes werden beim schreiben entfernt.

Bitte verwende
$ffmpeg_convert_command="-y -i '%s' -f flv -ar 22050 -ab 64000 -ac 1 '%s'";


- Michael


Top
 Profile  
 
PostPosted: 15. Jul 2010, 07:29 
Offline

Joined: 5. Aug 2005, 10:39
Posts: 2
Location: Schweiz
Hallo Michael,

danke für das schnelle Feedback.

Seltsam, jetzt funktioniert es korrekt...ich hatte alles schon ausprobiert, folgende Varianten funktionierten (scheib^nbar) alle nicht über die Adminoberfläche:

$ffmpeg_convert_command="-y -i '%s' -f flv -ar 22050 -ab 64000 -ac 1 '%s' ";
$ffmpeg_convert_command='-y -i \'%s\' -f flv -ar 22050 -ab 64000 -ac 1 \'%s\' ';
$ffmpeg_convert_command='-y -i "%s" -f flv -ar 22050 -ab 64000 -ac 1 "%s" ';

Jetzt habe ich die erste (deine) Variante nochmals probiert, und nun geht es korrekt.

Na wer weiss in welchem geistigen Zustand ich gestern Abend war ;)

Danke für die Hilfe!
Grüsse
Kai


Top
 Profile  
 
 Post subject:
PostPosted: 15. Jul 2010, 08:01 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
ich bau beim nächsten update noch ein, dass \' oder \" eine Meldung erzeugen, weil man sich damit die config zerlegen kann...

- Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


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 post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy