PDA

View Full Version : "Bad public movie atom" when converting with AviSynth?


pysokat
03-07-2007, 01:38 PM
Hi!

I'm trying to convert a Family Guy episod with help from AviSynth 2.5 because I want subtitles too. In the Videora Ipod Converter I select my own "FamGuy scipt.avs" which contains following information:


DirectShowSource("C:\Family Guy S03E14.avi", fps=23.976, convertfps=true)
VSFilter_TextSub("C:\Family Guy S03E14.sub")

When I'm using the VideoWiz i select "High" on video and sound quality and then next, so it starts and converts it. Everything seems to be OK with the convertion itself, the output film works fine in for example VLC, but it's unable to add to iTunes or to play in QuickTime. In QT I just keep getting the message "Error -2002: a bad public movie atom was found in the movie".

I suppose the error is in my script file, but since I'm not an expert on scripting .avs-files I'm now passing the question over to someone here.

How can I do to make this work with iTunes and QT, without removing the subtitles ofcourse?:)



--------------------------------------------

THIS IS WHAT'S SHOWED IN CONSOLE ON START:

EXEC: C:\Program\Red Kawa\Video Converter\Tools\MediaInfo\mediainfobatch.bat "C:\Program\Red Kawa\Video Converter\Tools\MediaInfo\MediaInfo.exe" "C:\Program\Red Kawa\Video Converter\Tools\MediaInfo\parameters.txt" "C:\FamGuy scipt.avs"


MediaInfo Command line, MediaInfoLib - v0.7.4.5
MSG - Converter - Version: 2.06
MSG - Converter - Profile: VideoWizard
MSG - MediaInfo - Length: -1s
MSG - MediaInfo - Width: -1 pixels
MSG - MediaInfo - Height: -1 pixels
MSG - MediaInfo - Aspect Ratio: -1
MSG - MediaInfo - Framerate: -1 fps
MSG - Converter - Resolution not detected. Using AutoResize Max Resolution as default.
MSG - Converter - Width: 320 pixels
MSG - Converter - Height: 240 pixels
EXEC: C:\Program\Red Kawa\Video Converter\Tools\FFmpeg\ffmpeg.exe -y -i "C:\FamGuy scipt.avs" -f mp4 -title "Famguy" -timestamp "2007-03-07 07:29:51" -vcodec h264 -s 320x240 -b 640k -bt 640k -flags +loop -cmp +chroma -partitions +parti4x4+partp4x4+partp8x8+partb8x8 -flags2 +mixed_refs -me umh -subq 7 -trellis 2 -refs 5 -coder 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -maxrate 768k -bufsize 2M -rc_eq "blurCplx^(1-qComp)" -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 13 -acodec aac -ac 2 -ab 128 "C:\Program\Red Kawa\Video Converter\Videos\iPod\H264\Famguy.mp4"

FFmpeg version SVN-r8047, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-liba52 --enable-avisynth --enable-libdts --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libogg --enable-libtheora --enable-libvorbis --enable-x264 --enable-xvid --enable-amr_nb --enable-amr_wb --cpu=i686 --enable-memalign-hack --extra-ldflags=-static
libavutil version: 49.3.0
libavcodec version: 51.34.0
libavformat version: 51.10.0
built on Feb 21 2007 23:20:24, gcc: 4.3.0 20070126 (experimental)
Input #0, avs, from 'C:\FamGuy scipt.avs':
Duration: 00:21:40.2, start: 0.000000, bitrate: 0 kb/s
MSG - Video Length is 1300s
Stream #0.0: Video: rawvideo, yuv420p, 576x432, 71591 kb/s, 23.98 fps(r)
Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, mp4, to 'C:\Program\Red Kawa\Video Converter\Videos\iPod\H264\Famguy.mp4':
Stream #0.0: Video: h264, yuv420p, 320x240, q=10-51, 640 kb/s, 23.98 fps(c)
Stream #0.1: Audio: aac, 48000 Hz, stereo, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[h264 @ 009C3820]using cpu capabilities MMX MMXEXT SSE SSE2
Press [q] to stop encoding

Red Kawa
03-07-2007, 03:02 PM
Your script is fine, its just that QuickTime/iTunes has a really crappy bug in it that causes this problem when it shouldn't.

To workaround this bug in avs, you'll have to manually change the framerate.
Use this line after your other two:

ChangeFPS(24000/1001)

pysokat
03-07-2007, 03:50 PM
Thank you very much RK! It's works perfectly.


Now, is it possibly to convert multiple files after each other like a queue? Maybe I can write it in the script somehow? Would be more comfortable.


Thank you again!


btw. Is it possible to change the size of the subtitles? I've only used VobSub before. Can I add fontsize options to the script too?

migrena
03-07-2007, 04:56 PM
you can change subtitles size, font etc by using ass/ssa subtitle format or .srt format with addition of .style file
more details here
http://avisynth.org.ru/docs/english/externalfilters/vsfilter.htm
(dont worry its not in russian i just couldn find any other adress :))