FORUMS: list search recent posts

Reproduce Video Parameters

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
David Moises Paz
Reproduce Video Parameters
on Jan 13, 2011 at 2:12:18 pm

Hello, I'm a newbie about ffmpeg and I would like someone could help me. This is my situation:

I have a Kodak camera and I want to convert home videos from the camera's format to the cell's format, this the output info for the cell's video parameter:

[shak@olimpus ~]$ ffmpeg -i Desktop/MVI_0093.MP4
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
built on Jan 13 2011 08:27:51 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Desktop/MVI_0093.MP4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: mp41isom
Duration: 00:00:07.60, start: 0.000000, bitrate: 145 kb/s
Stream #0.0(eng): Video: mpeg4, yuv420p, 176x144 [PAR 1:1 DAR 11:9], 131 kb/s, 11.28 fps, 15 tbr, 15 tbn, 15 tbc
Stream #0.1(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s
At least one output file must be specified


and this is the output for my camera's video parameter:

[shak@olimpus ~]$ ffmpeg -i Desktop/000.MOV
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
built on Jan 13 2011 08:27:51 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0

Seems stream 0 codec frame rate differs from container frame rate: 296899.00 (296899/1) -> 29.69 (296899/10000)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Desktop/000.MOV':
Metadata:
comment : EASTMAN KODAK COMPANY KODAK C122 DIGITAL CAMERA
comment-eng : EASTMAN KODAK COMPANY KODAK C122 DIGITAL CAMERA
Duration: 00:00:03.80, start: 0.000000, bitrate: 10665 kb/s
Stream #0.0(eng): Video: mjpeg, yuvj420p, 640x480 [PAR 1:1 DAR 4:3], 10592 kb/s, 29.69 fps, 29.69 tbr, 296899 tbn, 296899 tbc
Stream #0.1(eng): Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s
At least one output file must be specified


It is possible to encode from my camera to the cell's format so I can watch the videos recorded with the camera in the cellphone? If so, please someone could tell me which are the correct arguments to ffmpeg.

As you could see I have already compiled ffmpeg to support amr codecs.

Thanks in advance for listen and for this great tool.

David


Return to posts index

Michael Rampe
Re: Reproduce Video Parameters
on Jan 19, 2011 at 10:24:30 pm

[David Moises Paz] "It is possible to encode from my camera to the cell's format so I can watch the videos recorded with the camera in the cellphone? If so, please someone could tell me which are the correct arguments to ffmpeg."

What you need to replicate is:
Stream #0.0(eng): Video: mpeg4, yuv420p, 176x144 [PAR 1:1 DAR 11:9], 131 kb/s, 11.28 fps, 15 tbr, 15 tbn, 15 tbc
Stream #0.1(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s

For the video:
ffmpeg -i inputfile.mov -b 131k -r 15 -s 176x144 output.mp4

Not too sure about the audio as I haven't used "amrnb" before. From what I have read, you might need to install the amr libraries and reconfigure and make FFmpeg with this codec enabled.

Michael


Return to posts index

David Moises Paz
Re: Reproduce Video Parameters
on Jan 22, 2011 at 1:14:18 pm

Hello, thanks you very much, its really works!! only to put it clear for others that could read this post.


#!/bin/bash
ffmpeg -y -i $1 -b 131k -r 15 -s 176x144 -acodec libopencore_amrnb -ab 12.2k $1".3gp"


this is the final script used to achieve the result. Note that fmpeg was already compiled with amr support (allows me to put this: -acodec libopencore_amrnb), I needed to save it as .3gp file since ffmpeg give me some error about .mp4 files regards to container not supporting current library.

thanks again
greetings david


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]