After moving some mp4 from computer to USB stick, I discovered that my mp4 are corrupted. I guess USB stick is guilty.
However I would like to recover those MP4 files and I tried ffmpeg but without any success.
As I work under Linux, I tried:
ffmpeg -i corrupted_video_file.mp4 -c copy fixed_video_file.mp4
Is there another way to fix corrupted mp4 files or any other tool ?
thx
Related
I have a dvd of toturial movies. The movies are in exe format. When I try to open them, the system says It cant open .flv files. I try to open them with flv player but it doesnt work. What should i do?
I am trying to compress an audio file and I use -y command to overwrite the existing file. But problem is that that command decreases the duration of the audio file.
I am using the following command:
ffmpeg -y -i D:\audio\Blues.mp3 -ab 64 D:\audio\Blues.mp3
Is there any way to resolve this within ffmpeg? Thanks.
You can't read from a file and write to it at the same time with FFmpeg.
Write to a different file, then delete the original afterwards.
I have 1000 videos which contain both mp4 and mkv format. I want to copy all mkv files to another directory using linux commands. How could I do that?
cd firstdir
cp *.mkv /path/to/seconddir/
In the sourceFile parameter, use *.mkv.
This tells the linux terminal to copy every file.
I have a linux server, I am looking to convert a .wma file to .flac file 16k
Is there a way I can do this using a PHP Script to control the server?
I was thinking .wma to .wav then .flac would be easier, but not sure how...
Any help is greately appreciated.
You can invoke the command line through PHP so that it just works as a safe interface to remote users.
Keeping that in mind you can use the ffmpeg library to go right from .wma to .flac using:
ffmpeg -i sample.wma -acodec flac -aq 100 sample.flac
You'll want to have something to manage file names and getting/serving the files, etc but that doesn't seem to be the hurdle in this case.
i'm trying to use SOX to cut certain mp3s, convert them to different formats and add fade in-out to the files.
It works fine with mp3 to mp3 but when i try to convert it from an MP3 to an m4r i get the error: "sox FAIL formats: no handler for file extension `m4r'".
I'm using SOX in windows so how can i install the ffmpeg package on top of the SOX so it knows waht to do with the m4r format?
on the same machine i can use ffmpeg to convert from mp3 to m4r just fine. It sucks that ffmpeg doesn't offer FADE for audio.
You may download and install ffmpeg library for audacity and then copy avcodec-52.dll avformat-52.dll avutil-50.dll swscale-0.dll to sox installation directory. Thus you can use sox as :
sox -t ffmpeg youFile.wma yourFile.wav