Ubuntu Multimedia :: Trim Video In FFmpeg Is Not Accurate?

Aug 13, 2011

I tried to trim a video in FFmpeg using this command:

Code:
ffmpeg -ss 00:20:48.500 -t 00:01:00 -i INPUT.mp4 -acodec copy -vcodec copy OUTPUT.mp4

But FFmpeg is not accurate and it started the video from a nearby point instead (from 00:24:46~). I tried to add 2 seconds to my starting point and it took another frame (not what I wanted).

The video source is H264 video with AAC audio.

View 8 Replies


ADVERTISEMENT

Ubuntu Multimedia :: Ffmpeg / Avc / Mp4 - Video Not Working On HTC G1?

Aug 31, 2010

I'm having trouble to find the right ffmpeg options to encode a video that can be read on a htc G1 cell phone. I have used several codecs and formats but none is working.

I have followed these instruction to install ffmpeg and x264 [URL]

Here is my ffmpeg config :

Code:
FFmpeg version SVN-r24953, Copyright (c) 2000-2010 the FFmpeg developers
built on Aug 27 2010 22:44:01 with gcc 4.4.1
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-

[Code].....

View 3 Replies View Related

Ubuntu Multimedia :: Getting Video Info With Ffmpeg / Mplayer?

Feb 19, 2010

I am trying to get a listing of video information using ffmpeg or mplayer. I have found a way BUT it is only returning 1 piece of info..

Here is what I'm doing in PHP:

print exec("/usr/local/bin/mplayer -identify file.flv -ao null -vo null -frames 0 2>/dev/null | grep ^ID_");

But this will not provide an entire listing, it will only print out 1 thing such as:

ID_AUDIO_CODEC=mp3

I can specify what exactly I want to know something like:

print exec("/usr/local/bin/mplayer -identify file.flv -ao null -vo null -frames 0 2>/dev/null | grep ^ID_VIDEO_WIDTH");

but I want to just have all the info available at once instead of having to loop through like 20 times..

View 3 Replies View Related

Ubuntu Multimedia :: Ffmpeg Command To Make A Video From One Mp3 And One Png?

Jun 5, 2010

is there a command to create a video from a mp3 and a png suitable to upload on ..... if anybody knows?

View 4 Replies View Related

Ubuntu Multimedia :: Convert Video To Audio Use Ffmpeg?

Jul 15, 2010

I want to convert all video file in folder a become audio file in folder b use ffmpeg, how to type it in terminal?

View 7 Replies View Related

Ubuntu Multimedia :: Ffmpeg Video Capture - From A Webcam ?

Aug 30, 2010

Anybody had any success in getting ffmpeg to work as advertised with video capture from a webcam? I really want to convert the webcam output to VP8 or H264, but apparently ffmpeg can't even capture the webcam with a video4linux device.

Code:

View 9 Replies View Related

Ubuntu Multimedia :: Lossless Padding Of H264 Video With Ffmpeg?

Mar 11, 2011

I have some videos in an mkv container that are 1920 pixels wide, but less than 1080 pixels high. This causes problems when playing the videos on a PS3 (after converting to an AVCHD system), because the PS3 won't centre the video, leaving a very large black bar at the bottom but none at the top. Is there a way to use mencoder or ffmpeg to losslessly add padding to the top and bottom to make the video 1920x1080?

If I use

Code:

ffmpeg -i video.mkv -acodec copy -vcodec copy -scodec copy -padtop 132 -padbottom 132 out.mkv

then ffmpeg won't do the padding, and the resulting file is basically exactly the same. If I use

Code:

ffmpeg -i video.mkv -acodec copy -vpre libx264-lossless_fast -scodec copy -padtop 132 -padbottom 132 out.mkv

I get

Code:

Output #0, matroska, to 'anr.mkv':
Metadata:
encoder : Lavf52.64.2

[code]......

View 1 Replies View Related

Ubuntu Multimedia :: Make Exact Video Quality Conversion With Ffmpeg?

Jan 3, 2010

I spent about a half hour wrestling with different website tutorials about how to convert a file with ffmpeg and figuring out how to get all the video quality options right. Then I discovered you can just use the -sameq option and it figures it all out for you if you don't want to change the vid quality but just want it in another format. Thought I'd leave this on the site in case anyone else finds himself in the same boat.

View 1 Replies View Related

Ubuntu Multimedia :: Ffmpeg To Resample Audio But Leave Video Unchanged?

Mar 1, 2010

I'm trying to write a bash script for gpodder to automatically convert video podcasts to play on my media player. I'm using ffmpeg for the conversions (compiled myself with all codecs enabled). I'd like to avoid resampling the video or audio whenever it's unnecessary but ffmpeg seems to want to resample my video even if I only give it audio parameters to change.For example I have a test video with the following parameters:

Code:
Stream #0.0(eng): Video: h264, yuv420p, 640x480, 1394 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 5994 tbc
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 159 kb/s

[code]...

View 2 Replies View Related

Ubuntu Multimedia :: Loop A Video A Number Of Times In Ffmpeg Or Mencoder?

Jun 5, 2010

How do you loop a video a number of times in ffmpeg or mencoder? I made a ogv out of a gif. It loops 1 time, so it's less than a second.

View 4 Replies View Related

Ubuntu Multimedia :: Ffmpeg And How To Convert Video To Nokias 5800 Phone Format

Jul 31, 2011

command line option in ffmpeg to do this

I am told I need the output file to comply with this

Video Resolution: 480*320
Video Bitrate: 768 kbps
Audio Bitrate: 128 kbps
Video Format: MPEG-4 (be sure not to use H264, as it�s not supported in the current firmware)

[Code]....

View 3 Replies View Related

Ubuntu Multimedia :: User Friendly Video Converter - Ffmpeg Cannot Convert A .avi To .3gp With Audio Working

May 15, 2011

i am using Ubuntu 11.04 on my computer system. I urgently need a good video converter for converting videos.I have already installed FFmpeg and men-coder,Winff etc. The problem is each has its own drawback.For instance ffmpeg cannot convert a .avi to .3gp with audio working. My preferences are the converter should be user friendly, should support all popular video formats.

View 2 Replies View Related

OpenSUSE Multimedia :: Capturing Video Stream From Webcam - FFmpeg Relocation Error

Jul 24, 2011

I am having problems with ffmpeg. My goal is to capture a video stream from my webcam and feed that into a webcam-capturing program. But to get that to work, I will need ffmpeg to work. I need the following command to work, but I get an error:

Code:
$ ffmpeg -b 100K -an -f video4linux2 -s 320x240 -r 10 -i $device -b 100K -f image2pipe -vcodec mjpeg - | perl -pi -e 's/\xFF\xD8/KIRSLESEP\xFF\xD8/ig'
ffmpeg: relocation error: /usr/lib/libavfilter.so.2: symbol avformat_find_stream_info, version LIBAVFORMAT_53 not defined in file libavformat.so.53 with link time reference

View 1 Replies View Related

Ubuntu Multimedia :: FFMPEG Scaling - Get Some Weird Green Band At Bottom Of Frame In Converted Video

Jan 14, 2011

I've got a 1920x1080 video I've edited and rendered with Cinelerra, and I'm trying to use ffmpeg to transcode it to something smaller. However, when I use a command like this, for instance:

Code:

I inevitably get some weird green band at the bottom of the frame in the converted video. I know that there's some weird pixel stretching going on here, because the NTSC standard for 16:9 is 720x480 with rectangular pixels, and the 1080 version has square pixels, so I'm guessing the green band is an artifact of that process?

View 2 Replies View Related

Ubuntu Multimedia :: Ffmpeg 6 Is Out For Some Time When Will Lucid Afford Such A New Ffmpeg?

Jul 20, 2010

Since ffmpeg 6 is out for some time, when will Ubuntu Lucid afford such a new ffmpeg package from its repository?

View 2 Replies View Related

Ubuntu Multimedia :: Ffmpeg Audio Merge With Video Merge

Feb 22, 2011

I am using ffmpeg for merge wav files to a mov video. My doing is below

1. First extract audio (wav file) from video
2. Create wav file from mp3 track 1
3. Create wav file from mp3 track 2
4 Merge extract audio from video with track 1 and track2.
Now finally create a new video with original video's video stream and merged audio stream.

Process is working. However final video is 3-4 times greater than original one. I want that final video should be near about size of original video. As I understand, all three wav files (created from ) make video larger.

Example commands i using is as below:

View 6 Replies View Related

Ubuntu :: Achieve Video In FFMPEG?

Jun 13, 2010

I have a video I want to convert to another video format that's similar to another video. The video's properties and codecs as follows:

Code:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Vid.mp4':
Duration: 00:02:35.80, start: 0.000000, bitrate: 1731 kb/s
Audio: adpcm_ima_wav, 22050 Hz, stereo, s16
Video: mjpeg, yuvj420p, 128x128 [PAR 1:1 DAR 1:1], 30 tbr, 30 tbn, 30 tbc

View 1 Replies View Related

General :: Cut Video Files (flv) Using Ffmpeg?

Apr 6, 2009

You want to cut lets say a 15 minute video into 10 minute video, removing the first 5 minutes of it using ffmpeg?s?

View 8 Replies View Related

Fedora :: Add Title To Video With Ffmpeg?

Jun 24, 2010

I have some video clip and I want to add a title in its buttom center. For exemple, My clip is video.mp4 and I want to add the title "hello world".Does ffmpeg (or mencoder) enables me to do this?

View 2 Replies View Related

General :: How Can Stitch 2 Video Files Using Ffmpeg?

Feb 4, 2011

I've created some time-lapse videos from photos, using this command: ffmpeg -i IMG_%03d.JPG -s 1440x1080 -sameq video.MP4

And it worked great. Now I want to join several of these time-lapse videos to make a single, longer video (all the input videos have the exactly same format). I already tried using: cat video1.MP4 video2.MP4 > stitch.MP4

but the output ends up being equal to video1.MP4, I don't want to transcode nor changing any parameter of the video, I just want a end-to-end stitching, as if those videos were on a playlist.

View 1 Replies View Related

Software :: Ffmpeg - Add Watermark To A Video Via Shell

Feb 25, 2011

I'm trying to find out how to add watermark to a video using a ffmpeg via console, because I have to do it quick. There is tutorial on ..... (other forums use also this video tutorial) for this but there is a small problem - in ffmpeg 6.1 there is no more vhook subsystem which is used in tutorial...

View 12 Replies View Related

Software :: Ffmpeg Video Output Really Low Quality?

Aug 11, 2010

I was experimenting with transcoding video with ffmpeg. using the command

Code:
ffmpeg -i moviename.avi moviename.mkv

outputs the .avi into .mkv, but the output quality is very, very bad, while the original is dvd-quality.

View 1 Replies View Related

General :: Extracting Sound Clip From Video Using Ffmpeg?

Nov 10, 2010

Code:
ffmpeg -i Mumbai.Meri.Jaan.2008.1CD.XviD.AC3-5.1.Esub.By.Deejam.avi -ss 8170 -t 302 bambai-meri-jaan.mp3
FFmpeg version git-1dbd813, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 1 2010 19:28:12 with gcc 4.4.3
configuration: '--enable-avfilter' '--enable-avfilter-lavf' '--enable-vdpau' '--enable-bzlib' '--enable-

[Code].....

Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

View 5 Replies View Related

Software :: FFMPEG Encoding WMV3 Audio And Video To FLV

Feb 19, 2010

I'm trying to encode a wmv file to flv with ffmpeg. The video codec is WMV3 and the audio codec is wmap (Windows Media Audio Professional). The command I use is:

Code:
/usr/bin/ffmpeg -i <input file>.wmv -s 640x350 -b 1024k -r 25 -ar 44100 -ac 2 -y <output file>.flv
Output:

Code:
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --enable-shared --disable-static .....

Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[wmv3 @ 0xb32c00]Extra data: 8 bits left, value: 0
Unsupported codec (id=86056) for input stream #0.1

As you can probably see the audio codec is not supported. Is there a way to encode WMV3+wmap with ffmpeg or any other tool in Linux? Windows Media Encoder in Windows is able to encode such files to a supported codec. For example: WMV3+WMA2/WMV2+WMA2, I could then encode it in Linux. I'm trying to find a way to directly encode WMV3+wmap in Linux.

View 14 Replies View Related

Software :: Ffmpeg And Mencoder Slice Mp4 Video Audio Out Of Sync

Jan 7, 2010

I am trying to use ffmpeg and mencoder to slice a portion of my video out but the audio is always 2 seconds out of sync.

ffmpeg -i bird.avs.MP4 -acodec copy -vcodec copy -ss 00:08:40 -t 00:01:00 test.mp4
mencoder -ss 00:08:40 -endpos 00:01:00 -oac copy -ovc copy bird.avs.MP4 -o test.mp4
mencoder -ss 00:08:40 -endpos 00:01:00 -oac copy -ovc copy -noskip bird.avs.MP4 -o test.mp4

[Code]....

View 5 Replies View Related

Software :: Ffmpeg To Convert Video To Play In Mobile Phones?

Apr 5, 2011

Is there a way I can convert video with ffmpeg to be in mp4 format and play on either iphone or android?

I can't seem to get anything that I convert to play on a phone.

I can get other mp4 files I found to play on the phone but any file I convert into that format won't actually play.

View 13 Replies View Related

General :: Mencoder Not Accurate

Jun 30, 2010

i am using ubuntu 8.04.I wanted to clip from a movie so I ran

Code:
mencoder -ss 2453 -endpos 34 InpuTFile -acodec copy -vcodec copy -o Output
I changed the ss value still it cut from same frame of the video.It seems mencoder works faster than ffmpeg but jumps to keyframe hence cannot jump to accurately specified second.

View 2 Replies View Related

Ubuntu :: Battery Meter Never Accurate As Far As Time Remaining Goes

May 2, 2010

I have an Asus EEE PC900. Just installed 10.04 netbook remix and everything works fine straight out of the box. it works great and is a vast improvement on windows xp which was previously installed on the asus. Just one small thing - the battery meter is never accurate as far as time remaining goes - it currently says i have 19 hours 55 minutes to go - unfortunately this is not quite true i suspect. It was the same with 9.10, Does anyone have a solution for this?

View 4 Replies View Related

General :: Copying An Audio CD In The Most Accurate Way?

Dec 18, 2010

In cdrecord's man page, EXAMPLES, it says:

Quote:

To copy an audio CD in the most accurate way, first run

cdda2wav dev=2,0 -vall cddb=0 -B -Owav

and then run

cdrecord dev=2,0 -v -dao -useinfo -text *.wav

Now, cdda2wav samples the drive output. But the signal is already sampled in the CD. Do you think this is accurate?

View 7 Replies View Related

Ubuntu Multimedia :: Ffmpeg To Convert HD .mkv To .avi?

Jan 13, 2010

I've got a bunch of HD files in .mkv format that I want to convert to a format that the 360 will read (currently just trying .avi files) so I can stream the media to my xbox360. I'd rather avoid transcoding the entire file, so I tried unpacking the .mkv file into audio and video (and subtitle if necessary) and repacking said file into avi using ffmpeg. The repacking is where I am having the problem. Here's the commands I tried at first (it might look familiar):

Code:

mkvextract tracks file.mkv 1:temp_video.avi 2:temp_audio.ogg 3:temp_sub.srt
ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy file.avi

However, I keep getting this annoying error:

Code:

Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height Where stream #0.1 is the output audio stream to the .avi file. I think I have narrowed it down to the fact that the input streams are all 6 channel (5.1 surround sound) which mp2 doesn't support (the ffmpeg audio default) so I did this instead:

Code:

ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec libmp3lame file.avi

I'm still getting the same error, but when I use

Code:

ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec libmp3lame -ac 2 file.avi

to change the sound to stereo it works. Problem is I'd like to keep my media in surround sound. Any thoughts on how to get all 6 channels in the new mp3 file? I'm fairly certain that mp3s support 5.1. And after some messing around, I haven't found that my ffmpeg can transcode audio format from 5.1 back to 5.1. So since (I think) the 360 can play .ac3 files I decided to just copy both the video and audio file to the .avi file sans transcoding using

Code:

ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec copy file.avi

however now about halfway through, I run into this error:

Code:

NULL @ 0x22f3a00]error, non monotone timestamps 62562 >= 62562

av_interleaved_write_frame(): Error while opening file I can't seem to find any solution to this problem anywhere online, does anyone know how to get around this? I'd prefer to use ffmpeg for this if possible. (so I can write a script and just attack an entire directory at once) For what it's worth, I'm using the latest ffmpeg in the ubuntu (karmic) default repositories.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved