Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
was: codecs Warning: mp4a avc1 ==> MPEG4 to MPEG2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sat Apr 18, 2009 2:56 am    Post subject: was: codecs Warning: mp4a avc1 ==> MPEG4 to MPEG2 Reply with quote

When I try to use transcode, I get an error message, it can not find codecs: mp4a avc1:
Code:
transcode -i sany0002_1.mp4 -M1 -y ffmpeg --export_prof dvd-ntsc --export_asr 2 -o movie -D0 -m movie.ac3 -J modfps=clonetype=4 --export_fps 29.97
transcode v1.0.7 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg, 2004-2008 Transcode Team
[codecs] Warning: Could not find audio Decoder for fourcc mp4a
[codecs] Warning: quicktime_decode_audio_stub called
[codecs] Warning: Could not find video Decoder for fourcc avc1
[codecs] Warning: quicktime_decode_video_stub called


Which package contains these codecs?
Transcode don't have them nor mplayer:
Code:

media-video/transcode-1.0.7  USE="X a52 dv dvd fame iconv jpeg mmx mp3 mpeg ogg quicktime sdl sse sse2 truetype vorbis xml xvid -3dnow (-altivec) -extrafilters -imagemagick -lzo -mjpeg -network -nuv -oss -theora -v4l2" 0 kB

media-video/mplayer-1.0_rc2_p28450  USE="X a52 aac alsa ass dts dv dvd encode esd gif gtk iconv ipv6 jpeg live mad md5sum mmx mp2 mp3 opengl oss png quicktime sdl sse sse2 theora truetype unicode vorbis x264 xscreensaver xv xvid -3dnow -3dnowext -aalib (-altivec) -amrnb -amrwb -arts -bidi -bindist -bl -cddb -cdio -cdparanoia -cpudetection -custom-cflags -custom-cpuopts -debug -dga -dirac -directfb -doc -dvb (-dvdnav) -dxr3 -enca -fbcon -ftp -ggi -jack -joystick -ladspa -libcaca -lirc -lzo -mmxext -mng -musepack -nas -nemesi -openal -pnm -pulseaudio -pvr -radio -rar (-real) -rtc -samba -schroedinger -speex -ssse3 (-svga) -teletext -tga -v4l -v4l2 (-vidix) (-win32codecs) -xanim -xinerama -xvmc -zoran" VIDEO_CARDS="tdfx vesa -mga -s3virge" 0 kB


Last edited by Joseph_sys on Sat Apr 18, 2009 3:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Sat Apr 18, 2009 10:28 am    Post subject: Reply with quote

mp4a means audio in an mp4 container, which is most likely aac
avc1 is h.264 video

so enable aac and x264 useflags, and you should be okay
i'd also recommend upgrading to the latest ~arch versions of ffmpeg (0.5) and transcode (1.1.2), while you're at it
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sat Apr 18, 2009 3:32 pm    Post subject: Reply with quote

I've added these two flags: aac x264 to make.conf upgraded to new ~arch transcode-1.1.2
Code:
media-video/transcode-1.1.2  USE="X a52 aac alsa dv dvd iconv jpeg mmx mp3 ogg quicktime sdl sse sse2 truetype vorbis x264 xml xvid -3dnow (-altivec) -imagemagick -lzo -mjpeg -nuv -oss -postproc -theora -v4l2"

but transcode still fails with:
Code:
transcode -i sany0002_1.mp4 -M1 -y ffmpeg --export_prof dvd-ntsc --export_asr 2 -o movie -D0 -m movie.ac3 -J modfps=clonetype=4 --export_fps 29.97
transcode v1.1.2 (C) 2001-2003 Thomas Oestreich, 2003-2009 Transcode Team
[codecs] Warning: Could not find video Decoder for fourcc avc1
[codecs] Warning: quicktime_decode_video_stub called
[codecs] Warning: Could not find video Decoder for fourcc avc1
[codecs] Warning: quicktime_decode_video_stub called
[transcode] V: auto-probing     | sany0002_1.mp4 (OK)
[transcode] V: import format    | (null) in QuickTime (module=mov)
[transcode] A: auto-probing     | sany0002_1.mp4 (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     | 1920x1080  1.78:1  encoded @ 16:9
[transcode] V: pre clip frame   | 1920x1440 (-180,0,-180,0)
[transcode] V: zoom             | 720x480  2.00:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.087 (low)
[transcode] V: decoding fps,frc | 59.940,7
[transcode] V: video format     | YUV420 (4:2:0) aka I420
[transcode] A: import format    | 0x1     PCM          [48000,16,2]
[transcode] A: export format    | 0x55    MPEG ES Layer 3 [48000,16,2]  128 kbps
[transcode] V: export format    | unknown (module dependant)
[transcode] V: encoding fps,frc | 29.970,4
[transcode] A: bytes per frame  | 6408 (6406.400000)
[transcode] A: adjustment       | -1600@1000
[transcode] V: IA32/AMD64 accel | sse3 sse2 sse 3dnowext 3dnow mmxext mmx cmove asm
[transcode] V: video buffer     | 10 @ 1920x1080 [0x2]
[transcode] A: audio buffer     | 10 @ 48000x2x16
[import_mov.so] v0.1.3 (2005-12-04) (video) * | (audio) *
[filter_modfps.so] v0.10 (2003-08-18) plugin to modify framerate
[filter_modfps.so] converting from 59.9401fps to 29.9700fps
[export_ffmpeg.so] v0.3.18 (2008-11-29) (video) Lavc52.11.0 | (audio) MPEG/AC3/PCM
[codecs] Warning: Could not find video Decoder for fourcc avc1
[codecs] Warning: quicktime_decode_video_stub called
[import_mov.so] codec=mp4a, rate=48000 Hz, bits=16, channels=2, samples=912384
[codecs] Warning: Could not find video Decoder for fourcc avc1
[codecs] Warning: quicktime_decode_video_stub called
[import_mov.so] VIDEO: codec=avc1, fps=59.940, width=1920, height=1080, frames=1140
[import_mov.so] warning: quicktime codec 'avc1' not supported for RGB!
[transcode] critical: video import module error: OPEN failed
[transcode] critical: failed to open input source


tovid is not working either
Code:
tovid -wide -ntsc -in sany0002_1.mp4 -out foo_encoded
--------------------------------
tovid
DVD and (S)VCD video conversion script
Version 0.31
http://www.tovid.org
--------------------------------
Using config file /home/joseph/.tovid/tovid.config, containing the following options:
(none)
tovid command-line used:
-wide -ntsc -in sany0002_1.mp4 -out foo_encoded
Changing to working directory: /home/joseph
Converting /home/joseph/sany0002_1.mp4 to NTSC DVD format
Encoding quality is 6 of 10 (use -quality to change)
Saving to /home/joseph/foo_encoded.mpg
Storing log and temporary files in /home/joseph/foo_encoded.6
Run 'tail -f "/home/joseph/foo_encoded.6/tovid.log"' in another terminal to monitor the log

=========================================================

Probing video for information. This may take several minutes...
The encoding process is estimated to require 13 MB of disk space.
You currently have 56273 MB available in this directory.
Analysis of file /home/joseph/sany0002_1.mp4:
  1920 x 1080 pixels, 59.940 fps
  Duration (best guess): 00:00:19 (HH:MM:SS)
  avc1 video with faad audio
Target format:
  720 x 480 pixels, 29.970 fps
  m2v video with ac3 audio
  5400 kbits/sec video, 224 kbits/sec audio

=========================================================

Using explicitly provided aspect ratio 16:9
Overriding auto-detected aspect ratio 177:100
No letterboxing necessary
Input is not 29.970 fps. Framerate will be adjusted.
Scaling picture to 720 x 480

=========================================================

Encoding audio stream to ac3 with the following command:
nice -n 0 ffmpeg -i /home/joseph/sany0002_1.mp4 -vn -ab 224k -ar 48000 -ac 2 -acodec ac3 -y /home/joseph/foo_encoded.6/audio.ac3

Processing started. Please wait...


Encode stopped, killing all sub processes
Keeping temporary files used during encoding in /home/joseph/foo_encoded.6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
tovid encountered an error during encoding:
    There was a problem with encoding the audio to ac3 format.
Check the contents of /home/joseph/foo_encoded.6/tovid.log to see what went wrong.

See the tovid help page for what to do next:
  http://tovid.wikia.com/wiki/Help:Contents
Sorry for the inconvenience!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Transcode is enabled with acc and x264 but now it fails only on "x264" with
warning: quicktime codec 'avc1' not supported for RGB!
is it the reason transcode does not work?
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sun Apr 19, 2009 12:46 am    Post subject: Reply with quote

trying to use "transcode" or "tovid" to convert MPEG-4 to MPEG-2 doesn't work
but using "mencoder" works.
Information from:
http://www.linux.com/articles/53702
Code:
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=18:aspect=16/9:acodec=ac3:abitrate=192 -ofps 30000/1001 -o video_OUT.mpg video-IN.mp4

However, doesn't matter what package I use I always get errors: "...AVC: Consumed only x bytes instead of ..."
Code:
...
[h264 @ 0x12c83a0]AVC: Consumed only 23423 bytes instead of 23428[1909:224]
[h264 @ 0x12c83a0]AVC: Consumed only 25093 bytes instead of 25100[1909:224]
...

is this a problem with x264 compatibility?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum