Archiv verlassen und diese Seite im Standarddesign anzeigen : h264 für Playstation 3
Hallo zusammen,
ich kann leider meine h264 Files nicht auf der PS3 ansehen.
Jetzt habe ich ein script gefunden, dass den Sound nochmal encoded.
Das Script ist aber ein Windows Batchfile - leider bin ich kein sooo guter scripter und würde euch um Hilfe bitte:
Die Verzeichnisse sind mir egal die kann ich selber anpassen. Doch die Ansteuerung von mp4box usw. würde ich gerne genauso machen. Könnt ihr mir helfen und ein Bash-Script mit mir erstellen?!
@echo off
echo -----------------------------------
echo OTR-HQ to PS3-m2ts
FOR /F "delims=" %%i in ('dir "HQ-in\*.avi" /B /a-D') do (
echo -----------------------------------
echo Working on %%i
echo --
echo Extracting raw audio and video streams
echo --
Tools\MP4Box\MP4Box -aviraw audio "HQ-in\%%i" -out "Tools\out.h264"
Tools\MP4Box\MP4Box -aviraw video "HQ-in\%%i" -out "Tools\out.mp3"
echo --
echo Converting audio to AC3
echo --
Tools\lame --decode "Tools\out_audio.mp3" - | Tools\aften -b 192 - "Tools\out_audio.ac3"
del "Tools\out_audio.mp3"
echo --
echo Creating M2TS
echo --
echo MUXOPT --no-pcr-on-video-pid --new-audio-pes --vbr --vbv-len=500 >> Tools\out.meta
echo V_MPEG4/ISO/AVC, "Tools\out_video.h264", insertSEI, contSPS >> Tools\out.meta
echo A_AC3, "Tools\out_audio.ac3" >> Tools\out.meta
Tools\tsMuxer\tsMuxer "Tools\out.meta" "HQ-m2ts\%%i.m2ts
del Tools\out.meta
del Tools\out_audio.ac3
del Tools\out_video.h264
echo --
echo Done with %%i
)
echo ------------------------------------
echo All files done!
echo ------------------------------------
Stingray0481
08.11.09, 08:17
Hi,
ich konvertiere die HQ-OTR-Files immer wie im OTR-Wiki beschrieben:
Streamen_ohne_Transcodierung_auf_die_Playstation3 (http://wiki.onlinetvrecorder.com/index.php/Streamen_ohne_Transcodierung_auf_die_Playstation3)
Also in kurz:
Datei in Avidemux öffnen
Video --> "Kopie"
Audio --> "AC3 (...)"
Format --> "MKV"
Speichern --> als Dateiendung .mkv verwenden
In tsMuxeR öffnen und das m2ts-File erzeugen.
Da steht zwar drin, dass das tsMuxeR-Tool unter Linux nicht so mächtig sei wie unter Windows, was aber nicht (mehr) stimmt.
Ein gutes Bash-Skript, dass die ganzen Sachen in einem Rutsch erledigt würde mich allerdings auch interessieren...
Hier ist noch ein ganz netter Blog Artikel zum Thema mkv-Dateien unter Linux abspielen: http://juliensimon.blogspot.com/2009/01/howto-converting-mkv-files-to-play-on.html
ich habe doch noch ein schönes Bashscript gefunden.. werde es gleich mal testen.
*Update* Ergebnisdatei ist leider auch mit PS3 nicht öffnenbar.
*Update 2* mein tsmuxer war am anderen Ort teste es jetzt nochmal ob es doch klappt.
*Update 3*
file.meta wird nicht gefunden, ka wo der Fehler liegen könnte.
#!/bin/bash
if [ -f CONVERTRUNS ]; then
echo "Script still running"
else
touch CONVERTRUNS
for file in *HQ*
do
ffmpeg -y -i $file -acodec ac3 -ab 192k -vcodec copy -async 50 -f matroska tmp.ac3.mkv
/home/sebastian/opt/tsMuxeR/tsMuxeR file.meta $file.m2ts
mv "$file" ./done
rm tmp.ac3.mkv
done
rm CONVERTRUNS
fi
ffmpeg -y -i $file -acodec ac3 -ab 192k -vcodec copy -async 50 -f matroska tmp.ac3.mkv
Diese Zeile erzeugt keine .meta Datei
Stingray0481
08.11.09, 09:52
Starte mal die tsMuxerGUI. Nach dem man die MKV-Datei geöffnet und M2TS-Mixing als Output gewählt hat, wird das Meta file in einem Fenster angezeigt und man es auch rausspeichern.
Dies sollte man als Input für dein Skript verwenden können. Allerdings stehen dort auch Pfade und Dateinamen drin, so dass man das Meta file selber dann per Skript immer wieder modifizieren muss.
Alle obigen Angaben sind von mir ungetestet.
hm, das ist auch keine "schöne" Lösung. Ich mochte mit dem Script alle Dateien aus einem Verzeichnis umwandeln.. und nicht alle per Hand.
Komisch wenn ich mit diesem Script die ganzen Filme umwandeln
!/bin/bash
mencoder $1 -ovc xvid -xvidencopts vhq=2:bvhq=1:chroma_opt:quant_type=mpeg:pass=1:bit rate=1500 -vf scale=720:-10 -aspect 16:9 -ofps 25 -oac copy -o /dev/null
mencoder $1 -ovc xvid -xvidencopts vhq=2:bvhq=1:chroma_opt:quant_type=mpeg:pass=2:bit rate=1500 -vf scale=720:-10 -aspect 16:9 -ofps 25 -oac mp3lame -lameopts vbr=3 -o xvid-$1
kann die PS3 die Filme dennoch nicht öffnen. mplayer sagt mir, er öffnet die Filme mit ffmpeg und nicht mit xvid
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
So, ich brauche doch Eure Hilfe. Folgende Datei spielt die PS3 ab
General
Complete name : xvid-simpsons.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 15.7 MiB
Duration : 1mn 14s
Overall bit rate : 1 778 Kbps
Writing application : MEncoder UNKNOWN-4.4.1
Writing library : MPlayer
Video
ID : 0
Format : MPEG-4 Visual
Format profile : AdvancedSimple@L5
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (MPEG)
Codec ID : XVID
Codec ID/Hint : XviD
Duration : 1mn 14s
Bit rate : 1 642 Kbps
Width : 720 pixels
Height : 400 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.228
Stream size : 14.5 MiB (92%)
Writing library : XviD 1.1.2 (UTC 2006-11-01)
Audio
ID : 1
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format_Settings_Mode : Joint stereo / MS Stereo
Codec ID : 55
Codec ID/Hint : MP3
Duration : 1mn 14s
Bit rate mode : Variable
Bit rate : 123 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 1.09 MiB (7%)
Alignment : Aligned on interleaves
Interleave, duration : 24 ms (0.60 video frame)
Interleave, preload duration : 528 ms
Die obrige Datei ist "nur" ein Ausschnitt aus der folgenden Datei, und die läuft nicht
General
Complete name : xvid-Die_Simpsons_09.11.17_20-15.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 279 MiB
Duration : 19mn 12s
Overall bit rate : 2 031 Kbps
Writing application : MEncoder UNKNOWN-4.4.1
Writing library : MPlayer
Video
ID : 0
Format : MPEG-4 Visual
Format profile : AdvancedSimple@L5
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (MPEG)
Codec ID : XVID
Codec ID/Hint : XviD
Duration : 19mn 12s
Bit rate : 1 895 Kbps
Width : 720 pixels
Height : 400 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.263
Stream size : 260 MiB (93%)
Writing library : XviD 1.1.2 (UTC 2006-11-01)
Audio
ID : 1
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format_Settings_Mode : Joint stereo / MS Stereo
Codec ID : 55
Codec ID/Hint : MP3
Duration : 19mn 12s
Bit rate mode : Variable
Bit rate : 124 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 17.0 MiB (6%)
Alignment : Aligned on interleaves
Interleave, duration : 24 ms (0.60 video frame)
Interleave, preload duration : 414 ms
Writing library : LAME3.98.2
Der einzige Unterschied ist die Information Writing library. Kann man das mit mencoder einstellen, dass da ein anderer Wert steht? Kann mir jemand helfen? Ich habe hier viele Filmchen die ich gerne streamen würde.
Ein etwas anderer Lösungsansatz wäre http://code.google.com/p/ps3mediaserver/
ich habe jetzt die perfekte Lösung gefunden.. :D
Es ist ein Script aus einem anderen Forum und es macht ein 1a Ergebnis..
#!/bin/bash
# Required: ffmpeg mkvmerge tsMuxeR
# License: GPL v2
for file in *HQ.avi
do
# converting to ac3
[ -d ac3 ] || mkdir ./ac3
ac3outfile=$(echo $file | sed -e s/.avi/.ac3.avi/)
ffmpeg -y -i "$file" -acodec ac3 -ab 192k -vcodec copy ac3/"$ac3outfile"
# converting to mkv
[ -d mkv ] || mkdir ./mkv
mkvoutfile=$(echo $ac3outfile | sed -e s/.avi/.mkv/)
mkvmerge -o mkv/$mkvoutfile ac3/"$ac3outfile"
# converting to m2ts
[ -d m2ts ] || mkdir ./m2ts
### creating meta file
echo MUXOPT --no-pcr-on-video-pid --new-audio-pes --vbr --vbv-len=500 > file.meta
echo V_MPEG4/ISO/AVC,"$(pwd)/mkv/$mkvoutfile",fps=25, insertSEI, contSPS, track=1, lang=und >> file.meta
echo A_AC3,"$(pwd)/mkv/$mkvoutfile",track=2, lang=und >> file.meta
m2tsoutfile=$(echo $mkvoutfile | sed -e s/.mkv/.m2ts/)
tsMuxeR file.meta m2ts/"$m2tsoutfile"
### need to create done dir
[ -d done ] || mkdir done
mv "$file" ./done
### we delete atleast the ac3 and mkv
rm -rf ac3
rm -rf mkv
done
es gibt sogar noch eine sehr sehr elegante Lösung:
http://handbrake.fr/
damit kann man 1a H264 Filmchen für PS3 und für eben alles erstellen - und das auch sehr sehr schön über Console
Powered by vBulletin® Version 4.2.5 Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.