Log in

View Full Version : "Streaming" mp4, Youtube works, mine doesn't


linyx
26th May 2012, 18:01
Hello,
I'm trying to make my digital library accessible from several Android tablets. Now, for these files, I know the H.264/AAC (720x480, Baseline; stereo LC) settings are acceptable because they play perfectly when copied to the tablet.

However when pseudo-streaming from a NAS, they will only play for about 2 seconds and then stop, saying "This video cannot be played" or something to that effect. Any youtube video that I stick on the NAS will play just fine (with much higher bitrates than mine, therefore bandwidth isn't the problem), so I assume it's my muxing that is failing. I've tried

mp4box (with -isma)
ffmpeg (with mp4, with flv)
Yamb
x264 (with mp4)

and they all do the same thing. Any help you Doom9 geniuses could offer would be greatly appreciated!

jmartinr
27th May 2012, 00:01
Try one of mine: http://www.roelofs-coaching.nl/Blobs/Videos/20120520rwzwolle/Yuan%20F.mp4
It's made with mp4box (with -ipod). If it works i can give more details.

linyx
27th May 2012, 00:55
Thank you! Your's works perfectly; however, I just tried one of mine with -ipod, -psp, etc and it still failed.:confused:

jmartinr
27th May 2012, 13:00
Maybe the video is the problem. I wouldn't know. What does mediainfo say about the levels of your and my file? Secondly, is your copy of mp4box recent? If not, get it here: http://gpac.wp.mines-telecom.fr/downloads/gpac-nightly-builds/

I use a batch file for encoding my avisynth files (in 2-pass with a bitrate of 1000). The relevant simplified lines are:

x264.exe --preset veryslow --tune film "%%~fP" --pass 1 --bitrate %bitrate% --sar %sar% --stats "%%~dpnP.x264.stats" --vbv-bufsize 10000 --vbv-maxrate 10000 --profile baseline --level 3 --output NUL
x264.exe --preset veryslow --tune film "%%~fP" --pass 2 --bitrate %bitrate% --sar %sar% --stats "%%~dpnP.x264.stats" --vbv-bufsize 10000 --vbv-maxrate 10000 --profile baseline --level 3 --output "%%~dpnP.264"

mp4box.exe -add "%%~nP.264"#1 -add "%%~nP.aac.mp4"#1 -new "%%~nP.mp4" -ipod -par 1=%sar%
And I guess you could also leave the SAR bit out.

linyx
27th May 2012, 18:38
Doing mine exactly the way you did works! Yay! Now just to tweak the settings, thank you very much!!

jmartinr
28th May 2012, 23:05
Doing mine exactly the way you did works! Yay! Now just to tweak the settings, thank you very much!!
I wouldn't tweak it that much if I were you. I just left out some colormatrix options, nothing more.

If you just use the tune and level options and specify a bitrate that's not to low, it will all be quite well balanced.

However, my files are made for web-http-pseudostreaming. That's not exactly the same as your goal.