Hi,

I am in the same case like you.

Me, I have done a test with a file recording with my smartphone Android
Nexus One.
It is a format .3gp, a video file in h264 and the audio in amr (aac ?). Is
it the same thing ? Me too, I 'd like to keep the initial format i.e just
stabilize and transform the file, and this operation will be done for any
king of format.

There is some format limitation ?

How have you do this operation (if you have had the same problem) ? If not
how to stabilze/transform this kind of file ? (and some others after ......)

Here, the terminal output about this file and the error that I have in the
first past of the filter (stabilize) :

olivier@navi:~/Vidéos/Android$ tcprobe -i lapetitesouris.3gp
[codecs] Warning: Could not find audio Decoder for fourcc samr
[codecs] Warning: quicktime_decode_audio_stub called
[probe_mov.c] audio codec=samr
[probe_mov.c] video codec=avc1
[tcprobe] Apple QuickTime movie file
[tcprobe] summary for lapetitesouris.3gp, (*) = not default, 0 = not
detected
import frame size: -g 720x480 [720x576] (*)
       frame rate: -f 5.051 [25.000] frc=0 (*)
      audio track: -a 0 [0] -e 8000,16,1 [48000,16,2] -n 0x1 [0x2000] (*)
           length: 835 frames, frame_time=197 msec, duration=0:02:45.329
olivier@navi:~/Vidéos/Android$ transcode -J stabilize -i lapetitesouris.3gp
-y null,null -o dummy
transcode v1.1.5 (C) 2001-2003 Thomas Oestreich, 2003-2009 Transcode Team
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
[codecs] Warning: Could not find audio Decoder for fourcc samr
[codecs] Warning: quicktime_decode_audio_stub called
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
[codecs] Warning: Could not find audio Decoder for fourcc samr
[codecs] Warning: quicktime_decode_audio_stub called
[transcode] V: auto-probing     | lapetitesouris.3gp (OK)
[transcode] V: import format    | (null) in QuickTime (module=mov)
[transcode] A: auto-probing     | lapetitesouris.3gp (OK)
[transcode] A: import format    | PCM in QuickTime (module=mov)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | 720x480  1.50:1  encoded @ UNKNOWN
[transcode] V: bits/pixel       | 1.031
[transcode] V: decoding fps,frc | 5.051,0
[transcode] V: video format     | YUV420 (4:2:0) aka I420
[transcode] A: import format    | 0x1     PCM          [8000,16,1]
[transcode] A: export           | disabled
[transcode] V: encoding fps,frc | 5.051,0
[transcode] A: bytes per frame  | 3166 (3167.999931)
[transcode] A: adjustment       | 2000@1000
[transcode] V: IA32/AMD64 accel | sse3 sse2 sse mmx cmove asm
[transcode] V: video buffer     | 10 @ 720x480 [0x2]
[transcode] A: audio buffer     | 10 @ 8000x1x16
[import_mov.so] v0.1.3 (2005-12-04) (video) * | (audio) *
[filter_stabilize.so] v0.61 (2009-10-25) extracts relative transformations
of
    subsequent frames (used for stabilization together with the
    transform filter in a second pass)
[filter_stabilize.so] Image Stabilization Settings:
[filter_stabilize.so]       maxshift = 40
[filter_stabilize.so]       stepsize = 2
[filter_stabilize.so]       allowmax = 1
[filter_stabilize.so]           algo = 1
[filter_stabilize.so]       fieldnum = 20
[filter_stabilize.so]      fieldsize = 32
[filter_stabilize.so]    mincontrast = 0.150000
[filter_stabilize.so]           show = 0
[filter_stabilize.so]         result = lapetitesouris.3gp.trf
[filter_stabilize.so] field setup: row 1 with 6 fields
[filter_stabilize.so] field setup: row 2 with 7 fields
[filter_stabilize.so] field setup: row 3 with 6 fields
[export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null
[codecs] Warning: Could not find audio Decoder for fourcc samr
[codecs] Warning: quicktime_decode_audio_stub called
[import_mov.so] codec=samr, rate=8000 Hz, bits=16, channels=1,
samples=282560
[import_mov.so] warning: quicktime audio codec 'samr' not supported!
[transcode] critical: audio import module error: OPEN failed
[transcode] critical: failed to open input source
olivier@navi:~/Vidéos/Android$ ffmpeg -i lapetitesouris.3gp
FFmpeg version 0.6.2-4:0.6.2-1ubuntu1, Copyright (c) 2000-2010 the Libav
developers
  built on Mar 22 2011 15:55:04 with gcc 4.5.2
Seems stream 0 codec frame rate differs from container frame rate: 2000.00
(2000/1) -> 1000.00 (2000/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'lapetitesouris.3gp':
  Metadata:
    major_brand     : 3gp4
    minor_version   : 768
    compatible_brands: 3gp43gp6
    copyright       :
    copyright-eng   :
  Duration: 00:00:35.34, start: 0.000000, bitrate: 2972 kb/s
    Stream #0.0(eng): Video: h264, yuv420p, 720x480, 2956 kb/s, 23.62 fps,
1k tbr, 1k tbn, 2k tbc
    Stream #0.1(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s

I must precise that I am using the last version of transcode (i.e 115 and
the filters which come with) installed by the official repository
(multivers, I am thinking), I am on a Ubuntu Natty 11.04 in 64 bits.

Any help is welcome too. :)

By advance Thanks for the help.

Best regards.


2011/8/23 Udo van den Heuvel <udo...@xs4all.nl>

> Hello,
>
> On 2011-08-23 15:23, Udo van den Heuvel wrote:
> > On 2011-08-22 18:07, Udo van den Heuvel wrote:
> >> So how do I get to correctly specify a profile and preset in this
> >> transcode/ffmpeg setup? Same question for the right way to specify a
> >> bitrate.
> >
> > I found this post with a patch:
> > http://comments.gmane.org/gmane.comp.video.transcode.devel/5018
> > Patch applies OK, but the resulting binary dumps core:
>
> Core dump was worked around by providing a 'medium' preset file.
>
> But transcode/ffmpeg/libx264 does not yet use the preset I specify with
> vpre in the ffmpeg.cfg but instead insist on the 'medium' preset. :-(
>
> How and where (what section) in the ffmpeg.cfg should I specify `vpre
> preset_name` to make this work?
>
> Please let us know.
>
> Thanks,
> Udo
>
>


-- 
Olivier
Cenwen un elfe sur la banquise/ an elve on the ice
Mon blog perso  sur le multimédia, Ubuntu, Linux et OpenShot :
http://linuxevolution.wordpress.com/
Le forum d'Openshot où vous me trouverez : http://openshotusers.com/
http://openshotusers.com/forum/index.php

Reply via email to