FFmpeg Service Menu (headache)

Dolphin Service Menus

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.7

Description:
Fdl documentation
gpl software

!!!NOTE REMOVE OLD SETTINGS !!!!!

KNOWN ISSUE

old profiles that doesn't works with the latest git version of ffmpeg ....

screencast function doesn't work with ffmpeg provided by avconv developers and you havet to edit ti...



This service menu help you to convert your multimedia files in every formats supported by FFmpeg

you can run the script with the option

ffmpeg-peace-service-menu -mx
ffmpeg-peace-service-menu -wx

of course you can use it with dolphin and right click on folders or files

the first if you have running X server
the second if you wan run it on terminal without X


features :

-add folder
-add files
-compile ffmpeg for kubuntu system (for other distro maybe someone could help me...)
-compile a video from pictures
-decompile a video into pictures
-build a ffmpeg function and save it
-single pass encode
-double pass encode
-overwrite function
-passive popup can be disabled
-use ffmpeg audio device video profiles
-test ffmpeg encoders
-user can save settings
-screencast function ONLY SHELL MODE
-user can set ffmpeg path
-service menu can be installed via dolphin with get hot new stuff service

INSTALLATION

run the install script ... by typing this on the konsole

./install

you can test the installation even from dolphin.... ghns service should work (configure dolphin settings download stuff etc etc..)

USE
select folders o files and add to conversion list....

after that you need to deselect every files or folder and just select one folder or one file and click on start menu....

if you want test the script just run it with

./ffmpeg-peace-service-menu -mx

nb

avconv is not supported

on kubuntu there is libav version of ffmpeg ... that is not fully supported


a) any insult is welcomed
b) this is for me and for my own fun
c) i like integreted stuff on dolphin
c) for m0nk your are the numero uno of fracassa palle yeah

Copyright (C) 2012 nowardev@gmail.com.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license can be found here http://www.gnu.org/licenses/fdl-1.3.txt
Last changelog:

0.2.5
---------------------------------
Many fix
now user can see the message when somethign goes bad
new CUT feature
user can set texeditor
and boh manybe something else
----------------------------------
0.2.3
-------------------------------------
fix bugs :
dual pass with shell and gui works fine

254 line has $REPLY=""

users can type enter to set default values when he creates settings
some typo
remove easyprofilefile
new function to detect n° of cpu without cut grep and !**? like that
--------------------------------------
0.2.1
now you can screencast ONLY IN SHELL MODE
fix analyze function
many other fixs


----------------------------------------
0.2.0
You can run the script without kdialog or X server

a lots of new stuff....

--------------------------------
0.1.0
Fix Cancel button Now cancel button stops the process
Fix Compile function to create video from pictures
-------------------------------------
0.0.9
-new add folder function based on common audio video formats much more faster
-new function compile ffmpeg for kubuntu
-new function compile video (not tested) need some love
-new fix
-new function double pass activated
-many aother things ....
KNOW ISSUE

Compile video doesn't work
cancel button doesn't work just kill the process

-----------------------------------------
0.0.8
Multiple Stupid Notifications shoudl not be there anymore

some work on function delete and function search for error


Ratings & Comments

15 Comments

nowardev

you are using this /usr/bin/ffmpeg -i /home/mirko/Videos/test.mp4 -acodec vorbis -aq 60 -ac 2 -vn -y /home/mirko/Videos/test.OGG so you did => convert using a audio profile then you selected ogg this feature is NOT well tested and many profiles could not work properly like yours example because you are using ffmpeg by libav developers work around => select convert made easy and select your prefered format...

roctheme

Thank you. With the new version everything works fine. But note, an ogg generated from a mp3-file with 4 MB is 12 MB large. So I use still soundKonverter to convert my files. And note too, moving files to ~/.local/share/Trash/files/ due to an error in Kubuntu (trash folder exceeds limit).

nowardev

you can edit the configs file with your own settings editing the files : ~/.FFmpeg_profiles-qt_audio.lst ~/.FFmpeg_profiles-qt_device.lst ~.FFmpeg_profiles-qt_video.lst for example here you have just to write it correctly for example OGG_personal ogg options_you_want_in ffmpeg and then use your profile of course you need to test in konsole your own personal settings...

roctheme

OK, thank you. I try to change the settings for mp3 to ogg conversion and report later, if successful.

nowardev

you are using this /usr/bin/ffmpeg -i /home/mirko/Videos/test.mp4 -acodec vorbis -aq 60 -ac 2 -vn -y /home/mirko/Videos/test.OGG so you did => convert using a audio profile then you selected ogg this feature is NOT well tested and many profiles could not work properly like yours example because you are using ffmpeg by libav developers work around => select convert made easy and select your prefered format...

roctheme

I all times receive this error message (12x): i can't do it i can't find the file /home/<user>/ffmpeg-service-menu-qt.lst Note, the file /home/<user>/ffmpeg-service-menu-qt.lst exist before start conversion. Inside the file is the correct filename with full path.

nowardev

cat /tmp/ffmpeg_peace_dolphin_service_menu.log you should get this /usr/bin/ffmpeg Version 0.0.7 Author nowardev@gmail.com License GLPv3 List of Files location /home/nowardevse/ffmpeg-service-menu-qt.lst easyprofile_file location /home/nowardevse/.FFmpeg_easy_profile FFmpeg Audio profile location /home/nowardevse/.FFmpeg_profiles-qt_audio.lst FFmpeg Device profile location /home/nowardevse/.FFmpeg_profiles-qt_device.lst FFmpeg Video profile location /home/nowardevse/.FFmpeg_profiles-qt_video.lst Temp Log file location /tmp/ffmpeg_peace_dolphin_service_menu.log FFmpeg service menu Settings Location /home/nowardevse/.FFmpeg_service_menu_settings Reset list after conversion yes OverWrite files if they are present ? -y Cpu used 1 Cpu detected 1 Number of files 3 btw multiple messagge is a known bug :)

nowardev

thanks i have seen a problem in the funcion delete , i have to fix and watch better for multiple stupid messagges ... btw your files are converted or not ? it starts to convert or not?

roctheme

"cat /tmp/ffmpeg_peace_dolphin_service_menu.log" -> no such file or directory! "btw your files are converted or not ?" The files exist, but are empty. "it starts to convert or not?" It start to convert this messages appears: 1x: Conversions done! 2x: Old list /home/mirko/ffmpeg-service-menu-qt.lst deleted and Old log /tmp/ffmpeg_peace_dolphin_service_menu.log deleted 11x: i can't do it i can't find the file /home/mirko/ffmpeg-service-menu-qt.lst

nowardev

ok so that means : the script does the loop , then delete the log and the list of your files because it doesn't detect errors in the log... i guess you have a problem with ffmpeg ... if the files are empty that means ffmpeg has some kind of problems with codecs. to be sure of your ffmpeg use the same format you used with my service menu , if you have made some mp3 or avi just do this ffmpeg -i testvideo.blalba outvideo.mp3 or what ever output format you used before if you want test your ffmpeg do this ffmpeg -codecs 2>&1 | grep mp3 if you don't see E but only D and other letters that meeans your ffmpeg is not able to encode into mp3 for example in this case ffmpeg can just decode... D A D mp3 MP3 (MPEG audio layer 3) D A D mp3adu ADU (Application Data Unit) MP3 (MPEG audio layer 3) D A D mp3adufloat ADU (Application Data Unit) MP3 (MPEG audio layer 3) D A D mp3float MP3 (MPEG audio layer 3) D A D mp3on4 MP3onMP4 D A D mp3on4float MP3onMP4

roctheme

OK: "ffmpeg -i testvideo.blalba outvideo.mp3" conversion works! I receive this output: "ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers built on Jun 12 2012 16:52:09 with gcc 4.6.3 *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Test.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2012-03-16 18:37:38 artist : bla bla album : title : blubb Duration: 00:02:46.56, start: 0.000000, bitrate: 312 kb/s Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 640x360, 214 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc Metadata: creation_time : 1970-01-01 00:00:00 Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 95 kb/s Metadata: creation_time : 2012-03-16 18:37:38 Output #0, mp3, to 'Test.mp3': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 TDEN : 2012-03-16 18:37:38 TPE1 : blabla TALB : TIT2 : blub TSSE : Lavf53.21.0 Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 200 kb/s Metadata: creation_time : 2012-03-16 18:37:38 Stream mapping: Stream #0.1 -> #0.0 Press ctrl-c to stop encoding size= 3905kB time=166.58 bitrate= 192.0kbits/s video:0kB audio:3904kB global headers:0kB muxing overhead 0.008129%" "ffmpeg -codecs 2>&1 | grep mp3" Output: EA libmp3lame libmp3lame MP3 (MPEG audio layer 3) D A D mp3 MP3 (MPEG audio layer 3) D A D mp3adu ADU (Application Data Unit) MP3 (MPEG audio layer 3) D A D mp3adufloat ADU (Application Data Unit) MP3 (MPEG audio layer 3) D A D mp3float MP3 (MPEG audio layer 3) D A D mp3on4 MP3onMP4 D A D mp3on4float MP3onMP4

roctheme

OK: "ffmpeg -i testvideo.blalba outvideo.mp3" conversion works! I receive this output: "ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers built on Jun 12 2012 16:52:09 with gcc 4.6.3 *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Test.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2012-03-16 18:37:38 artist : bla bla album : title : blubb Duration: 00:02:46.56, start: 0.000000, bitrate: 312 kb/s Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 640x360, 214 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc Metadata: creation_time : 1970-01-01 00:00:00 Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 95 kb/s Metadata: creation_time : 2012-03-16 18:37:38 Output #0, mp3, to 'Test.mp3': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 TDEN : 2012-03-16 18:37:38 TPE1 : blabla TALB : TIT2 : blub TSSE : Lavf53.21.0 Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 200 kb/s Metadata: creation_time : 2012-03-16 18:37:38 Stream mapping: Stream #0.1 -> #0.0 Press ctrl-c to stop encoding size= 3905kB time=166.58 bitrate= 192.0kbits/s video:0kB audio:3904kB global headers:0kB muxing overhead 0.008129%" "ffmpeg -codecs 2>&1 | grep mp3" Output: EA libmp3lame libmp3lame MP3 (MPEG audio layer 3) D A D mp3 MP3 (MPEG audio layer 3) D A D mp3adu ADU (Application Data Unit) MP3 (MPEG audio layer 3) D A D mp3adufloat ADU (Application Data Unit) MP3 (MPEG audio layer 3) D A D mp3float MP3 (MPEG audio layer 3) D A D mp3on4 MP3onMP4 D A D mp3on4float MP3onMP4

nowardev

ok so you have the mp3 encoder and ffmpeg should work just fine my service menu it's only a bash script that create a loop reading the file. i should read the log to understand the problem you could open the log file even if empty kate /tmp/ffmpeg_peace_dolphin_service_menu.log then run my service menu while it is working you should reload the file opened into kate here the conversion just work fine , leaving the problem of stupid multiple notifications

roctheme

kate /tmp/ffmpeg_peace_dolphin_service_menu.log: /usr/bin/ffmpeg Version 0.0.7 Author nowardev@gmail.com License GLPv3 List of Files location /home/mirko/ffmpeg-service-menu-qt.lst easyprofile_file location /home/mirko/.FFmpeg_easy_profile FFmpeg Audio profile location /home/mirko/.FFmpeg_profiles-qt_audio.lst FFmpeg Device profile location /home/mirko/.FFmpeg_profiles-qt_device.lst FFmpeg Video profile location /home/mirko/.FFmpeg_profiles-qt_video.lst Temp Log file location /tmp/ffmpeg_peace_dolphin_service_menu.log FFmpeg service menu Settings Location /home/mirko/.FFmpeg_service_menu_settings Reset list after conversion yes OverWrite files if they are present ? Cpu used 2 Cpu detected 2 Number of files 2 Easy profile used -sameq /usr/bin/ffmpeg Version 0.0.7 Author nowardev@gmail.com License GLPv3 List of Files location /home/mirko/ffmpeg-service-menu-qt.lst easyprofile_file location /home/mirko/.FFmpeg_easy_profile FFmpeg Audio profile location /home/mirko/.FFmpeg_profiles-qt_audio.lst FFmpeg Device profile location /home/mirko/.FFmpeg_profiles-qt_device.lst FFmpeg Video profile location /home/mirko/.FFmpeg_profiles-qt_video.lst Temp Log file location /tmp/ffmpeg_peace_dolphin_service_menu.log FFmpeg service menu Settings Location /home/mirko/.FFmpeg_service_menu_settings Reset list after conversion yes OverWrite files if they are present ? Cpu used 2 Cpu detected 2 Number of files 2 Easy profile used -sameq After this, the file ffmpeg_peace_dolphin_service_menu.log will be deleted from your script.

roctheme

I found this file in /.local/share/Trash/files/: ffmpeg_peace_dolphin_service_menu.log: start new conversion loop using profile Log File /home/mirko/test.mp4 /usr/bin/ffmpeg -i /home/mirko/Videos/test.mp4 -acodec vorbis -aq 60 -ac 2 -vn -y /home/mirko/Videos/test.OGG ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers built on Jun 12 2012 16:52:09 with gcc 4.6.3 *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/mirko/Videos/test.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2012-04-03 21:27:46 Duration: 00:02:49.60, start: 0.000000, bitrate: 361 kb/s Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 480x360, 264 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc Metadata: creation_time : 1970-01-01 00:00:00 Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 94 kb/s Metadata: creation_time : 2012-04-03 21:27:46 encoder 'vorbis' is experimental and might produce bad results. Add '-strict experimental' if you want to use it. Or use the non experimental encoder 'libvorbis'. ...

Pling
0 Affiliates
Details
license
version 0.2.5
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 3

More Dolphin Service Menus from nowardev:

kde-service-menu-video-dl
nowardev
last update date: 8 years ago

Score 6.1

kde-service-menu-vlc
nowardev
last update date: 8 years ago

Score 7.0

kde-service-menu-ffplay
nowardev
last update date: 8 years ago

Score 5.7

kde service menu nowardev scanner
nowardev
last update date: 8 years ago

Score 5.7

kde-service-menu-vlc-transcode
nowardev
last update date: 10 years ago

Score 5.7

kde-service-menu-axel
nowardev
last update date: 10 years ago

Score 5.0

Other Dolphin Service Menus:

burnWithGrowisofs
chunkylover
last update date: 20 years ago

Score 5.0

Firefox-bookmarks service menu
storyteller
last update date: 20 years ago

Score 5.0

Text Convert Service Menu
smp-penguin
last update date: 21 years ago

Score 5.0

Pdflatex servicemenu
bobuse
last update date: 20 years ago

Score 5.0

Send through Bluetooth
dmnet
last update date: 21 years ago

Score 5.0

Add to Bloglines
spookster
last update date: 20 years ago

Score 5.0



System Tags