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
ADVERTISEMENT
May 25, 2011
I can't for the life of me find the option to encode my video in H264 in Pitivi. There's just about every other codec imaginable in the list. I'm running Ubuntu 11.04 32-bit and everything is up to date.
View 2 Replies
View Related
Apr 9, 2011
I am running 64 Bit Debian, 6.0 install with VLC and libavcodec52, libavformat52, and libavdevice52 installed. I also installed recordmydesktop which creates an ogv file, and I would like to use VLC to convert the file to an MP4. Then I can add it to a project under Open Shot Video Editor.
I get the following errors when I try to convert the file: Streaming / Transcoding failed: It seems your FFMPEG (libavcodec) installation lacks the following encoder: H264 - MPEG-4 AVC (part 10). If you don't know how to fix this, ask for support from your distribution. This is not an error inside VLC media player.Do not contact the VideoLAN project about this issue.
Streaming / Transcoding failed: It seems your FFMPEG (libavcodec) installation lacks the following encoder: MPEG AAC Audio. If you don't know how to fix this, ask for support from your distribution. This is not an error inside VLC media player. Do not contact the VideoLAN project about this issue. I've used Google to search for the error message, searched on the forum.videolan.org, and searched on this forum. So far, I've not found a lead to the solution. What am I overlooking/missing?
View 6 Replies
View Related
Jan 20, 2011
I am trying to convert a file using ffmpeg. I have this following code in a terminal.
ffmpeg -i introvideofinal -vcodec libx264 -acodec libfaac introvideofinalfinal.mp4
It returns an error dealing just with the h264 codec saying that I need to use a vpre parameter? I can't find any documentation on using the vpre parameter.
View 1 Replies
View Related
Mar 24, 2010
After some update this morning, I can't play any video in Karmic. I've been using VLC for everything, now there is no video, only sound with the error message: p, li { white-space: pre-wrap; } No suitable decoder module: VLC does not support the audio or video format "h264". Unfortunately there is no way for you to fix this. Totem: "Can't play a text file without video."
View 1 Replies
View Related
Sep 1, 2011
whenever im trying to play a movie in vlc,a window is being popped up wih the following message.No suitable decoder module: VLC does not support the audio or video format "h264". Unfortunately there is no way for you to fix this.
View 4 Replies
View Related
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
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
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
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
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
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
View Related
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
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
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
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
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
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
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
Dec 10, 2010
I was trying to play an MP4 (h264) video from Meet The Gimp (in particular, this one) but both xine and dragonplayer would play a couple of seconds of it (poorly) and then segfault and die. The error spew looked like:
Code:
$ xine meetthegimp152.mp4
This is xine (X11 gui) - a free video player v0.99.5.
(c) 2000-2007 The xine Team.
[code]....
dragonplayer emitted the same output, so I assumed it was something amiss in one of the libraries they both use. mplayer plays the video, so I'm not without recourse, but it would be nice to know what's up with the segfaults. Anyone seen something like this?
System specifics, if it matters:
Slackware 13.1 (freshly installed)
AMD64x2 5600
4GiB SRAM
GeForce 8800 GTX w/ 768MiB VRAM
View 2 Replies
View Related
Feb 19, 2011
Cobbling info from different sources finding this script useful and maybe hopefully useful to some of you too
1. cd to folder containing folders containing wv,flac,ape
bulk unpacking from lossless (wavpack;flac;ape)
==============================================
Code:
for i in */
do
cd "$i"
wvunpack *wv (replace this line with flac -d *.flac for flac)
[code]....
View 2 Replies
View Related
Apr 24, 2010
I installed mediatomb on may Debian CLI PC (no graphical). I can stream video (avi) to my PS3 but AVCHD h264 (m2ts) format is not working. config.xml configuration (if necessary)!
View 1 Replies
View Related
Jan 8, 2011
found this today on my travels
Code:
########################################################################
## Split Lossless Audio by Cue File
## By CokiDVD
## Contains some code from:
[code]....
View 9 Replies
View Related
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
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
Feb 11, 2010
I recently migrated my system to Karmic 9.10 from Hardy 8.04 Now that I want to convert some .avi videos to H.264 in Kino for upload, it doesn't work. In Hardy all was fine, I'd import the .avi files and export to h.264 mp4, then upload to ..... etc ... no problems. But with karmic; after I import the file into Kino, I then trim out the bits I don't want. Next I go to Export and select H.264 MP4 Single Pass (ffmpeg), then click the Export button; it 'locks the audio' and that's it - takes 5 seconds to 'finish' no matter how long the video clip is, and no mp4 file is generated or appears in the selected folder (same result with H.264 MP4 Dual Pass).
View 9 Replies
View Related
Mar 13, 2011
I currently have mplayer installed with the binary codecs in place, but it seems that mplayer is quite picky with which files it wants to play.
I have three files that are all mp4 h264 .mkv's. One of them is ~20 minutes long (720p) and mplayer seems to do just fine. Another is around ~90 minutes (1080p) and within seconds the audio gets out of sync. The third file is also around ~90 minutes long (1080p) and refuses to play at all, throwing a mess of:
[h264 @ 0x5fdbac0]AVC: Consumed only 1 bytes instead of 521
Error while decoding frame!
The machine is fairly old (Athlon 64 X2 4200+), but I don't think it's a hardware performance issue. When it was running Windows XP it could handle any HD video I threw at it. Each one of these files plays perfectly on my Windows machine with Media Player Classic Home Cinema + ffmpeg...
Is there something wrong with ffmpeg or is support for h264 just not there yet?
View 1 Replies
View Related
Jun 8, 2011
I've setup a EEEBox 1501P exclusively to work as a Media Center. So i've picked up Ubuntu 11.04 x64, and Boxee x64 (latest), and installed the nVIDIA drivers directly from site. The problem is that video playback at 720p is a bit sloppy! I've tried on VLC player for example, and the CPU cores are at 10%. But when i use Boxee, one core gets stuck at 100%, and the others at 10%.
So this means that currently, boxee, cannot handle hardware acceleration in x86_64 Linux! My question is:What software can I use to set-up my Ubuntu-based Media Center?
View 9 Replies
View Related
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
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