View Full Version : remux canon Videos for PS3 playback
MasterElwood
29th February 2012, 23:17
Someone did this with Iphone Videos here:
http://forum.doom9.org/showthread.php?t=156768
I need the same thing for my "Canon Power Shot SX220 HS" .mov´s
here is a sample:
http://dl.dropbox.com/u/3775237/Cano...p%20Sample.MOV
Please help.
And thanx in A.
MasterElwood
Atak_Snajpera
29th February 2012, 23:27
remux with tsmuxer to .m2ts. if tsmuxer won't like .mov then remux first to .mkv with mmg.exe and then import mkv in tsmuxer.
if .mov has aac audio then you should use .mp4 container .
ffmpeg.exe -i video.mov -vcodec copy -acodec copy -o remuxed.mp4
MasterElwood
1st March 2012, 00:04
remux with tsmuxer to .m2ts. if tsmuxer won't like .mov then remux first to .mkv with mmg.exe and then import mkv in tsmuxer.
if .mov has aac audio then you should use .mp4 container .
ffmpeg.exe -i video.mov -vcodec copy -acodec copy -o remuxed.mp4
i tried to put that in a .bat like in the iphone sample but i am to stupid :(
can u put that in a batch .bat please?
thanx in A.
poisondeathray
1st March 2012, 00:34
for %%a in ("*.mov") do ffmpeg -i "%%a" -vcodec copy -acodec copy "%%~na.mp4"
pause
The link is down. Are you sure the video & audio compression are PS3 compatible ?
What does mediainfo (view=>text) say ?
Audionut
1st March 2012, 01:48
Are you sure the video & audio compression are PS3 compatible ?
Canon DSLR's are Baseline Level 5.0 (1 Ref frame) with PCM audio.
Default bitrates of around 45Mbps.
I would assume the little 'Power Shot' would be the same as I think it has the DIGIC 4 processor.
poisondeathray
1st March 2012, 02:07
Canon DSLR's are Baseline Level 5.0 (1 Ref frame) with PCM audio.
Default bitrates of around 45Mbps.
I would assume the little 'Power Shot' would be the same as I think it has the DIGIC 4 processor.
Yes, DSLR's are, but I believe the power shot is point and shoot
They often use mjpeg in MOV
Audionut
1st March 2012, 03:13
Yes, DSLR's are, but I believe the power shot is point and shoot
They often use mjpeg in MOV
Other brands perhaps, but Canon uses the same DIGIC processors as the DSLR's in ther point and shoots.
http://www.canon.com.au/For-You/Digital-Cameras/SX220HS
Movies
MOV (Image Data: H.264; Audio Data: Linear PCM stereo)
Ghitulescu
1st March 2012, 09:45
Other brands perhaps, but Canon uses the same DIGIC processors as the DSLR's in their point and shoots.
http://www.canon.com.au/For-You/Digital-Cameras/SX220HS
Just that the Canon DSLRs shoot in AVCHD, not in MOV, DiGiC or no DiGiC. I know this is just a marketing decision and not a technical one, but this doesn't magically change the MOV into AVCHD. In fact the quoted message explained in fully this power of marketing, to make people believe they can get more with less money, which is false, of course.
The only solution is to convert/demux the MOV into another format. I don't know Canon (I'm a Nikonist), but my experiences with small cameras used for filming is that one needs the Quicktime fullversion ([I]ie one has to pay :)) to properly decode these files or variable/uncorrectable audio delays may occur. Canon needs to protect its camcorder division, too.
MasterElwood
1st March 2012, 10:12
for %%a in ("*.mov") do ffmpeg -i "%%a" -vcodec copy -acodec copy "%%~na.mp4"
pause
The link is down. Are you sure the video & audio compression are PS3 compatible ?
What does mediainfo (view=>text) say ?
New link:
http://dl.dropbox.com/u/3775237/Canon%20720p%20Sample.MOV
Media info (other file - same camera):
General
Complete name : F:\VIDEOS SELF VORHOF\CaliWornia 2012\KINDI\2012-01-28_16-41-20-SID.MOV
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt
File size : 41.3 MiB
Duration : 13s 714ms
Overall bit rate : 25.3 Mbps
Encoded date : UTC 2012-01-29 00:41:21
Tagged date : UTC 2012-01-29 00:41:21
CNTH : ¢ò,|ðÁ
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L4.1
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=15
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 13s 714ms
Bit rate : 23.7 Mbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.857
Stream size : 38.7 MiB (94%)
Language : English
Encoded date : UTC 2012-01-29 00:41:21
Tagged date : UTC 2012-01-29 00:41:21
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
Audio
ID : 2
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : sowt
Duration : 13s 714ms
Bit rate mode : Constant
Bit rate : 1 536 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 2.51 MiB (6%)
Language : English
Encoded date : UTC 2012-01-29 00:41:21
Tagged date : UTC 2012-01-29 00:41:21
MasterElwood
1st March 2012, 10:18
for %%a in ("*.mov") do ffmpeg -i "%%a" -vcodec copy -acodec copy "%%~na.mp4"
pause
not working :(
C:\Users\Elwood\Desktop\Iphone to PS3 tests>for %a in ("*.mov") do ffmpeg -i "%a
" -vcodec copy -acodec copy "%~na.mp4"
C:\Users\Elwood\Desktop\Iphone to PS3 tests>ffmpeg -i "video.MOV" -vcodec copy -
acodec copy "video.mp4"
FFmpeg version SVN-r22520-Sherpya, Copyright (c) 2000-2010 the FFmpeg developers
built on Mar 14 2010 12:21:30 with gcc 4.2.5 20080919 (prerelease) [Sherpya]
libavutil 50.12. 0 / 50.12. 0
libavcodec 52.59. 0 / 52.59. 0
libavformat 52.55. 0 / 52.55. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.18. 0 / 1.18. 0
libswscale 0.10. 0 / 0.10. 0
libpostproc 51. 2. 0 / 51. 2. 0
Seems stream 0 codec frame rate differs from container frame rate: 60000.00 (600
00/1) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.MOV':
Metadata:
major_brand : qt
minor_version : 537331968
compatible_brands: qt CAEP
Duration: 00:00:10.04, start: 0.000000, bitrate: 24835 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 1280x720, 23221 kb/s, 29.97 fps, 29.
97 tbr, 30k tbn, 60k tbc
Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[mp4 @ 03850050]track 1: could not find tag, codec not currently supported in co
ntainer
Output #0, mp4, to 'video.mp4':
Metadata:
encoder : Lavf52.55.0
Stream #0.0(eng): Video: libx264, yuv420p, 1280x720, q=2-31, 23221 kb/s, 30k
tbn, 30k tbc
Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, 1536 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Could not write header for output file #0 (incorrect codec parameters ?)
C:\Users\Elwood\Desktop\Iphone to PS3 tests>pause
Drücken Sie eine beliebige Taste . . .
sad thing: i don´t understand a single word :confused:
J_Darnley
1st March 2012, 10:38
[mp4 @ 03850050]track 1: could not find tag, codec not currently supported in container
What's not to understand about this? Not to mention the fact that it should be highlighted in red.
You cannot put PCM audio into mp4, you will have to encode it into some supported format: aac, ac3 or mp3
Ghitulescu
1st March 2012, 10:40
http://forum.doom9.org/showthread.php?t=140877
EDIT: J_Darney was faster, I was searching in doom9.
Atak_Snajpera
1st March 2012, 12:17
pcm is allowed in .m2ts. it is worth to try at least.
b66pak
1st March 2012, 21:19
@MasterElwood use this line:
ffmpeg -y -i Canon.mov -async 1 -vcodec copy -acodec libvo_aacenc -ac 2 -ab 192000 Canon.m4v
make sure you have the latest ffmpeg build (http://ffmpeg.zeranoe.com/builds/)...
_
Audionut
1st March 2012, 23:51
Just that the Canon DSLRs shoot in AVCHD, not in MOV, DiGiC or no DiGiC. I know this is just a marketing decision and not a technical one, but this doesn't magically change the MOV into AVCHD. In fact the quoted message explained in fully this power of marketing, to make people believe they can get more with less money, which is false, of course.
What nonsense are you on about? Canon DSLRs do output into MOV!!!
I know this because I am a Canon user, and have a DSLR.
MasterElwood
2nd March 2012, 13:17
@MasterElwood use this line:
ffmpeg -y -i Canon.mov -async 1 -vcodec copy -acodec libvo_aacenc -ac 2 -ab 192000 Canon.m4v
make sure you have the latest ffmpeg build (http://ffmpeg.zeranoe.com/builds/)...
_
THIS WORKS!!!
Thank you. Thank you all!!!
Ghitulescu
2nd March 2012, 14:10
What nonsense are you on about? Canon DSLRs do output into MOV!!!
I know this because I am a Canon user, and have a DSLR.
Sorry, I don't have a Canon, this is the info I got from the web.
moonwander
22nd April 2012, 08:10
@MasterElwood use this line:
ffmpeg -y -i Canon.mov -async 1 -vcodec copy -acodec libvo_aacenc -ac 2 -ab 192000 Canon.m4v
make sure you have the latest ffmpeg build (http://ffmpeg.zeranoe.com/builds/)...
_
I used this for my Canon Elph 300 HS videos, when I playback, it has audio only but no video. :(
moonwander
23rd April 2012, 06:14
I used this for my Canon Elph 300 HS videos, when I playback, it has audio only but no video. :(
Can somebody help, please?
You didn't give any information that could help solve the issue. What did ffmpeg print out when you did the conversion? What does Mediainfo say about the original file?
Or even better, post a sample clip. Straight from the camera without conversions.
moonwander
24th April 2012, 02:38
Thank you for your reply.
I uploaded a 2 seconds test video, it's already around 10MB:
http://members.shaw.ca/fs1/elph300hs.MOV
moonwander
24th April 2012, 02:50
command line log:
ffmpeg.exe -y -i elph300hs.MOV -async 1 -vcodec copy -acodec libvo_aacenc -ac 2 -ab 192000 elph300hs.mp4
ffmpeg version N-39664-g6bfb304 Copyright (c) 2000-2012 the FFmpeg developers
built on Apr 9 2012 20:29:24 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 46.100 / 51. 46.100
libavcodec 54. 14.101 / 54. 14.101
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 67.101 / 2. 67.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 10.100 / 0. 10.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'elph300hs.MOV':
Metadata:
major_brand : qt
minor_version : 537331968
compatible_brands: qt CAEP
creation_time : 2012-04-24 01:30:11
Duration: 00:00:02.29, start: 0.000000, bitrate: 35886 kb/s
Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p, 1920x1080, 34008 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc
Metadata:
creation_time : 2012-04-24 01:30:11
Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s
Metadata:
creation_time : 2012-04-24 01:30:11
strptime() unavailable on this system, cannot convert the date string.
Output #0, mp4, to 'elph300hs.mp4':
Metadata:
major_brand : qt
minor_version : 537331968
compatible_brands: qt CAEP
creation_time : 2012-04-24 01:30:11
encoder : Lavf54.3.100
Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuvj420p, 1920x1080, q=2-31, 34008 kb/s, 23.98 fps, 24k tbn, 24k tbc
Metadata:
creation_time : 2012-04-24 01:30:11
Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 2 channels, s16, 192 kb/s
Metadata:
creation_time : 2012-04-24 01:30:11
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (pcm_s16le -> libvo_aacenc)
Press [q] to stop, [?] for help
frame= 55 fps=0.0 q=-1.0 Lsize= 9580kB time=00:00:02.25 bitrate=34844.2kbits/s
video:9523kB audio:54kB global headers:0kB muxing overhead 0.025042%
I tried the latest 32-bit static build at http://ffmpeg.zeranoe.com/builds/
No problems playing your sample with VLC and MPlayer after the conversion.
Which player did you try?
moonwander
24th April 2012, 03:03
I tried the latest 32-bit static build at http://ffmpeg.zeranoe.com/builds/
No problems playing your sample with VLC and MPlayer after the conversion.
Which player did you try?
You are fast!!
It plays on PC, original or converted. Problem is playing with Sony Bluray player, I think it's similar to OP's problem, he was playing with PS3.
The Bluray player can play video shot by Sony Nex-5N or Nikon AW-100, just can't handle the videos from Canon. :(
It plays on PC, original or converted. Problem is playing with Sony Bluray player, I think it's similar to OP's problem, he was playing with PS3.
This is also something you could've mentioned right in the beginning... :sly:
As Audionut mentioned earlier in this thread, the H.264 streams in these Canon files are Level 5.0, which is probably why Sony's players don't like them. You could try cheating the player by changing the level flag to 4.1 with roozhou's modified ffmpeg (http://forum.doom9.org/showthread.php?t=152419). It's not guaranteed to work though.
Re-encoding is the way to go for better compatibility.
moonwander
24th April 2012, 05:07
Thank you nm!
Re-encoding is too time consuming.
I tried to trick the level with -vbsf h264_changesps=level=30, ffmpeg complains...
ffmpeg.exe -y -i elph300hs.MOV -async 1 -vcodec copy -acodec libvo_aacenc -ac 2 -ab 192000 -vbsf h264_changesps=level=30 elph300hs_41.mp4
ffmpeg version N-39664-g6bfb304 Copyright (c) 2000-2012 the FFmpeg developers
built on Apr 9 2012 20:29:24 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 46.100 / 51. 46.100
libavcodec 54. 14.101 / 54. 14.101
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 67.101 / 2. 67.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 10.100 / 0. 10.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'elph300hs.MOV':
Metadata:
major_brand : qt
minor_version : 537331968
compatible_brands: qt CAEP
creation_time : 2012-04-24 01:30:11
Duration: 00:00:02.29, start: 0.000000, bitrate: 35886 kb/s
Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p, 1920x1080, 34008 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc
Metadata:
creation_time : 2012-04-24 01:30:11
Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s
Metadata:
creation_time : 2012-04-24 01:30:11
Unknown bitstream filter h264_changesps=level=30
moonwander
24th April 2012, 05:25
ignore my previous post. The trick worked!
Have to download the hacked version of ffmpeg, then use it against the output of previous ffmpeg. It's still much faster than re-encoding! Thanks a lot!!!:thanks:
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.