![]() |
![]() |
![]() |
![]() |
|
|
#46 |
|
Member
Join Date: Mar 2008
Location: Belgium
Posts: 37
|
I've never used i7remux, but buffer overflow in sprintf usually means some text is longer than expected. Did you check the fix neonleonb suggested in post #43?
You could try to shorten the names of files, or shorten any text you specify as an option such as ID3 tags. |
|
|
|
|
#47 | |
|
Junior Member
Join Date: Apr 2009
Posts: 3
|
Quote:
|
|
|
|
|
|
#48 |
|
Member
Join Date: Mar 2008
Location: Belgium
Posts: 37
|
I had a look at the code and there's no doubt neonleonb found a bug.
In directory i7remux-0.1, file AviFile.cc, line 685 is "char id[4];". The 4 should be increased to 5. Or if you're a purist, the sprintf statements operating on it should be changed, but that's more difficult. After this, run "make" and "su -c 'make install'" again. If that still doesn't help, you could debug it: - remove the -O2 in Makefile, line 29 (the line that sets CXXFLAGS) - run "make clean" - run "make" - run "gdb --args i7remux xyz" where xyz are the arguments you normally pass to i7remux In that environment type "run" and when it crashes "ba". If you haven't given up yet at that point, try "help". If you have given up, type "quit". Last edited by Zweistein; 05-05-2009 at 16:15. |
|
|
|
|
#49 | |
|
Junior Member
Join Date: Apr 2009
Posts: 3
|
Quote:
|
|
|
|
|
|
#50 |
|
Member
Join Date: Mar 2008
Location: Belgium
Posts: 37
|
I doubt we'll hear from author takayuki again, so I uploaded i7remux-0.2.zip with the main fix (and without compiler warnings and a typo in the mencoder example in README).
I tried just one video and it seems to work well - insofar you can enjoy video on such a small screen. |
|
|
|
|
#51 |
|
Junior Member
Join Date: Apr 2009
Posts: 3
|
i7remux is working for me now but it seems to produce video with constant blocky effects. (I actually don't think this is from i7remux). I've been using the tutorial from http://www.linuxjournal.com/article/9919 as I cannot seem to get ffmpeg to work properly for me. Anyone have any idea what produces those blocky effects in the video (plays fine on the computer)?
|
|
|
|
|
#52 |
|
Junior Member
Join Date: May 2009
Posts: 1
|
Thank you, it works very well for me!
@elpresidente: Maybe you could try what worked for me: Install ffmpeg via the package manager of your choice, then do the following: ffmpeg -i <infile> -f avi -g 1 -b 384k -vcodec libxvid -vtag XVID -ab 128k -ar 44100 -ac 2 -acodec libmp3lame -s 160x128 -aspect 4:3 -r 15 <outfile> <outfile> stands for a filename with the ending .avi next do: i7remux <infile> <outfile> where <infile> has to be the <outfile> of the ffmpeg-step. Then your video should be perfect for playing on the iAudio7. |
|
|
|
|
#53 |
|
Junior Member
Join Date: May 2009
Posts: 4
|
Thank you for the programm it works perfect. I just added one thing, as dependeing on the source the pictures sometimes is distorted. By adding black pads this is solved:
Example: ffmpeg -i <infile> -f avi -g 1 -b 384k -r 15 -s 160x108 -padtop 10 -padbottom 10 -vtag XVID -vcodec libxvid -ab 128k -ar 44100 -ac 2 -acodec libmp3lame <outfile.avi> Please note that the size is counted WITHOUT the pads, the example gives you an output size of 108+10+10=128 Ulrich |
|
|
|
|
#54 | |
|
Junior Member
Join Date: Jul 2009
Posts: 8
|
Hi!
![]() To sum up all what was written and to make converting on linux more comfortable I write small script and instruction. FIRSTLY. I am not sure,but it have to be installed next packages: Quote:
Code:
$ cd /path/to/i7remux-0.2 $ ./configure $ make $ sudo make install You can download my script or copy from here: Code:
#!/bin/bash # #!!!!Edit that directory if you want.Dont forget about "/" in the end #!!!!NO SPACES!Only letters, numbers and dots in the name of path! #!!!!There is "~/.tmp_video_dir/" by default. To make this dir enter that command: mkdir ~/.tmp_video_dir/ temp_dir=~/.tmp_video_dir/ # in=$1 BASENAME=`basename "$in"` PATH2FILE="`echo $1 | sed s/$BASENAME//g`" temp_out=$temp_dir`cat /dev/urandom | tr -dc a-zA-Z0123456789 | head -c 10`.avi # # #It makes a temp file in your temp dir with a random name for the first step of convertetion. mencoder "$in" -ofps 12 -vf scale=160:128 -ovc xvid -xvidencopts bitrate=384:max_bframes=0:max_key_interval=1 -oac mp3lame -lameopts br=128 -o "$temp_out" #Then convert temp video by i7remux. #It makes video with same name, but with "_.avi" in the end. i7remux $temp_out $temp_dir`basename "$in"`_.avi #It moves result to dir, where video was mv $HOME/.tmp_video_dir/`basename "$in"`_.avi "$PATH2FILE" #Delete temp file rm "$temp_out" #If its ok, that will be popup if [ -e "$1_.avi" ] then notify-send "Converting completed" "`basename "$in"`" else notify-send "Something is wrong" "`basename "$in"`" fi Make: Code:
$ chmod +x ~/.convert_i7 Code:
$ echo "alias video_to_i7='$HOME/.convert_i7'" >> $HOME/.bashrc" USING: Code:
$ video_to_i7 /path/to/input_video P.S You can use it from Nautilus, if put script to ~/.gnome2/nautilus-scripts/ P.S.S. Programmers, make gui with progress bar,please. It will be cool. All suggestions are welcome. corrish from Russia, with love ![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|