Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] Android: who knows a script for batchencoding videos  (Read 4918 times)

Offline Lanzi

  • User
  • Posts: 1.777
[EN] Android: who knows a script for batchencoding videos
« on: 2011/08/22, 14:22:59 »
I own a new google-Android smartphone (Nexus S)
and I would like to reencode some of my short (1-5min) HD-holidayvideos (1920px) to a more convienient android size and have them in the end in mp4 (my nikon digicam produces mp4 in *mov containers), maybe already in another folder

Since I have a lot of videos it would be nice if I could batchencode all the videos from a folder to another one, with mp4 and only 480 or 720px.
The aspectratio should be maintained!

Who know enough of mencoder or mplayer to help?

Ralul, you have an idea? I love (and still use) you photo-rezisescript!)

Offline michaaa62

  • User
  • Posts: 299
Android: who knows a script for batchencoding videos
« Reply #1 on: 2011/08/22, 14:56:41 »
winff and tablet-encode should know enough about the tools you mentioned. There are a couple of presets for different devices floating around in the net. You might find the appropriate for your needs there, may be.

Offline Lanzi

  • User
  • Posts: 1.777
Android: who knows a script for batchencoding videos
« Reply #2 on: 2011/08/22, 18:03:03 »
hmmm, I found both tool and installed them.
winff remeinds me to soundkonverter. looks great. I found a h264 profile, but its not working. a konsole is opening and then I ran the follwing:

Quote

Seems stream 0 codec frame rate differs from container frame rate: 29977.00 (29977/1) -> 29.98 (29977/1000)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/C491-1512/DCIM/Camera/Videos/Noelia WS-Bachata Kenatky (Doppelstunde).mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 1970-01-01 00:00:00
    title           : DSCN0328.mp4
    encoder         : Lavf52.108.0
  Duration: 00:01:28.46, start: 0.000000, bitrate: 5615 kb/s
    Stream #0.0(und): Video: mpeg4, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 5483 kb/s, 29.98 fps, 29.98 tbr, 29977 tbn, 29977 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
    Stream #0.1(und): Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00
Unrecognized option 'me'
ffmpeg version 0.8.1, Copyright (c) 2000-2011 the FFmpeg developers
  built on Aug  7 2011 11:13:21 with gcc 4.6.1
  configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libdirac --disable-decoder=libdirac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter --enable-frei0r --enable-libopencv --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --libdir=/usr/lib/x86_64-linux-gnu --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/x86_64-linux-gnu
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0


planlos

  • Guest
Android: who knows a script for batchencoding videos
« Reply #3 on: 2011/08/23, 01:05:21 »
Did you run it from commandline?
I ask because of this:

Quote

Unrecognized option 'me'


If you run it from a GUI, a close look into the options maybe worth a try.

Regards
planlos

Offline Lanzi

  • User
  • Posts: 1.777
Android: who knows a script for batchencoding videos
« Reply #4 on: 2011/08/23, 08:53:51 »
I was wondering about "me" to :-)
No, i didn't run it from the commandline. Just startet it in KDE

Offline Lanzi

  • User
  • Posts: 1.777
Android: who knows a script for batchencoding videos
« Reply #5 on: 2011/08/23, 15:24:06 »
BTW: tablet-encode is crashing the moment I click on convert...

Any other way?

Offline whistler_mb

  • User
  • Posts: 198
Android: who knows a script for batchencoding videos
« Reply #6 on: 2011/08/24, 12:19:22 »
I use HandBrake to convert viedeos for my HTC Hero.

The program has gui and cli. You can define convert-profiles and it has an batch-mode.


Ich nutzte HandBrake um Videos für mein HTC Hero zu konvertieren.

Das Programm hat eine gui und cli. Man kann Profile definieren und die Videos als Batch konvertieren lassen.

Offline Lanzi

  • User
  • Posts: 1.777
Android: who knows a script for batchencoding videos
« Reply #7 on: 2011/08/25, 23:28:32 »
Well, I tested it, and it works fine... It was dificult to find the settings for pic-size, but finally I found it under (profiles-save).