Closed engleskirecnik closed 6 years ago
Close movies2anki if you have it opened and check log.txt for errors.
thanks for answering log.txt
There's no erros in log.txt. The folder '/home/stevan/Desktop/2.media' must contains media files. Maybe there's something wrong with ffmpeg. Open up Terminal and run this command
ffmpeg -ss 00:14:03.888 -i "/home/stevan/Downloads/ds-0101-252.avi.mp4" -strict -2 -t 7.495 -af afade=t=in:st=0:d=0.25,afade=t=out:st=7.245:d=0.25 -map 0:v:0 -map 0:a:0 -c:v libx264 -vf "scale=480:-2" -c:a aac -ac 2 "/home/stevan/Downloads/2.media/2_0.14.03.888-0.14.11.383.mp4"
and check for any errors.
yes, something is wrong with the ffmpeg because I have it yesterday installed, from the folder which I have downloaded , not by Terminal....there was an error "no ffmpeg" so I installed it...dont know if I did everything good
ffmpeg -ss 00:14:03.888 -i "/home/stevan/Downloads/ds-0101-252.avi.mp4" -strict -2 -t 7.495 -af afade=t=in:st=0:d=0.25,afade=t=out:st=7.245:d=0.25 -map 0:v:0 -map 0:a:0 -c:v libx264 -vf "scale=480:-2" -c:a aac -ac 2 "/home/stevan/Downloads/2.media/2_0.14.03.888-0.14.11.383.mp4"
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration:
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/stevan/Downloads/ds-0101-252.avi.mp4':
Metadata:
major_brand
``` : mp42
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2017-06-01T09:48:17.000000Z
encoder : HandBrake 0.10.5 2016021100
Duration: 00:21:30.76, start: 0.000000, bitrate: 564 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/bt709), 512x384 [SAR 1:1 DAR 4:3], 494 kb/s, 24.91 fps, 25 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2017-06-01T09:48:17.000000Z
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 64 kb/s (default)
Metadata:
creation_time : 2017-06-01T09:48:17.000000Z
handler_name : Stereo
Unknown encoder 'libx264'
Unknown encoder 'libx264'
You need ffmpeg with 'libx264' encoder. What OS are you on?
I am on Linux Mint , that is a version/distro of Ubuntu...
Yeah, you need to reinstall ffmpeg maybe using this link https://www.aptgetlife.co.uk/installing-ffmpeg-on-linux-mint-17-3/ and rerun command that I mentioned before again in Terminal to make sure that there's no errors with ffmpeg anymore.
I will do that and I will let you know what happened.
I was busy , I tried to solve the problem but I had again the same error, so I have googled and found some commands, now I have to do this commandgit clone --depth 1 git://source.ffmpeg.org/ffmpeg
but I get the following error destination path 'ffmpeg' already exists and is not an empty directory.
I googled, tried a few solutions but that does not work for me... (I have tried adding a dot after "ffmpeg" in the command but I got a new error
So, maybe you know some command
Sorry for taking your time
so, I found this one , in order to install again ffmpeg" and I am almost at the end
destination path 'ffmpeg' already exists and is not an empty directory.
Probably you already have 'ffmpeg' folder in your current folder. You can remove it and rerun that command again or create new folder (mkdir ffmpeg-sources
), go to that folder (cd ffmpeg-sources
) and rerun that command again.
It's very strange that you get the same error. Building ffmpeg from the sources can solve the problem but I don't think it's necessary in your case. What version Linux Mint you are on? Linux Mint 18.2? I'll install it on VirtualBox and try to find an easier way to install ffmpeg with libx264 encoder.
look, I have some problems with updating the Linux and a friend of mine solved that (I am not so proficient in computers) and now I am running this ``` uname -r 3.16.0-38-generic stevan@stevan ~ $ lsb_release -a No LSB modules are available. Distributor ID: LinuxMint Description: Linux Mint 17.3 Rosa Release: 17.3 Codename: rosa stevan@stevan ~ $ I had not updated my Linux a few years...and I have some broken dependencies, one of them has something to do with ffmpeg...
Basicilly, I have done a lot of sudo commands in my Linux expirience so my system is in a bad condition...
That is the whole story.
What shall I do now, mkdir ffmpeg-sources
or shall I wait?
I am not in a hury, I mean no need for you to install Linux Mint because the whole problem is in my system...
What shall I do now,
mkdir ffmpeg-sources
or shall I wait?
Yeah, you can try to continue ffmpeg installation process if you want. As soon as I install Linux Mint 17.3 and successfully install ffmpeg I'll send you instructions how to do it.
It won't take much time, maybe 30 minutes or a couple of hours.
I've installed Linux Mint 17.3 and installed FFmpeg by using these commands:
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg
After that I checked that there's libx264 encoder by running this command:
ffmpeg --encoders | grep x264
and got this output:
V..... libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)
afer doing those commands I have got this
**_Unrecognized option '-encoders'.
Error splitting the argument list: Option not found_**
something is wrongg because I have done a lot of commands...
My bad. Try ffmpeg -encoders | grep x264
.
output
stevan@stevan ~/ffmpeg-sources/ffmpeg $ ffmpeg -encoders | grep x264
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration:
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
stevan@stevan ~/ffmpeg-sources/ffmpeg $
That's strange. You don't have libx264
encoder and your FFmpeg version is 3.4 while mine is 3.3.3.
yeah that is strange.. that is because I have done a lott commands, I think that I need to complete remove ffmpeg and then to use your commands those above, do you know the command for complete removing?
Yeah, ffmpeg has been installed from somewhere else but ppa:mc3man/trusty-media because ppa:mc3man/trusty-media contains ffmpeg 3.3.3.
Maybe try sudo apt-get remove ffmpeg
or sudo apt-get purge ffmpeg
and install it again.
I have tried everything but something is not right on my computer...I will ask a friend of mine to solve this andd I will put here the solution if he knows it...
Thank you for your time, such a wonderful software which i am going to use...If he could not solve this I will certienly install a new OS...
Probably you have another repository with ffmpeg that contains ffmpeg 3.4 version without libx264 support. To make sure that you install ffmpeg from mc3man/trusty-media clean apt-get cache and reinstall ffmpeg:
sudo apt-get remove ffmpeg
sudo apt-get clean
sudo apt-get install ffmpeg
While installing there will be a line with the source of ffmpeg. It must be
Get:1 http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/ trusty/main ffmpeg i386 7:3.3.3~trusty2 [27.2 MB]
Or maybe try to specify 3.3.3 version:
sudo apt-get install ffmpeg=7:3.3.3~trusty2
Hello,
I did everything as it should be but I still cant get it to work.
When I click on "go" and I choose "desktop" as my directory , the folder is there but when the process is to the end the folder is empty, the folder which should contain all files which are going to be moved in home/anki/user/collection.media
Thanks in advance...