[ 
http://opencast.jira.com/browse/MH-6255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24166#action_24166
 ] 

Ruediger Rolf commented on MH-6255:
-----------------------------------

Okay, some more information about this: 
The error happens when we want to mux the vga with the muxed lecturer video 
instead of an audio track
ffmpeg -strict inofficial -i 
/opt/matterhorn/content/workspace/mediapackage/2501/track-1/lecturer.mpg -i 
/opt/matterhorn/content/workspace/mediapackage/2501/track-2/vga.mpg -sameq 
-shortest 
/opt/matterhorn/content/workspace/mediapackage/2501/track-2/vga-work.mpg

If we look at this wee see that we simply keep the lecturer video-track instead:
Input #0, mpeg, from 
'/opt/matterhorn/content/workspace/mediapackage/2501/track-1/lecturer.mpg':
  Duration: 00:14:58.32, start: 0.156122, bitrate: 6501 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 
4:3], 8000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, 2 channels, s16, 224 kb/s

Input #1, mpeg, from 
'/opt/matterhorn/content/workspace/mediapackage/2501/track-2/vga.mpg':
  Duration: N/A, bitrate: N/A
    Stream #1.0[0x1e0]: Video: mpeg2video, yuv420p, 1024x768 [PAR 1:1 DAR 4:3], 
104857 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Output #0, mpeg, to 'vga-regular.mpg':
  Metadata:
    encoder         : Lavf52.64.2
    Stream #0.0: Video: mpeg1video, yuv420p, 1024x768 [PAR 1:1 DAR 4:3], 
q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream #0.1: Audio: mp2, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1

a) This can be overcome if we would change the command line to 
ffmpeg -strict inofficial -i 
/opt/matterhorn/content/workspace/mediapackage/2501/track-1/lecturer.mpg -i 
/opt/matterhorn/content/workspace/mediapackage/2501/track-2/vga.mpg -map 1.0 
-map 0.1 -sameq -shortest 
/opt/matterhorn/content/workspace/mediapackage/2501/track-2/vga-work.mpg

This solution has the problem that I have to know if we have a audio/video file 
or audio only (will test it with a non muxed package), and that the vga video 
is suddenly incredible large (1 GB for 15 minutes), but it is produces very 
quickly (115 fps instead of 50 fps with the other settings.


b) Or we can have it even simpler by changing the order of the parameters:
ffmpeg -strict inofficial  -i 
/opt/matterhorn/content/workspace/mediapackage/2501/track-2/vga.mpg -i 
/opt/matterhorn/content/workspace/mediapackage/2501/track-1/lecturer.mpg -sameq 
-shortest 
/opt/matterhorn/content/workspace/mediapackage/2501/track-2/vga-work.mpg

The disadvantage here is that the resulting video has the resultion of the 
video that is provided by the second parameter. So the VGA video looses its 
resolution and hast the video resolution now! And it is much slower (see above).

c) The best way would probably to have a demux operation on the ingested media 
and store the audio and video in separate files. But in this case the vga-video 
gets very large again! 

I commit solution b) because this is the most uncomplicated to fix, but we 
should consider finding a better solution



> Multistream Mediapackages are not processed correctly if the have muxed audio
> -----------------------------------------------------------------------------
>
>                 Key: MH-6255
>                 URL: http://opencast.jira.com/browse/MH-6255
>             Project: Matterhorn Project
>          Issue Type: Bug
>          Components: Architecture & Services
>    Affects Versions: 1.0.0, 1.1 
>            Reporter: Ruediger Rolf
>            Assignee: Josh Holtzman
>            Priority: Release Blocker
>             Fix For: 1.0.x (branch), 1.1 , 1.1.x (branch)
>
>         Attachments: media.zip, muxedmedia2.zip
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://opencast.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to