ich habe Probleme mit meiner Xbox360. Ich nutze nun schon länger den OTR (OnlineTVRecorder). Mit einem Script für Linux lasse ich meine HQ-Aufnahmen umwandeln von Avi mit AVC und MP3 in MP4 mit AVC und AAC.
Wenn ich ein File umgewandelt habe sieht es mit Media-Info so aus:
Code: Alles auswählen
General
Complete name : /home/devil/OTR/geschnitten/EUReKA_Die_geheime_Stadt_10.08.16_21-20_pro7_60_TVOON_DE.mpg.HQ-cut.avi.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 330 MiB
Duration : 41mn 23s
Overall bit rate : 1 114 Kbps
Encoded date : UTC 2010-08-31 16:07:20
Tagged date : UTC 2010-08-31 16:07:54
Writing application : mp4creator 1.6
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Muxing mode : Container profile=Main@3.1
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 41mn 23s
Bit rate mode : Variable
Bit rate : 969 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.093
Stream size : 287 MiB (87%)
Language : English
Encoded date : UTC 2010-08-31 16:07:20
Tagged date : UTC 2010-08-31 16:07:36
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 67
Duration : 41mn 23s
Bit rate mode : Variable
Bit rate : 141 Kbps
Maximum bit rate : 186 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Stream size : 41.8 MiB (13%)
Language : English
Encoded date : UTC 2010-08-31 16:07:53
Tagged date : UTC 2010-08-31 16:07:54
Und hier ist mal das Script:
Code: Alles auswählen
#!/bin/sh
file=$1
if ["$file" = ""]
then
echo "Usage: xbox.sh [Filename]"
exit;
else
echo "-----------------------------------"
echo "OTR-HQ to Xbox360-MP4"
echo "-----------------------------------"
echo "Working on $file"
echo "--"
echo "Extracting files"
echo "--"
mplayer -dumpaudio $file -dumpfile $file.mp3
mplayer -dumpvideo $file -dumpfile $file.h264
echo "--"
echo "Converting audio to AAC"
echo "--"
sox $file.mp3 $file.wav && faac -o $file.aac $file.wav
echo "--"
echo "Creating MP4 file"
echo "--"
mp4creator -create="$file.h264" -rate=25 "$file.mp4"
mp4creator -create="$file.aac" "$file.mp4"
echo "--"
echo "Deleting Temp-Files"
echo "--"
rm -f "$file.h264"
rm -f "$file.aac"
rm -f "$file.wav"
rm -f "$file.mp3"
echo "--"
echo "Done with $file"
exit;
fi