avconv

convert animated gif to video on linux server while preserving frame rate

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 15:39:54
how do I convert an animated gif to a video (e.g. h264@mp4) programmatically on a linux server? I need this to process user generated content which should be output as several defined video formats; therefore its possible, that users may want to process animated gif files. I already have a set of working php scripts to transcode videofiles to specific formats (like vpx@webm and h264@mp4, scaled to specific resolutions) using avconv, but herefore I need video input. Usual ways seem to be to extract the frames of the gif and then encode it, like convert file.gif file%03d.png avconv -i file%03d

convert animated gif to video on linux server while preserving frame rate

久未见 提交于 2019-11-29 22:38:10
问题 how do I convert an animated gif to a video (e.g. h264@mp4) programmatically on a linux server? I need this to process user generated content which should be output as several defined video formats; therefore its possible, that users may want to process animated gif files. I already have a set of working php scripts to transcode videofiles to specific formats (like vpx@webm and h264@mp4, scaled to specific resolutions) using avconv, but herefore I need video input. Usual ways seem to be to

Rotate mp4 videos without re-encoding

别来无恙 提交于 2019-11-29 18:47:17
I'm looking for a way to rotate videos shot with my Nexus 4 on my Debian Wheezy sytem. The videos are shot in portrait mode and I would like to rotate them to landscape mode. Preferably the rotation is command-line driven. I have found several previous questions which are hinting at a good solution but I can't seem to manage to get it working. To begin with there was this question: Rotating videos with FFmpeg But it indicates that ffmpeg is outdated and that I should use avconv. I found this question detailing the way to go forward. https://askubuntu.com/questions/269429/how-can-i-rotate-video

librosa.load: file not found error on loading a file

孤者浪人 提交于 2019-11-29 18:05:14
I am trying to use librosa to analyze .wav files. I started with creating a list which stores the names of all the .wav files it detected. data_dir = '/Users/raghav/Desktop/FSU/summer research' audio_file = glob(data_dir + '/*.wav') I can see the names of all the files in the list 'audio_file'. But when I load any of the audio file, it gives me file not found error. audio, sfreq = lr.load(audio_file[0]) error output: Traceback (most recent call last): File "read_audio.py", line 10, in <module> audio, sfreq = lr.load(audio_file[1]) File "/usr/local/lib/python3.7/site-packages/librosa/core/audio

Rotate mp4 videos without re-encoding

送分小仙女□ 提交于 2019-11-28 13:39:47
问题 I'm looking for a way to rotate videos shot with my Nexus 4 on my Debian Wheezy sytem. The videos are shot in portrait mode and I would like to rotate them to landscape mode. Preferably the rotation is command-line driven. I have found several previous questions which are hinting at a good solution but I can't seem to manage to get it working. To begin with there was this question: Rotating videos with FFmpeg But it indicates that ffmpeg is outdated and that I should use avconv. I found this

Unknown encoder 'libx264'

↘锁芯ラ 提交于 2019-11-28 03:05:34
I installed ffmpeg 0.8.9 on ubuntu11 by ./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libx264 When I run it ffmpeg -y -i test.mp4 -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -vcodec libx264 -b 250k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 250k -maxrate 250k -bufsize 250k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 320:240 -g 30 -async 2 a.ts It said Unknown encoder

Unknown encoder 'libx264'

允我心安 提交于 2019-11-27 05:02:51
问题 I installed ffmpeg 0.8.9 on ubuntu11 by ./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libx264 When I run it ffmpeg -y -i test.mp4 -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -vcodec libx264 -b 250k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 250k -maxrate 250k -bufsize 250k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0